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]

Writing out long long integers


On PowerPC, GCC writes out long long constants in the data section as two
.long directives, but as a single .quad in x86.

For this code,

typedef unsigned long long uint64;
const uint64 bigconst = 1ULL << 34;

in PowerPC

bigconst:
        .long   4
        .long   0

and in x86

bigconst:
        .quad   0x400000000

Is there a place which contains the formal specification for this?

Thanks,
Suriya


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