Hello Matthias, strange idea. I have some problems with -Os or optimisation in gemeral too. But could not find exact where the problem is. I use -mthumb-interwork here, and MUST set -mapcs-frame too. The -mapcs-frame was the important part here. Now my program is working, I do not know why?? Best regards, Michael