Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: Arrays and pointers in GCC

2009-01-12 by dlc

Don Kinzer wrote:
> --- In AVR-Chat@yahoogroups.com, "subscriptions@..." 
> <subscriptions@...> wrote:
>> I always do the interrupt prologue and epilogue in ASM.
>> I don't trust interrupt keywords. :)
> I have adopted the strategy of "trust but verify".  It is a simple 
> matter to take a quick look at the assembly language code generated 
> for an ISR implemented in C and verify that it's doing what you 
> expected it to do.
> 
> The .lss file should contain assembly language code with 
> interspersed C code.  (Note, however, that optimization sometimes 
> results in the C code not being near the actual assembly language 
> code.)  If your makefile doesn't create a .lss file, you can do it 
> manually or modify the makefile to do so.

   How do you get it to do this?  When I look at my .lss files I see a 
line with the function header, then assembly, then the next function 
header line.  The C is not interspersed.  How do I get this enabled in 
the compiler?

thanks,
DLC

> avr-objdump -S myproj.elf > myproj.lss
> 
> Don Kinzer
> ZBasic Microcontrollers
> http://www.zbasic.net
> 
> 
> 
> ------------------------------------
> 
> Yahoo! Groups Links
> 
> 
> 

-- 
-------------------------------------------------
Dennis Clark          TTT Enterprises
www.techtoystoday.com
-------------------------------------------------

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.