Optimisation level on ARM
joel.sherrill at OARcorp.com
Fri Aug 3 17:01:18 UTC 2001
Andy Dachs wrote:
> Has anyone had success with the ARM bsps and any optimisation level for CFLAGS_OPTIMIZE_V in the .cfg file?
> I can successfully build a StrongArm BSP and run the sample executables with:
> CPU_CFLAGS = -mcpu=strongarm1100 -msoft-float
> But when I've tried the same CPU_FLAGS and:
> CFLAGS_OPTIMIZE_V=-O4 or
> CFLAGS_OPTIMIZE_V=-O2 or
> Any executable (hello, ticker etc) crashes shortly after startup. It could well be something in my BSP...
Just a guess but you are probably right. It is probably optimizing
somethign in your initialization code that is tinkering with HW
and is not using volatile.
> Surrey Satellite Technology Limited
> The views expressed in this email are my own (isn't that reassuring?)
> FSmail - Get your free web-based email from Freeserve: www.fsmail.net
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users