[U-Boot-Users] How to understand GOT macro?
Wolfgang Denk
wd at denx.de
Wed May 19 22:01:56 CEST 2004
In message <BAY2-F58GmPlGd7zO9g0001fb0a at hotmail.com> you wrote:
>
> This might not be a typical u-boot question but it appears in u-boot code.
> u-boot defines a macro as below:
> #define GOT(NAME) .L_ ##NAME (r14)
This is standard CPP use.
> I think ## is used to change string to instruction parameter name. But what
No. The `##' preprocessing operator is used to paste tokens together.
RTFM (see section "Concatenation").
> does .L_ stand for?
An arbitrary name for a local label?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Thought for the day: What if there were no hypothetical situations?
More information about the U-Boot
mailing list