Converting ADS code to gcc for ARM
Amir Amin
e_engineer00@yahoo.com
Sun Jun 15 14:25:00 GMT 2003
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
More information about the crossgcc
mailing list