This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: long long data type support


On Sat, Aug 23, 2003 at 06:51:12PM -0700, fahad al-zahrani wrote:
>   could you please advise me to which g++ (GCC)
> version support 64-bit integer and what is the keyword
> that used to declear the veriable for 64-bit integer
> is long long ?

All GCC targets (except perhaps some specialized targets for certain DSPs
and microcontrollers) support 64-bit integers.

Almost all GCC targets are either "ILP32" or "LP64".

For ILP32:
	short is 16 bits
	int, long, pointers are 32 bits
	"long long" is 64 bits

For LP64:
	short is 16 bits
	int is 32 bits
	long, pointers, and "long long" are 64 bits

None of this requires a specific version, as all these types have been
around for a long time.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]