Sorry, never worked with the "optimized IDE" (usually "normal IDE" or "Debugger IDE")...
But now I compiled it as "optimized IDE", loaded two of the TAChart demos ("basic", "charteditor") - and they run as usual. The options used for building my optimized IDE are "-O3 -g- -Xs". What are yours?