Setting gcc default to different mabi&mcpu&others at runtime

Hector Oron hector.oron@gmail.com
Fri Jan 15 21:29:00 GMT 2010


Hello,

  Out of curiosity, I wonder if it is posible (via spec file or other)
to set compiler defaults without changing any line in the application
build.

  Let me explain it as an example. Let's think I have an application
and I have several ARM boards and I want to execute the code in
several boards, but those ARM processors have different ABI and CPU
with different floating point extensions. As a requirement I should
not touch the application build system, so I can build a particular
compiler for each board and compile the code with that compiler, but
hence my question, would it be possible to change compiler default
values at runtime by setting them in a file and not passing them as
arguments?

  Apologies if I am not precise enough in my comments, I am not native
english speaker.

Kind regards,
-- 
 Héctor Orón

"Our Sun unleashes tremendous flares expelling hot gas into the Solar
System, which one day will disconnect us."



More information about the Gcc-help mailing list