optimization by as

Virendra Kumar Pathak kumarvir.pathak@gmail.com
Thu Aug 6 06:59:00 GMT 2015


Hi Binutils Group,

I am new to writing assembly code. I know gcc can optimize C code
through various flags like -O, -O2, -O3 etc.
Does GNU 'as' also does any optimization (like instruction
re-ordering) when it compile assembly code (for arm/aarch64 cpu) ?

I see -O option for MIPS target in 'man as' but no such option for arm/aarch64.
Please give some insight on what type of optimization does this -O do.

Thanks.

-- 
with regards,
Virendra Kumar Pathak



More information about the Binutils mailing list