[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/
Re: [avr-gcc-list] How to do multi-line assembler macros?, Brian Dean, 2003/09/09
- Re: [avr-gcc-list] How to do multi-line assembler macros?, Joerg Wunsch, 2003/09/10
- [avr-gcc-list] Handling interrupts in assembler - how?, Michal Vanka, 2003/09/17
- Re: [avr-gcc-list] Handling interrupts in assembler - how?, Artur Lipowski, 2003/09/17
- Re: [avr-gcc-list] Handling interrupts in assembler - how?, Michal Vanka, 2003/09/17
- Re: [avr-gcc-list] Handling interrupts in assembler - how?, Artur Lipowski, 2003/09/17
- Re: [avr-gcc-list] Handling interrupts in assembler - how?, Michal Vanka, 2003/09/17