avr-gcc-list
[Top][All Lists]
Advanced

[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:10:45 +0200 (MET DST)

As Brian Dean <address@hidden> wrote:

>> const char line_separator_chars[] = "$";

>Ah, excellent!  Thanks Joerg!  I new there had to be a way to do this
>using the C preprocessor.  I did already figure out how to use the
>'.macro' directive as a work around.

I've been doing that once as well.  If you look into some file in
avr-libc (IIRC it's dtostre.S or one of its include files), you'll
find a mix from CPP and assembler macros, since i didn't knew about
that feature by that time.  I merely stumbled across it some day when
looking into the gas sources.

That's the sad thing, whoever ported gas to the AVR (Denis, i'd guess)
did /zero/ documentation about the machine-specific details.  The
AVR-specific pseudo ops aren't documented anywhere either.
-- 
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]