[Top][All Lists]

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

Re: [avr-gcc-list] compiling just one C-block.

From: Larry Barello
Subject: Re: [avr-gcc-list] compiling just one C-block.
Date: Mon, 28 May 2001 08:20:34 -0700

Here is the makefile & source I used to build a single file asm project for
the 1200.  I think the key here is to define your own .init section, which
is required by the linker.  If you define it yourself, you won't pull in
the gcrt1.S file (the gcc startup code).  You don't have to use avr-ld, you
can use the gcc front end and it will link in the appropriate GCC libraries
and runtime support.

note: the -T linker option specifies which link script is loaded.  Those
are found in .../avr/lib/ldscripts  You won't need that if you use the GCC
front end.


----- Original Message -----
From: "Per-Erik Andersson" <address@hidden>
To: <address@hidden>
Sent: Sunday, May 27, 2001 12:40 PM
Subject: [avr-gcc-list] compiling just one C-block.

> I want to compile just one c-code file without the start-up module. This
> because I already have written the asm part.
> And I want to compile assemble and link this c-code into an obj and rom
> without the start-up module. How do I do that?
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list

Attachment: makefile
Description: Binary data

Attachment: Main.s
Description: Binary data

reply via email to

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