Sorry for the confusion. Mine reports x86_64 as well. I thought the
"machine type" is what the CPU is (/proc/cpuinfo) and not what the
kernel/OS was compiled under. My sizeof for int, long and void* are 4 8
8 so yes it's 64-bit. Wonder why I didnt think of doing a sizeof
before... :X
Thanks again.
Carlo
Erik de Castro Lopo wrote:
Carlo Sogono wrote:
Good point. How do I check this? `uname -a` only reports machine
architecture.
I don't have a 64 bit machine to test this one, but I think
"uname -m" should say something like "x86_64". If it says
"i686" or something similar then you have a 32 bit kernel.
For the application itself,
printf ("sizeof (void*) : %u\n" sizeof (void*));
should print 8 from a 64 bit executable and 4 from a 32 bit
executable.
HTH,
Erik
_______________________________________________
coders mailing list
[email protected]
http://lists.slug.org.au/listinfo/coders