This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Converting ADS code to gcc for ARM


hello

i want to compile arm code previously compiled with ADS with gcc cross
compiler. i can compile serparate C code with gcc to create ARM-ELF,
but i cant compile assembly with C. i have sepate .s file and c files.
i want to convert .s file to gcc assembly, i need to know format of
following directives in gcc assemlby

;ADS assembly file starts
;program has entry point here
    AREA Start, CODE, READONLY

    ENTRY
init:
      ...
      ...

    Import __main
    B      __main             ;now branch to main()

;ADS assembly file ends

i want to convert this file such that entry point of code is at the
start of this file and then at B __main, main function is invoked.
if we have correct .s file then following command should word

arm-elf-gcc -o outfile application.c start.s

i will be grateful if someone helps me to do this.

regards,

Amir Amin


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]