This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question about the order global declarations are output
- From: "Mike Lerwill" <mlist at ml-solutions dot co dot uk>
- To: "Gcc at Gcc dot Gnu. Org" <gcc at gcc dot gnu dot org>
- Date: Mon, 10 May 2004 22:16:31 +0100
- Subject: 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