Kreyl <[EMAIL PROTECTED]> wrote:

>   What  should  I do (makefile, includes, etc.) to tell compiler where
>   to search and what to do with FIR2 function?

It's the linker that will search for it, not the compiler itself.  For
the compiler, all you have to do is declaring the function (i.e. through
the prototype you've already shown).

However, it's not only that you have to adapt the Atmel (or IAR?)
assembly file to GNU assembler syntax (which involves changing the
pseudo-op syntax), you also have to modify it for the different
ABI.  IAR passes arguments starting with r16 upwards, GCC passes
arguments down from r24/r25.

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

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


_______________________________________________
AVR-chat mailing list
AVR-chat@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-chat

Reply via email to