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: GCC label numbering


> When I saw this question before, I thought that it'd be easy to find
> out by debugging gcc.  However, I also thought that there's no really
> good reason why anyone would need the answer, so I didn't look.
>
> You might get more response from others if you said why it's important
> for you to know this.
>
> Andrew.

First, I'm sorry to have posted on both ml, I just figured the gcc ml
may be more relevant to my question.

Second, it's not really _important_, it's more out of curiosity.
Actually, it's for a teaching I'm doing. We make the student compile a
C source code into MIPS assembly language, and make them study it. The
C code contains a while loop and a if condition, and gcc generates
labels for them. As I said, the labelling begins at 2, and I was
wondering why, because students will certainly ask the same question,
and I would like to able to answer them :)


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