Re: [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]

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



Abhinav Varma wrote:

> can you tell me whether arm-none-eabi-gcc does any
> optimization on a .S file when we say suppose the following command:
> arm-none-eabi-gcc -c -o abc.o abc.S

The GNU assembler (generally) doesn't optimize assembly files.  It just
translates them from textual form into the ELF object file format.

> and is the object file created by arm-none-eabi-gcc and armcc the
> same?

No; each C compiler will generate different assembly, and therefore a
different object file.  But, for the same assembly code, both the GNU
and ARM assembler are quite likely to generate the same object code.  In
any case, you can mix object code from the GNU and ARM compilers in a
single application, if you adhere to the ABI requirements.

-- 
Mark Mitchell
CodeSourcery
mark@xxxxxxxxxxxxxxxx
(650) 331-3385 x713