[Top][All Lists]

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

Re: [avr-gcc-list] including asm files in a project

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] including asm files in a project
Date: Sun, 20 Nov 2005 08:09:00 +0100 (MET)

"juan antonio jimenez martinez" <address@hidden> wrote:

> ..., do you know where is a page in the which one shows how to
> include a purely asm file in a C project, ...

Well, not as the complete one you desire, probably.

The FAQ has an entry about the register conventions, so that basically
defines your ABI to stick to.  Also, the avr-libc docs have a chapter
about assembly programming (not the inline asm one).

As for your project, you need to put all that into a single file
ending in .S (a capital letter S), and tell your project management
(i.e. probably your Makefile) about that.

> Another thing, is there a document different from the winavr guide
> in the wich one its explained inline assembler?

There's still the original GCC documentation, but it's pretty generic,
and not targeted towards a particular processor type.  I think the
stuff in the avr-libc docs is the best you could get, as it is both,
targeted to the AVR, as well as rather exhaustive.  What's your
problem with that?

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

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

reply via email to

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