64-bit

CMake generate Visual Studio 2008 solution for Win32 and x64

社会主义新天地 提交于 2019-12-18 09:04:13
问题 I am using CMake 2.8 under Windows XP and want to generate a Visual Studio 2008 solution file which contains Release and Debug configurations for both Win32 and x64. Can this be done by setting a CMake configuration variable in the CMakeLists.txt file? 回答1: The CMakeLists is not where you specify the generator ( makefile, XCode, Visual Studio ) for a project. The generator is specified when a user runs CMake on your source. 回答2: You should produce a solution file under a console with CMake

InvalidProgramException: Common Language Runtime detected an invalid program

房东的猫 提交于 2019-12-18 08:47:50
问题 All, I'm running into trouble deploying an ASP.NET 4.0 web page. The error is System.InvalidProgramException: Common Language Runtime detected an invalid program The error occurs on IIS7 on a 64 bit Windows Server box. The same page works on IIS7 on my development box (32bit Windows 7) and in the Visual Studio Development Environment. I'm not aware of any differences in the IIS7 configuration. I've used PEVerify to validate the dll's in the application's bin directory. I can reproduce the

How to define “UCHAR * POINTER_32” and “VOID * POINTER_32” types in Delphi?

自作多情 提交于 2019-12-18 08:47:10
问题 Background: Translating the IP_OPTION_INFORMATION32 and ICMP_ECHO_REPLY32 structures for 64-bit compiler I got stucked with data types to use there. Structure definitions from the reference: The IP_OPTION_INFORMATION32 structure: typedef struct _IP_OPTION_INFORMATION32 { UCHAR Ttl; UCHAR Tos; UCHAR Flags; UCHAR OptionsSize; UCHAR * POINTER_32 OptionsData; } IP_OPTION_INFORMATION32, *PIP_OPTION_INFORMATION32; I would translate this way (for Delphi XE2, 64-bit target platform). As you can see,

Linux 64 command line parameters in Assembly

杀马特。学长 韩版系。学妹 提交于 2019-12-18 05:56:06
问题 This description is valid for Linux 32 bit: When a Linux program begins, all pointers to command-line arguments are stored on the stack. The number of arguments is stored at 0(%ebp), the name of the program is stored at 4(%ebp), and the arguments are stored from 8(%ebp). I need the same information for 64 bit. Edit: I have working code sample which shows how to use argc, argv[0] and argv[1]: http://cubbi.com/fibonacci/asm.html .globl _start _start: popq %rcx # this is argc, must be 2 for one

Run tests in 64-bit

杀马特。学长 韩版系。学妹 提交于 2019-12-18 05:43:14
问题 I got a ADO.NET driver which is compiled as 64-bit. I therefore need to run mstests in 64-bit mode. Is that possible? (the dev machine is 64bit). 回答1: Visual Studio has a built in option for this. It was a bit hard to find (if you do not know where to look). Doubleclick on the local.testsettings file in Solution Explorer and select Hosts in the listbox. Then change as the image shows. You must do your tests in a 64-bit OS and your application should be compiled with AnyCPU . 回答2: Try the

How to access the 64-bit registry from a 32-bit Powershell instance?

我与影子孤独终老i 提交于 2019-12-18 05:37:46
问题 If you launch a 32-bit instance of Powershell (%SystemRoot%\syswow64\WindowsPowerShell\v1.0\powershell.exe), then the registry provider only sees the limited 32-bit parts of the registry. **32-bit console** PS> (dir HKLM:\SOFTWARE | measure).count - (dir HKLM:\SOFTWARE\wow6432node | measure).count 0 **64-bit console** PS> (dir HKLM:\SOFTWARE | measure).count - (dir HKLM:\SOFTWARE\wow6432node | measure).count -5 Is there any way to force the provider into 64-bit mode? I could drop down to

Team is Going from XP32 to XP64 for .NET Development - Any Gotchas?

ぃ、小莉子 提交于 2019-12-18 05:05:07
问题 My team is getting new XP64 workstations. We've been using XP32 up until now. Most of our work is done in managed C#/VS2008/.net 3.5 and SQL Server 2005. However we do have a couple apps that are still in VS2005/.net 2.0. The majority of our applications are ASP.NET webforms apps and WCF services that are running on 64bit servers in production. However, we have some WPF development going on that will have to run on 32bit machines. Are there any gotchas or transition pains we should be aware

generate random 64 bit integer

有些话、适合烂在心里 提交于 2019-12-18 04:56:05
问题 I need your help and please give me some advice. From programming pearls I know that to generate random 30 bit integer we should write it like this: RAND_MAX*rand()+rand() But what could I do for generating not 30, but 64 bit random integer instead? I think that is very inefficient method if I multiply two 30 bit integers and then multiply again 4 bit integer, so what kind of method should I use? I am using now popcount_1 different method for 64 bit one and I would like to test it on random

Computing high 64 bits of a 64x64 int product in C

放肆的年华 提交于 2019-12-18 04:35:10
问题 I would like my C function to efficiently compute the high 64 bits of the product of two 64 bit signed ints. I know how to do this in x86-64 assembly, with imulq and pulling the result out of %rdx. But I'm at a loss for how to write this in C at all, let alone coax the compiler to do it efficiently. Does anyone have any suggestions for writing this in C? This is performance sensitive, so "manual methods" (like Russian Peasant, or bignum libraries) are out. This dorky inline assembly function

Memory requirements of an Object reference on a 64 bit JVM

喜欢而已 提交于 2019-12-18 04:33:10
问题 A reference to an Object on a 32 bit JVM (at least on Hotspot) takes up 4 bytes. Does the 64 bit Hotspot JVM need 8 bytes? Or is some clever compression going on? If not, every Object[] would require twice as much heap memory, which I somehow think (hope, expect) is not the case. Update/extra question : Does this really matter, or is this a negligible increase, because most references point to objects that are much larger than a few bytes (whereas one might argue that those objects are in