This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
About "symbol_ref" expression
- From: Shinpei Kato <shinny at j02 dot itscom dot net>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 30 Jan 2004 12:52:04 +0900 (JST)
- Subject: 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>