Rob Emanuele <rje@xxxxxxxxxxxxxxxx> writes: > I am writing embedded code for ARM Cortex-M3 processors. In some > cases for a tiny processor we have some c++ code we would like to run > on the Cortex with exceptions disabled. In other cases we would like > to leave them enabled. Is there a way to configure and build g++ so > when it is run with -fno-exceptions it links against a libstdc++ that > is built with -fno-exceptions? It is possible but you have to do a bit of gcc source hackery and rebuild gcc. You can treat -fno-exceptions as a multilib. See http://gcc.gnu.org/onlinedocs/gccint/Target-Fragment.html . Ian