Building RTEMS with -O0

Ralf Kirchner ralf.kirchner at embedded-brains.de
Tue Mar 19 09:02:36 UTC 2013


Hi Matthew,
The quick and dirty solution is:
- Find the *.cfg file for your BSP
- In that *.cfg file (or in a file included by that file) change -Os to
-O0 or whatever you like
- Delete your build tree and run configure in order to get the option
into the Makefiles

For the lpc24xx_ncs_ram BSP this means:
- Find *.cfg
- Select and and open file
rtems/c/src/lib/libbsp/arm/lpc24xx/make/custom/lpc24xx_ncs_ram.cfg
- See that the file includes $(RTEMS_ROOT)/make/custom/lpc24xx.inc
- Open file rtems/c/src/lib/libbsp/arm/lpc24xx/make/custom/lpc24xx.inc
- In that file change -Os to -O0 and save the file
- Delete your build tree
- Run configure
- Re-build

Not a nice solution but it works.

Kind Regards
	Ralf Kirchner

Am 18.03.2013 15:02, schrieb Matthew J Fletcher:
> Hi,
> 
> Does anyone know how to override the default -0S optimisation rtems uses
> ?, there is an old (2005) post here
> 
> http://www.rtems.com/ml/rtems-users/2005/july/msg00094.html
> 
> That recommends building with VARIANT=debug but that still passed -OS
> for me.
> 
> 
> 
> regards
> ---
> Matthew J Fletcher
> 
> 
> 
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
> 


-- 
--------------------------------------------
Embedded Brains GmbH
Ralf Kirchner          Dornierstr. 4
D-82178 Puchheim       Germany
email: ralf.kirchner at embedded-brains.de
Phone: +49-89-18 94 741-17
Fax:   +49-89-18 94 741-08

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list