[LLVMdev] The right option combination to compile into ARM/Thumb2 code. (original) (raw)

Karel Gardas karel.gardas at centrum.cz
Sat Sep 3 01:58:46 PDT 2011


Hi James,

On 09/ 3/11 10:46 AM, James Molloy wrote:

Hi Karel,

It actually looks like the argument parser has parsed "thumb -mattr=v7,thumb2,vfp3" as the full argument to "-march=". Strange.

thanks a lot for this remark. It actually solved my issue. It was caused by me telling GHC to pass all those params by using one -optlc parameter but this indeed results in llc receiving whole this string as one parameter. So instead of wrong:

-optlc="-march=thumb -mattr=v7,thumb2,vfp3"

I need to use:

-optlc=-march=thumb -optlc=-mattr=v7,thumb2,vfp3

where -optlc passes its argument to llc command.

Thanks! Karel



More information about the llvm-dev mailing list