Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Regarding C and assembly file compilation and linking

2004-05-12 by leon_heller

--- In lpc2000@yahoogroups.com, "senzhk" <senz@d...> wrote:
> --- In lpc2000@yahoogroups.com, "Leon Heller" <leon_heller@h...> 
wrote:
> > ----- Original Message ----- 
> > From: "subhashinimanne" <subhashinimanne@y...>
> > To: <lpc2000@yahoogroups.com>
> > Sent: Monday, May 10, 2004 10:59 AM
> > Subject: [lpc2000] Regarding C and assembly file compilation and 
linking
> > 
> > 
> > >
> > >
> > > What are the sequence of steps required to create executable 
file
> > > from C source file using GNU Compilers.
> > > What are the necessary options used for that
> > 
> > Here is a batch file for compiling and linking a simple program:
> > 
> > arm-elf-gcc -Tlpc2106-rom.ld -nostartfiles
> -Wl,-Map=led.map,--cref,-nostdlib
> >  -s -o led boot.s led.c
> > arm-elf-objcopy --output-target ihex led led.hex
> > arm-elf-objcopy --output-target binary led led.bin
> 
> 
> Hi, Leon, I have downloaded the lpc2100_gcc.zip from yahoo group and
> can't find the led.map, where can I find it? or
> I should define it my own??

led.map is the linker map file, it is actually generated by
-Map=led.map, and isn't supplied.

Leon

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.