64-bit

Cycle Through and Print argv[] in x64 ASM

▼魔方 西西 提交于 2019-12-12 13:00:56
问题 I have been working on essentially a while loop to go through all CLI arguments. While working on solution to only print 1 element I noticed a few things; this was the thought process that led me to here. I noticed that if I did lea 16(%rsp), %someRegisterToWrite , I was able to get/print argv[1]. Next I tried lea 24(%rsp), %someRTW and this gave me access to argv[2]. I kept going up to see if it would continue to work and it did. My thought was to keep adding 8 to %someRTW and increment a

“Bad binary signature” in ASP.NET MVC application

吃可爱长大的小学妹 提交于 2019-12-12 12:23:30
问题 I'm experiencing the same issue reported here: "Bad binary signature" in ASP.NET MVC application The ASP.Net MVC site works fine on the local machine, but when deployed using a combination of aspnet_compiler, aspnet_merge, and msdeploy, loading any page will fail with the following error: System.BadImageFormatException Bad binary signature. (Exception from HRESULT: 0x80131192) The accepted solution in the linked question suggests that the issue is caused by using the wrong version of aspnet

64 bit COM(ActiveX) server

萝らか妹 提交于 2019-12-12 12:22:13
问题 I have activex server exe that was building and registering fine on 32bit OS. I wanted to make 64 bit version of that exe by upgrading project to Visual Studio 2010 and changing platform to X64 which apparently doesn't work. Application itself works but I don't see it registered after running That.exe /RegServer I would appreciate any usable advice on migrating activex from 32 to x64. Code that is processing /RegServer param is below: if(lstrcmpi(lpszToken, _T("RegServer")) == 0) { _Module

How can elusive 64-bit portability issues be detected?

十年热恋 提交于 2019-12-12 12:09:16
问题 I found a snippet similar to this in some (C++) code I'm preparing for a 64-bit port. int n; size_t pos, npos; /* ... initialization ... */ while((pos = find(ch, start)) != npos) { /* ... advance start position ... */ n++; // this will overflow if the loop iterates too many times } While I seriously doubt this would actually cause a problem in even memory-intensive applications, it's worth looking at from a theoretical standpoint because similar errors could surface that will cause problems.

Visual Studio 64 bit? [closed]

风流意气都作罢 提交于 2019-12-12 11:53:13
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 months ago . Is there any 64 bit Visual Studio at all? Why not? 回答1: For numerous reasons, No . Why is explained in this MSDN post. First, from a performance perspective the pointers get larger, so data structures get larger, and the processor cache stays the same size. That basically

LoadLibrary is failing with module not found error — possible dependency problems

陌路散爱 提交于 2019-12-12 11:19:58
问题 I have been trying to load a 32-bit dll using C++ (from a 32-bit application, on windows 7 64-bit). LoadLibrary returns NULL, and GetLastError returns 126 for "The specified module could not be found." I am passing in the complete address to the LoadLibrary function. I opened the dll in Dependency Walker, which said GPSVC.dll was a missing dependency. From the googling I've done, it looks like Dependency Walker often falsely shows this GPSVC.dll as a missing dependency, and there is no 32-bit

Force C# app to compile as x64 instead of AnyCpu

拈花ヽ惹草 提交于 2019-12-12 10:48:43
问题 I've being driven up the wall trying to reference native x64 dlls in a C# app, using C# 2010 Express. I have a demo project that was converted from a 2008 project that has configuration and platform options in its properties, but the new projects that I've created don't! The dropdowns just don't exist - in fact I can't even switch from Debug to Release. Both of them use .Net Framework 4 and everything else seems the same between them. In C++ and the converted C# project it's simple, you just

Make already developed application 64 bit enable [duplicate]

一世执手 提交于 2019-12-12 10:43:55
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: How to also prepare for 64-bits when migrating to Delphi 2010 and Unicode I have already developed an application in Delphi 7. Now I need to enable it to support 64 bit. 回答1: Delphi 7, and indeed all released Delphi Win32 versions, only produce 32 bit executables. However, 32 bit executables run perfectly well on 64 bit operating systems through the WOW64 emulator. Although this is an emulator, a word that

Convert 64 bits array into Int64 or ulong C#

爷,独闯天下 提交于 2019-12-12 10:37:44
问题 I have an int array of bits (length always 64) like: 1110000100000110111001000001110010011000110011111100001011100100 and I want to write it in one Int64 (or ulong?) variable. How to do it? I tried to create a BitArray and then get int , but it throws System.ArgumentException , on CopyTo line: private static Int64 GetIntFromBitArray(BitArray bitArray) { var array = new Int64[1]; bitArray.CopyTo(array, 0); return array[0]; } 回答1: That is because as mentioned in the documentation, The specified

How to limit a 64-bit process address space to less than 4G?

我与影子孤独终老i 提交于 2019-12-12 09:52:15
问题 When I execute a 64-bit process and look at /proc/[pid]/maps , the layout show that the shared libraries and stack section are in a larger address; such as the following: 7ffff7ffc000-7ffff7ffd000 r--p 0001d000 08:03 16643 /lib/ld-2.11.2.so 7ffff7ffd000-7ffff7ffe000 rw-p 0001e000 08:03 16643 /lib/ld-2.11.2.so 7ffff7ffe000-7ffff7fff000 rw-p 00000000 00:00 0 7ffffffea000-7ffffffff000 rw-p 00000000 00:00 0 [stack] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Can I limit