From: Wolfgang Denk Date: Wed, 19 May 2004 22:01:56 +0200 Subject: [U-Boot-Users] How to understand GOT macro? In-Reply-To: Your message of "Wed, 19 May 2004 14:11:11 EDT." Message-ID: <20040519200201.A69F0C109F@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message 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?