Connecting Tech Pros Worldwide Forums | Help | Site Map

32-bit compiler

Newbie
 
Join Date: Sep 2007
Posts: 4
#1: Sep 3 '07
What does 32 bit indicate in a 32 bit compiler?
so as in 16-bit complier?
has it got to do anything with the size of any datatype

JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#2: Sep 3 '07

re: 32-bit compiler


Quote:

Originally Posted by shanthisagar

What does 32 bit indicate in a 32 bit compiler?
so as in 16-bit complier?
has it got to do anything with the size of any datatype

You should ask your questions in the C/C++ Forums section, not in the C++
Articles section. I'll move your question for you.

kind regards,

Jos
Moderator
 
Join Date: Mar 2007
Location: North Bend Washington USA
Posts: 5,382
#3: Sep 3 '07

re: 32-bit compiler


Comoputer chips work in words. A word is the number of bits that can be shifted from memory to a register in the chip in a single clock pulse. A 32-bit chip will have registers that hold 32 bits. A 64-bit chip has 64-bit registers.

Using 64 bit variables in a 32 bit chip means multiple operations for the 32 bit chip and it is therefore slower. But it still works.

Compilers are written for a specific word length so they can generate optimal code. At the C/C++ level, you generally do not need to be concerned about the computer word length. Sometimes. maybe, but not as the general rule.
Reply