Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » AVR-GCC
  • » [avr-gcc-list] including asm files in a project [RSS Feed]

#1 Nov. 19, 2005 21:25:17

juan a.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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


ok, as you said, its a little bit odd to program inline asm in a C file, doyou know where is a page in the which one shows how to include a purely asmfile in a C project, I have been readin the faq in the winavr guide ,specifically the question "How to modify MCUCR or WDTCR early", it gives asmall piece of asm file but I dont know how to include such a file in aproject or even in a file.Another thing, is there a document different from the winavr guide in thewich one its explained inline assembler??thanks

JAJM




_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#2 Nov. 20, 2005 07:13:34

Joerg W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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


"juan antonio jimenez martinez" <> 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 .-.-. --... ...-- -.. . DL8DTLhttp://www.sax.de/~joerg/NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

  • Root
  • » AVR-GCC
  • » [avr-gcc-list] including asm files in a project [RSS Feed]

Board footer

Moderator control

Enjoy the 20th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support