Re: GCC compiling- help needed




"nik" <nitinkothari@xxxxxxxxx> wrote in message
news:69f0ba14-b977-4aad-a672-6b406df5e3eb@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi guys !

I am a rookie in gcc.So please help me out.

I have arm-elf-gcc 4.1.1 installed on Ubuntu and I have to cross
compile for ARM7TDMI-S core based LPC2368 processor.

I have the C runtime file crt0.S, the startup.S,processor's header
file and I have also modified the ROM.ld.

So, what I remember , the process will be :
1. Convert C source code to object file.
2. Link all the object files to create an executable.
3. Convert the executable to intel hex format.

But I am unable to link as I have a few doubts.
Question 1 : crt0.S is not getting converted to crt0.o and startup.s
to startup.o. How to do it ?
Question 2 : How to link ROM.ld with other files ?

Best bet is just to start with a project that is already working. You could
start with the LPC2368/Eclipse demo in the FreeRTOS.org download which has a
standard makefile (although I have only tested on Windoze so you may find
some case problems in the include paths). Alternatively look in the files
section of the LPC2000 Yahoo group.

--
Regards,
Richard.

+ http://www.FreeRTOS.org & http://www.FreeRTOS.org/shop
17 official architecture ports, more than 6000 downloads per month.

+ http://www.SafeRTOS.com
Certified by TÜV as meeting the requirements for safety related systems.


.



Relevant Pages

  • Re: gcc compiling
    ... I have arm-elf-gcc 4.1.1 installed on Ubuntu and I have to cross ... compile for ARM7TDMI-S core based LPC2368 processor. ... Convert C source code to object file. ...
    (comp.sys.arm)
  • gcc compiling
    ... I have arm-elf-gcc 4.1.1 installed on Ubuntu and I have to cross ... compile for ARM7TDMI-S core based LPC2368 processor. ... Convert C source code to object file. ...
    (comp.sys.arm)
  • GCC compiling- help needed
    ... I have arm-elf-gcc 4.1.1 installed on Ubuntu and I have to cross ... compile for ARM7TDMI-S core based LPC2368 processor. ... Convert C source code to object file. ...
    (comp.arch.embedded)
  • Re: How do linkers work?
    ... the object file is probably the same as the ... does not hold since all source files are thrown together. ... you cannot get any of the traditional compile errors from the ... You're trying to claim that one is separate compilation, ...
    (comp.lang.c)
  • Re: Pleas for help from clueless students?
    ... I showed her how to compile it. ... connected to a PDP-11. ... We tried downloading again, and got a major crash during download. ... Reset the LSI-11 and got the PDP-11 prompt again. ...
    (comp.arch.embedded)