[Top][All Lists]

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

Re: [avr-gcc-list] Assembly language help for a noob

From: Gre7g Luterman
Subject: Re: [avr-gcc-list] Assembly language help for a noob
Date: Fri, 14 Sep 2007 08:49:40 -0700 (PDT)

Ah oh well.  At least I am not kicking myself for
doing something the hard way all this time!  I
probably would have been really bummed out to find out
I could have saved a lot of work, starting months ago.

Thanks for all the insights,


--- Joerg Wunsch <address@hidden> wrote:
> In theory, by passing the option -gdwarf2 down to
> the assembler (by
> prefixing it with -Wa, when called from the
> compiler).
> However, this is currently broken for DWARF-2.  (It
> would work for
> stabs, as -gstabs, but that's not supported by AVR
> Studio.)  The point
> is, nobody really implemented DWARF-2 debugging for
> the AVR target.
> Everything we've got so far has simply been
> inherited by the
> mainstream GCC targets (i386, x86_64) moving to
> DWARF-2.  It might be
> simple to fix it (-gdwarf2 *does* work on the i386
> target), but it
> requires someone needing it badly enough to really
> do it.
> > Secondly, is there a good way to refer to offsets
> into a C structure
> > within an assembly file?
> Not that I know of.  In C, you can do this with the
> offsetof() macro,
> but the underlying calculations are performed by the
> C compiler, not
> by the preprocessor, so you cannot use them in an
> assembly file.
> -- 
> cheers, J"org               .-.-.   --... ...--  
> -.. .  DL8DTL
> http://www.sax.de/~joerg/                       
> Never trust an operating system you don't have
> sources for. ;-)
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

reply via email to

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