With special thanks to @maxgerhardt I successfully moved my MSP430 project from IAR to platformIO. Now it seems like the code runs much slower when compiling with GCC compared to the code execution speed compiled with the IAR compiler. I already tried the -O1, -O2 and -O3 build_flags within platformio.ini without any significant improvement in speed (size does differ though). Am I missing other options to get the speed up?
cheers,
Wolfgang
---- some related background -----
@maxgerhard thankfully helped me to write a custom bootloader (see MSP430F5529 BSL memory). I now can also address the entire memory of the MSP430F5529 (see MSP430 use all 128kB (not just 47kB)). Also this site is related MSP430F5521 (instead of MSP430F5529).