Compilation Optimization

Marco
Dear all, 
why the compilation optimization like -03 -04 etc does not work with
mini2440, but produces segmentation fault? is it a problem of cross
compiler? Are there anyone who is able to optimize the compilation for
mini2440?

eduardo
You should be doing it wrong. I use -O3 (and O of 'O'ptimization no zero)
with no problem.

Could you post your code here?

regards

Marco
This is not a matter of code, everything I compiled starting from
QTeverywhere to a little program not directly written by me, produces
segmentation fault with any optimization different from -O0. I use the
compile string suggested here in many post:

arm-none-linux-gnueabi-gcc -O0 -march=armv4t -mtune=arm920t

eduardo
Try to add this: -msoft-float -D__GCC_FLOAT_NOT_NEEDED

Hope it helps ;)

Marco
Thanks for your suggestion, I already use them, the question here is if
someone is able to use the optimization flag without the segmentation fault

Juergen Beisert
Did you also try with a different toolchain? Maybe the one you are using is
just broken...

marco
No always the same, the one downloaded form this site, do you have any
alternative? which one are you using?