[arm-gnu] Fwd: Doubts regarding compatilbility issues between codesourcery assembler file and RVDS assembler file.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[arm-gnu] Fwd: Doubts regarding compatilbility issues between codesourcery assembler file and RVDS assembler file.



Hey,

I have a arm assembly source code whichi is compatible with
CodeSourcery's arm-none-eabi-as. I also want to run it on RVCT 4.0
armasm. But I am getting lot of errors as GAS and ARMASM aren't
compatible. Is there any method to convert an assembly code from
CodeSourcery's assembler to RVCT's assembler?

Initially I was trying the preprocessing on the armcc compiler which
was unable to preprocess #error and the #define function directives.
But then I thought that since they are already supported by
arm-none-eabi-gcc, so lets run the preprocessor on the arm-gcc
compiler. The generated assembly code (remember the file had assembly
code with some C style directives) needs to be converted to arm-asm
style code for which I have started working on mapping the
instructions. I have problems mapping the following (arm-none-eabi-as)
directives. If you have any information about which directives replace
them on arm-asm, it would be very helpful.

1) .word
2) .size myFunc, . -myFunc
3) .org 0x6a1
4) .fill 0x100,4,~0x1353A318

Thanks and Regards
Abhinav