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]

Question about the order global declarations are output


Global objects are output into the assembly in reverse order compared to
where they appear in the source file. Can someone explain why this is done.

If my understanding is correct it happens in write_global_declarations where
this reversal appears to be quite deliberate.


Mike



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