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]

Re: Common labels not outputed where needed


On Tue, 2002-03-26 at 03:32, Richard Henderson wrote:
> On Mon, Mar 25, 2002 at 04:36:49PM -0800, mike stump wrote:
> > As a stupid hack-arond, you might be able to say -fno-common and have
> > it work as you might expect.
> 
> No, as I said, "static int i" is a tentative definition.  The
> non-common .bss symbol will still be emitted at the end of the file.

I'm not very aware of the way datas are organized with gas and GCC -
what common labels are, what is the bss thing, etc... GCC's manual seems
to assume that you have basic knowledge of that, and knowing more about
this would surely help. Where could I look to learn more?

Also, from what Richard said, I guess that the assembler is supposed to
perform (at least) two passes: one to first get the objects size (as
they can be defined "anywhere") or maybe to read the assembler
directives, and a second one to assemble the code itself - am I right?

Well, guess it's worth I take the time to replace our crappy assembler
with a port of gas! ;) Looks like it's mandatory anyway if I want to
correctly assemble GCC's output, isn't it?

Alex.
-- 
http://www.gnurou.org


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