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
15
votes
7 answers

Reverse 32bit integer

I'm trying to solve an exercie in leetcode.com which deals with signed 32bit integers. The task is: Return the inverse of a signed 32bit integer and return 0 if it overflows the 32bit signed integer's range. In Wikipedia: A 32-bit register can…
Chiheb Nexus
  • 9,104
  • 4
  • 30
  • 43
15
votes
1 answer

How to Compile 32-bit Apps on 64-bit RHEL?

I'm trying to compile a 32-bit C application on RHEL 7 64-bit using gcc 4.8. I'm getting a compiler error /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory. What do I need to do to get 32 bit apps compiled and linked?
BSalita
  • 8,420
  • 10
  • 51
  • 68
15
votes
6 answers

Adding 64 bit numbers using 32 bit arithmetic

How do we add two 64 bit numbers using 32 bit arithmetic??
Light_handle
  • 3,947
  • 7
  • 29
  • 25
15
votes
4 answers

Compiling 32 bit Assembler on 64 bit ubuntu

I have program written in 32 bit assembly language... Now I just can't compile it on 64 bit OS. On our school they are specific and program has to be written in 32 bit version. Here is my program: bits 32 extern _printf global _start section .data …
Klemenko
  • 704
  • 1
  • 10
  • 21
14
votes
4 answers

Converting 32-bit binary string with Integer.parseInt fails

Why does this part of code fail: Integer.parseInt("11000000000000000000000000000000",2); Exception in thread "main" java.lang.NumberFormatException: For input string: "11000000000000000000000000000000" As far as I understand Integer is a 32 bit…
Aliens
  • 984
  • 3
  • 14
  • 23
14
votes
1 answer

32 or 64 bit virtual machine is faster on 64 bit machine (vmware)

I have a 64bit host with 64 bit host OS. I want to install a virtual machine (with 1GB ram or less), but I don't know which will show better performance. I've heard that the only advantage of 64 bit hardware/software is that it can address more than…
NickSoft
  • 3,215
  • 5
  • 27
  • 48
14
votes
4 answers

How to find out if Tomcat is 32 bit or 64 bit on window server?

We have an installer which install Tomcat. How do I know if it's 32bit version of Tomcat or 64bit version?
user851090
  • 143
  • 1
  • 1
  • 5
14
votes
8 answers

Writing cross-platform apps in C

What things should be kept most in mind when writing cross-platform applications in C? Targeted platforms: 32-bit Intel based PC, Mac, and Linux. I'm especially looking for the type of versatility that Jungle Disk has in their USB desktop edition (…
Dinah
  • 52,922
  • 30
  • 133
  • 149
14
votes
3 answers

Create 64 bit registry key (non-WOW64) from a 32 bit application

I have a Visual Studio installer that is creating some registry keys: HKEY_LOCAL_MACHINE\SOFTWARE\MyApp but the registry keys it is creating are automatically appearing under Wow6432Node: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MyApp How do I…
James Newton-King
  • 48,174
  • 24
  • 109
  • 130
14
votes
7 answers

Microsoft SharePoint is not supported in 32-bit process. Please verify that you are running in a 64-bit executable

I'm writing a console app for SharePoint 2013 on a 64-bit machine. I get this error when I try to execute the program: "Microsoft SharePoint is not supported in 32-bit process. Please verify that you are running in a 64-bit executable." Please let…
Kate
  • 1,495
  • 4
  • 21
  • 35
14
votes
4 answers

How can I enable my 32-bit Delphi application to use 4gb of memory on 64-bit windows (via Wow64.exe)?

According to this MSDN page: WOW64 enables 32-bit applications to take advantage of the 64-bit kernel. Therefore, 32-bit applications can use a larger number of kernel handles and window handles. However, 32-bit applications may not be…
Mick
  • 13,248
  • 9
  • 69
  • 119
14
votes
8 answers

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

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…
Jordan Parmer
  • 36,042
  • 30
  • 97
  • 119
14
votes
4 answers

Suspend/resume processes as PsSuspend does

I hope this post is not a duplicate one. Let me explain: I have considered the similar post How to pause / resume any external process under Windows? but with C++/Python preference and yet without an accepted answer as of the time of posting. My…
menjaraz
  • 7,551
  • 4
  • 41
  • 81
13
votes
5 answers

What is the maximum memory available to a C++ application on 32-bit Windows?

Just wondering if there is a restriction on the max memory that a C++ application uses I understand that this is 2GB - Is that correct? If a C++ app tries to request more then 2GB memory does this cause a memory crash? Final question - If the…
Jack Kada
  • 24,474
  • 29
  • 82
  • 106
13
votes
4 answers

Find out the largest native integer type on the current platform

The problem I have is to create a sort of big integer library. I want to make it both cross platform and as fast as possible. This means that I should try to do math with as large data types as are natively supported on the system. I don't actually…
Talia
  • 1,400
  • 2
  • 10
  • 33