How to understand GOT macro?
Hi,
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)
I think ## is used to change string to instruction parameter name. But what does .L_ stand for?
Thanks,
Frank
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee? Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
Quoted 4 lines · In message <[email protected]> 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.
Quoted 1 line
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").
Quoted 1 line
does .L_ stand for?
An arbitrary name for a local label?
Best regards,
Wolfgang Denk
Signature · 3 lines
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?