32-bit

what is the performance impact of using int64_t instead of int32_t on 32-bit systems?

*爱你&永不变心* 提交于 2019-11-27 05:18:50
问题 Our C++ library currently uses time_t for storing time values. I'm beginning to need sub-second precision in some places, so a larger data type will be necessary there anyway. Also, it might be useful to get around the Year-2038 problem in some places. So I'm thinking about completely switching to a single Time class with an underlying int64_t value, to replace the time_t value in all places. Now I'm wondering about the performance impact of such a change when running this code on a 32-bit

SetWindowsHookEx failing in .NET 4.0 on 32-bit machine with “module not found”?

怎甘沉沦 提交于 2019-11-27 04:32:16
I have found similar questions on this page, but I can't seem to figure out how to interpret the answers or figure out if they are truly duplicates. Here are the possible duplicates I've found, with comments: SetWindowsHookEx returns 0 when compiling for the .NET 4.0 framework in 32bit machines It doesn't seem to return 0 on mine, but I noticed that the handle reported when it crashes (.NET 4.0 on 32-bit) is way different from the handle reported when it runs (.NET 3.5 on 32-bit), like crash handle = 523727, and working handle = 172738378. Calling SetWindowsHookEx inside VS2008 debugger always

Differences between 32 and 64-bit .NET (4) applications

泪湿孤枕 提交于 2019-11-27 04:22:33
问题 What are the differences between 32 and 64-bit .NET (4) applications? Often 32-bit applications have problems running on 64-bit machines and conversely. I know I can declare an integer as int32 and int64 (certainly int64 on 32-bit systems make problems). Are there other differences between programming an 32 OR 64-bit or a both 32 AND 64-bit compatible application? 回答1: Some differences: 32-bit and 64-bit applications can only load DLLs of the same bitness. This can be an issue for managed

What are the pros and cons of running IIS as 32bit vs 64bit on a 64bit OS?

时光总嘲笑我的痴心妄想 提交于 2019-11-27 04:02:00
Possibly better suited for "Rack Overflow", but from a developer's point of view, what are the advantages and disadvantages of running IIS (serving both legacy classic ASP and .NET) as a 32bit process instead of a 64bit process on a 64bit windows host? The main advantage of 32/64 (iis/server) over 32/32 seems to be the ability to go up to 4gb in memory per IIS process. The advantages I expect of 32/64 over 64/64 appear to be that it's easier to access legacy 32-bit in-process DLLs (of which we still have one from a partner vendor we can't move away from immediately) and perhaps a smaller

Skipping Incompatible Libraries at compile

蓝咒 提交于 2019-11-27 03:43:00
When I try to compile a copy of my project on my local machine, I get an error stating that it 's skipping over incompatible libraries. This isn't the case when I'm messing around with the live version hosted on the server at work [it makes perfectly there]. Various other sites have lead me to believe that this might be an environment issue, as I'm developing on a 64-bit distro of Ubuntu and I assume the server version is running on 32-bit. Nevertheless, after setting my environment variables to: CFLAGS+=" -m32" CXXFLAGS+=" -m32" I still receive the same compile error of: /usr/bin/ld: skipping

Determine if current PowerShell Process is 32-bit or 64-bit?

微笑、不失礼 提交于 2019-11-27 03:11:30
When running a PowerShell script on a x64-bit OS platform, how can you determine in the script what version of PowerShell (32-bit or 64-bit) the script is running on? Background Both 32-bit and 64-bit versions of PowerShell are installed by default on a 64-bit platform such as Windows Server 2008. This can lead to difficulties when a PowerShell script is ran that must target a specific architecture (i.e. using 64-bit for a script for SharePoint 2010, in order to consume the 64-bit libraries). Related question: What is the best way to program against powershell's x64 vs. x86 variability? This

x86_64 Assembly Linux System Call Confusion

≯℡__Kan透↙ 提交于 2019-11-27 02:16:36
问题 I am currently learning Assembly language on Linux. I have been using the book 'Programming From the Ground Up' and all the examples are 32-bit. My OS is 64-bit and I have been trying to do all the examples in 64-bit. I am having trouble however: .section .data .section .text .global _start _start: movq $60, %rax movq $2, %rbx int $0x80 This merely just calls the Linux exit System call or it should. Instead it causes a SEG FAULT and when I instead do this .section .data .section .text .global

On 32-bit CPUs, is an 'integer' type more efficient than a 'short' type?

半腔热情 提交于 2019-11-27 02:01:33
On a 32-bit CPU, an integer is 4 bytes and a short integer is 2 bytes. If I am writing a C/C++ application that uses many numeric values that will always fit within the provided range of a short integer, is it more efficient to use 4 byte integers or 2 byte integers? I have heard it suggested that 4 byte integers are more efficient as this fits the bandwidth of the bus from memory to the CPU. However, if I am adding together two short integers, would the CPU package both values in a single pass in parallel (thus spanning the 4 byte bandwidth of the bus)? Yes, you should definitely use a 32 bit

Is an int a 64-bit integer in 64-bit C#?

本小妞迷上赌 提交于 2019-11-27 01:57:21
In my C# source code I may have declared integers as: int i = 5; or Int32 i = 5; In the currently prevalent 32-bit world they are equivalent. However, as we move into a 64-bit world, am I correct in saying that the following will become the same? int i = 5; Int64 i = 5; No. The C# specification rigidly defines that int is an alias for System.Int32 with exactly 32 bits. Changing this would be a major breaking change. The int keyword in C# is defined as an alias for the System.Int32 type and this is (judging by the name) meant to be a 32-bit integer. To the specification: CLI specification

How do I force a 32-bit build of Boost with GCC?

前提是你 提交于 2019-11-27 01:49:40
问题 How do I force a 32-bit build of Boost with GCC? Currently attempting by putting this line in my user-config.jam , but it does not work: using gcc : 4.1.2 : g++ : compileflags="-m32" ; 回答1: If you are using C++ Boost 1.40, use: bjam address-model=32 If you are using eariler version, consider upgrading. If you cannot, use bjam address-model=32 architecture=x86 I also recommend that you take a look at the fine manual 回答2: This answer helped me toward a solution that worked for me. I was trying