Questions tagged [32-bit]

In computer architecture, 32-bit integers, memory addresses, or other data units are those that are at most 32 bits (4 octets) wide. Also, 32-bit CPU and ALU architectures are those that are based on registers, address buses, or data buses of that size. 32-bit is also a term given to a generation of computers in which 32-bit processors are the norm.

The range of integer values that can be stored in 32 bits is 0 through 4,294,967,295. Hence, a processor with 32-bit memory addresses can directly access 4 GiB of byte-addressable memory.

The external address and data buses are often wider than 32 bits but both of these are stored and manipulated internally in the processor as 32-bit quantities. For example, the Pentium Pro processor is a 32-bit machine, but the external address bus is 36 bits wide, and the external data bus is 64 bits wide.

Source: Wikipedia (32-bit)

1381 questions
30
votes
10 answers

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

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…
Guy
  • 65,082
  • 97
  • 254
  • 325
29
votes
7 answers

What are 16, 32 and 64-bit architectures?

What do 16-bit, 32-bit and 64-bit architectures mean in case of Microprocessors and/or Operating Systems? In case of Microprocessors, does it mean maximum size of General Purpose Registers or size of Integer or number of Address-lines or number of…
user366312
  • 16,949
  • 65
  • 235
  • 452
27
votes
6 answers

How do I detect whether 32-bit Java is installed on x64 Windows, only looking at the filesystem and registry?

I need to determine whether a particular system has 32-bit Java installed. I'm doing a remote query that only gives me access to the filesystem and registry, so I cannot attempt to run java.exe, or run any Java code. I also want to make sure I…
Chris Vasselli
  • 13,064
  • 4
  • 46
  • 49
27
votes
3 answers

Getting Embedded with D (the programming language)

I like a lot of what I've read about D. Unified Documentation (That would make my job a lot easier.) Testing capability built in to the language. Debug code support in the language. Forward Declarations. (I always thought it was stupid to declare…
NoMoreZealots
  • 5,274
  • 7
  • 39
  • 56
26
votes
6 answers

How come a 32 bit kernel can run a 64 bit binary?

On my OS X box, the kernel is a 32-bit binary and yet it can run a 64-bit binary. How does this work? cristi:~ diciu$ file ./a.out ./a.out: Mach-O 64-bit executable x86_64 cristi:~ diciu$ file /mach_kernel /mach_kernel: Mach-O universal binary with…
diciu
  • 29,133
  • 4
  • 51
  • 68
26
votes
3 answers

Year 2038 solution for embedded Linux (32 bit)?

What is the proper way to handle times in C code for 32-bit embedded Linux (ARMLinux) to ensure that the code continues to work properly after 03:14:07 UTC on 19 January 2038 (when a signed 32-bit time_t overflows)? Given that time_t is signed…
Ian Goldby
  • 5,609
  • 1
  • 45
  • 81
26
votes
2 answers

C# PInvoking user32.dll on a 64 bit system

Is it wrong to pinvoke user32.dll on 64 bit Windows, from a 64 bit app? I've done this successfully a number of times and never had an error, but it seems contradictory. Should I look for user64.dll instead?
James Cadd
  • 12,136
  • 30
  • 85
  • 134
25
votes
3 answers

Exec format error 32-bit executable Windows Subsystem for Linux?

When I try to execute a 32-bit file compiled with gcc -m32 main.c -o main on Windows Subsystem for Linux, I get the following error: bash: ./main: cannot execute binary file: Exec format error. If I compile it without -m32 it runs. Any solution for…
24
votes
4 answers

gcc: Compile a 64-bit binary on 32-bit platform

Is it possible to compile a 64-bit binary on a 32-bit Linux platform using gcc?
weekens
  • 8,064
  • 6
  • 45
  • 62
23
votes
11 answers

#ifdef for 32-bit platform

In an application I maintain, we've encountered a problem with file descriptor limitations affecting the stdlib. This problem only affects the 32-bit version of the standard lib. I have devised a fix for my code and would like to implement it, but…
veefu
  • 2,820
  • 1
  • 19
  • 29
23
votes
5 answers

Advice on unsigned int (Gangnam Style edition)

The video "Gangnam Style" (I'm sure you've heard it) just exceeded 2 billion views on youtube. In fact, Google says that they never expected a video to be greater than a 32-bit integer... which alludes to the fact that Google used int instead of…
Chewco
  • 249
  • 2
  • 10
22
votes
1 answer

How to increase intellij 32bit xmx more than 1GB?

I am using 32bit Intellij on my 32bit windows XP with 4 GB of RAM. I am attempting to increase intellij xmx to 1.5GB : -Xmx1500m So I know JVM support 1.5GB of RAM in 32bit systems. But this error throws from JVM : The JVM could not be started.…
Nik Kashi
  • 4,447
  • 3
  • 40
  • 63
22
votes
6 answers

Can I still develop 32-bit applications using a 64-bit machine?

I'm wondering if I can still develop 32-bit apps using a 64-bit machine (64-bit Windows Vista with Visual Studio 2008 SP1)? Because I am planning to buy a laptop with 64-bit Vista. Im asking just to make sure. Thanks!
jerbersoft
  • 4,344
  • 9
  • 42
  • 48
21
votes
5 answers

How to run 32-bit Java on Mac OSX 10.7 Lion

From my experience with Windows 7 (64-bit) and Java, a 32-bit JRE uses less memory and runs significantly faster than a 64-bit JRE (provided you don't need or benefit from having a lot of memory). I imagine the same thing is true for Mac OSX (and…
Ulrik
  • 765
  • 1
  • 6
  • 13
21
votes
6 answers

How to install Docker on 32bit machine having Ubuntu 12.04?

I have followed the docker installation doc for installing it on my machine which is a 32 bit machine running Ubuntu 12.04 The step $ sudo apt-get install docker-engine fails saying E: Unable to locate package docker-engine It should have been…
Hussain
  • 5,057
  • 6
  • 45
  • 71
1 2
3
92 93