Create main.cpp with your code..
For 32 bit version:
$ gcc -m32 -o output32 main.cpp
For 64 bit version : $ gcc -m64 -o output64
main.cpp
Example:#include
int main()
{
long lTemp;
printf("Long int size is %i bytes long!\n", sizeof(lTemp));
return 0;
}
Output: ( Both output taken in same machine )
$ ./outpu32
Long int size is 4 bytes long!
$./output64
Long int size is 8 bytes long!
64
No comments:
Post a Comment