[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] How to do multi-line assembler macros?

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] How to do multi-line assembler macros?
Date: Wed, 10 Sep 2003 09:17:22 +0200 (MET DST)

As David Gay <address@hidden> wrote:

>While we're on this: why did avr-as choose to use $ as a line
>separator, and ; for comments?

Don't ask me, i wasn't the person porting gas to the AVR.

My guess is that this has been made since ; is a very common
comment character in assembler languages, so porting other AVR
assembler code to gas is a bit easier.

>Also, gcc allows $ in identifiers, which leads to exciting assembler
>output when you do that with avr-gcc ;-)

Pah, whoever introduced the $ line-endings probably didn't think about
/that/.  OTOH, it's likely that each and any other ASCII character
might have caused other wonderful surprises as well.

But then, the $ in identifiers is a rarely used gcc feature.  IIRC it
has only been done in order to be compatible with certain other C
compilers (on Vax/VMS perhaps?, DEC used to use $ identifiers in
system programming, at least that's what i remember from my RSX-11
days).  However, to be safe, the AVR port of gcc should probably
disable the $ feature then.
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]