Please do not CC me on replies. I am subscribed to the list.
O Plameras wrote: > So what is the reasoning why the int are still 4 bytes instead of 8 bytes ? > > Can anyone clarify ? There are a whole bunch of things in programs where a 32 bit integer is sufficient and 64 bits is complete overkill. The first example that comes to mind is counters used in for loops, or array indexing. For most of these cases, using a 32 bit integer will be faster than using a 64 bit integer (mainly because of memory bandwidth when the register is loaded from or stored to dram). In addition, C is used for low level programming where the programmer needs to be able to address 32 bit hardware registers. If int was 32 bits, what would you use for accessing these registers. Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "C++ is like jamming a helicopter inside a Miata and expecting some sort of improvement." -- Drew Olbrich -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
