This is the mail archive of the gcc-help@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: C main 32/64 bit prologues differ


Bob Plantz wrote:
The prologues for the main function in C differ (at the assembly
language level) depending on whether it is compiled for 32-bit or 64-bit
in the x86 architecture.

Also, adding a dwarf2 unwind table is the default in 64-bit mode, but
not in 32-bit.

Can anyone point me to discussions about why it's done this way?

The DWARF question I can answer: it's required by the processor- specific ABI.

Andrew.



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