This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: long long data type support
- From: Joe Buck <jbuck at synopsys dot com>
- To: fahad al-zahrani <al_zahrani at yahoo dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 25 Aug 2003 09:07:59 -0700
- Subject: Re: long long data type support
- References: <20030824015112.27773.qmail@web11506.mail.yahoo.com>
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.