This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Writing out long long integers
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Suriya Narayanan M S <mssnlayam at vsnl dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 04 Oct 2004 13:20:20 -0400
- Subject: Re: Writing out long long integers
- References: <20041004165900.GA12642@cs.utexas.edu>
>>>>> Suriya Narayanan M S writes:
Suriya> On PowerPC, GCC writes out long long constants in the data section as two
Suriya> .long directives, but as a single .quad in x86.
Suriya> For this code,
Suriya> typedef unsigned long long uint64;
Suriya> const uint64 bigconst = 1ULL << 34;
Suriya> in PowerPC
Suriya> bigconst:
Suriya> .long 4
Suriya> .long 0
Suriya> and in x86
Suriya> bigconst:
Suriya> .quad 0x400000000
Suriya> Is there a place which contains the formal specification for this?
PowerPC is an architecture, not a specific GCC target. Without
specifying the OS and file format, it is difficult to comment on your
message.
The syntax for emitting 64-bit constants is specified by the
definition of DOUBLE_INT_ASM_OP in the GCC configuration for the
particular PowerPC sub-target.
David