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]

About "symbol_ref" expression


Hi, there. Nice to speak to you.

I'm a newbie for gcc internals. I just started to implement back ends
for the CPU our laboratory is developing at the univ.

I'm facing one thing I can't understand very much. That's the symbol_ref
expresstion. For example, in mips.md machine description, there is the
following expression.

(eq (symbol_ref "mips16") (const_int 0))

What does it mean? According to the gccint.info, the symbol_ref is
explained as follows.

const_int and symbol_ref are always valid terms (see Insn Lengths,for
additional forms). symbol_ref is a string denoting a C expression that
yields an int when evaluated by the get_attr_... routine. It should
normally be a global variable.

I can't see this explaination. 
Please someone tell me what this explaination means and the above
expression.

Regards, 
Shinpei Kato <shinny@j02.itscom.net>


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