"juan antonio jimenez martinez" <[EMAIL PROTECTED]> wrote:

> Hi, Im writing a couple of functions in assembler for the ATMEGA8,
> and I store the value of the registers that Im using in the stack,
> but when I get in to the assembler output generated by winavr,
> apears at the begining of the fuction another context saving of
> extra registers, is there a way to skip this and do it by my self??

If you want to write entire functions in assembly, better use a
separate assembly source file for them rather than hacking up inline
asm stuff.  The inline asm will eventually look rather scary, and as
you can see, you have to play by the rules of the compiler (as it's
the compiler that controls variable allocation etc. still), lest
you'll run into trouble.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to