Thanks All,<br><br>Even the latest GCC/GDB/DWARF works much better at -O0.<br><br><br><div class="gmail_quote">On 19 March 2013 09:02, Ralf Kirchner <span dir="ltr"><<a href="mailto:ralf.kirchner@embedded-brains.de" target="_blank">ralf.kirchner@embedded-brains.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Matthew,<br>
The quick and dirty solution is:<br>
- Find the *.cfg file for your BSP<br>
- In that *.cfg file (or in a file included by that file) change -Os to<br>
-O0 or whatever you like<br>
- Delete your build tree and run configure in order to get the option<br>
into the Makefiles<br>
<br>
For the lpc24xx_ncs_ram BSP this means:<br>
- Find *.cfg<br>
- Select and and open file<br>
rtems/c/src/lib/libbsp/arm/lpc24xx/make/custom/lpc24xx_ncs_ram.cfg<br>
- See that the file includes $(RTEMS_ROOT)/make/custom/lpc24xx.inc<br>
- Open file rtems/c/src/lib/libbsp/arm/lpc24xx/make/custom/lpc24xx.inc<br>
- In that file change -Os to -O0 and save the file<br>
- Delete your build tree<br>
- Run configure<br>
- Re-build<br>
<br>
Not a nice solution but it works.<br>
<br>
Kind Regards<br>
Ralf Kirchner<br>
<br>
Am 18.03.2013 15:02, schrieb Matthew J Fletcher:<br>
<div class="HOEnZb"><div class="h5">> Hi,<br>
><br>
> Does anyone know how to override the default -0S optimisation rtems uses<br>
> ?, there is an old (2005) post here<br>
><br>
> <a href="http://www.rtems.com/ml/rtems-users/2005/july/msg00094.html" target="_blank">http://www.rtems.com/ml/rtems-users/2005/july/msg00094.html</a><br>
><br>
> That recommends building with VARIANT=debug but that still passed -OS<br>
> for me.<br>
><br>
><br>
><br>
> regards<br>
> ---<br>
> Matthew J Fletcher<br>
><br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> rtems-users mailing list<br>
> <a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
> <a href="http://www.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>
><br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
--------------------------------------------<br>
Embedded Brains GmbH<br>
Ralf Kirchner Dornierstr. 4<br>
D-82178 Puchheim Germany<br>
email: <a href="mailto:ralf.kirchner@embedded-brains.de">ralf.kirchner@embedded-brains.de</a><br>
Phone: <a href="tel:%2B49-89-18%2094%20741-17" value="+4989189474117">+49-89-18 94 741-17</a><br>
Fax: <a href="tel:%2B49-89-18%2094%20741-08" value="+4989189474108">+49-89-18 94 741-08</a><br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div><br>regards</div><div>---</div><div>Matthew J Fletcher</div><br>