After successfully following this book:
https://leanpub.com/mastering-stm32 (really good resource btw), I was able to get an stm32f4 disco devboard up and running with the gnu arm eclipse toolchain. I also successfully ran the blinky program with tracing and semihosting. However, as excpected this firmware willl only run properly if a debugger is connected, which makes sense!
However I would like to know if there is a simple software switch or other option to compile the program without this functionality to allow for it to run freestanding and at full speed without the overhead of the extra tracing functionality, however was not able to find a solution for this. Does anybody know how this could be achieved?