![]() |
Using 64bit integer
Hello
Does anyopne know how to tell gcc (4.2) to use 64bit integers instead of 32bit? I have a program which gets an integer overflow (no, it's not bad code...) on a IA64 architecture and need to correct it. Thanks raven |
I think a "long long" is 64 bit, no?
|
Yes, regardless of the architecture being 32 or 64 bit.
Code:
main() |
Quote:
Code:
/* size.c */On my 32-bit computer (running Ubuntu "Gutsy"): Code:
bash$ gcc --versionCode:
bash$ gcc --version |
Quote:
The LP64 model which keep the int as a 32 bit entity was agreed upon most Unix vendors around 1995. |
Quote:
|
Quote:
I think the safer way is to use Code:
#include <stdint.h> |
| All times are GMT -5. The time now is 05:45 PM. |