Is it possible to switch off optimization of a specific function?
A friend of mine has the problem that the gcc optimization makes some (unknown to me) µ-controller-code not
I know this is an old post. The GCC page that OP gives actually says:
To keep such calls from being optimized away, put asm (""); in the function.
I guess this is an easy workaround. Just fine out this, hope it can helper
other people like me.