Dave, My feelings are hurt! I would NEVER call a function from within an ISR! Isn't there a special section of hell reserved for people who do that? Right next to the place that drunks that spill their beer go? :) DLC Dave Hylands wrote: > Hi Dennis, > > >> Other that that, I find that GCC-AVR does a pretty good job of code >>density - I just don't like the variable referencing and sloppy (or >>perhaps overly hand-holding) job it does with ISR's. > > > I've noticed that one way to get better ISR's is to ensure that your > ISR doesn't call any other functions (except for inline ones). As soon > as you call another function, the compiler has to save/restore a pile > more registers than if you don't call any other functions. > > Just an observation.... > -- --------------------------------------------------------------------- * Dennis Clark dlc@frii.com http://www.techtoystoday.com * * "Programming and Customizing the OOPic Microcontroller" Mcgraw-Hill * ---------------------------------------------------------------------
Message
Re: [AVR-Chat] Differences between C compilers
2005-08-18 by Dennis Clark
Attachments
- No local attachments were found for this message.