Setting build parameters for a sub-tree of RTEMS sources

Nick.SIMON at syntegra.bt.co.uk Nick.SIMON at syntegra.bt.co.uk
Mon Apr 24 14:05:35 UTC 2000


'Fraid I don't know the answer to John's question, but I'm most concerned
about problems with 'volatile' - can anyone shed any light on this?

TIA,


-- Nick Simon 

> -----Original Message-----
> From: John M. Mills [mailto:jmills at tga.com]
> Sent: 24 April 2000 14:57
> To: RTEMS Discussion List
> Subject: Q: Setting build parameters for a sub-tree of RTEMS sources
> 
> 
> Hello -
> 
> I would like to set two flags to specific values below a 
> certain point in
> my source tree, while allowing '$RTEMS_BSP.cfg' to control 
> them elsewhere.
> 
> This is in order to avoid inappropriate optimization when I access
> hardware registers. I have not been successful with 'volatile'
> declarations, I have found optimization levels which work, and I would
> still like to apply higher optimization levels to the rest of 
> the source
> tree.
> 
> In my case these flags are 'CFLAGS_OPTIMIZE_V' and 
> 'CFLAGS_DEBUG_V'. I see
> in the root of this specific sub-tree that 'aclocal.m4' conditionally
> redefines 'CFLAGS', which presumably contains my two flags.
> 
> The particular branch is: 'c/src/lib/libbsp/sh/gensh2', 
> though my question
> is a general one.
> 
> Can anyone suggest how to modify such a part of 'CFLAGS' so I 
> force the
> optimizaton levels I want?
> 
> Thanks -
> 
>    John Mills
>    Sr. Software Engineer
>    TGA Technologies, Inc.
>    100 Pinnacle Way, Suite 140
>    Norcross, GA 30071-3633
>    e-mail: jmills at tga.com
>    Phone: 770-441-2100 ext.124 (voice)
>           770-449-7740 (FAX)
> 



More information about the users mailing list