[Novalug] 64bit vs 32bit

Ed James edjames@greenbelt.com
Mon Apr 14 12:26:10 EDT 2008


Dang - didn't mean to, but I accidentally learned something new today.
Found a data type called "long long int", which is allowed by the gcc
compiler on my old P-III.  It's twice the length of a long, of course.

Ed James

Quoting John Franklin <franklin@elfie.org>:

> On Mon, Apr 14, 2008 at 05:11:27AM -0400, Ed James wrote:
>> All,
>>
>> If I install from source and compile apps written in the 32-bit
>> era (like I'm doing when I write my own stuff), will the apps
>> automagically always compile okay into 64-bit apps, or are there
>> "gotcha"s that bite when such a re-compile is done?
>
> There are gotchas. Most of them stem from the sizes of base types.
>
> 	32-bit	64-bit
> short	2	2
> int	4	4
> long	4	8
> void*	4	8
...




More information about the Novalug mailing list