Per-directory project properties

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Per-directory project properties

807 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by giovanniquaglia on Tue Jan 18 01:28:37 MST 2011
I use both LPCXpresso/CodeRed 3NXP Edition suite. Changing directory optimisation property seems to have no effect.
Anyone can help me?
0 Kudos
Reply
3 Replies

800 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Jan 19 02:52:13 MST 2011
Thanks for attaching your example project. It appears that there is something very strange going on within the Eclipse CDT build engine that sits underneath LPCXpresso with regards to using the per-directory properties.

I can offer a couple a workarounds that should allow you to avoid the issue....

First of all, in your example, you are setting per-directory properties on [FONT=Courier New][SIZE=1]Subr[/SIZE][/FONT], which is a subdirectory of the main [FONT=Courier New][SIZE=1]src[/SIZE][/FONT] directory in the project, thus:

src - Subr
If you create a new subdirectory within [FONT=Courier New][SIZE=1]src[/SIZE][/FONT], say [FONT=Courier New][SIZE=1]per_dir_settings[/SIZE][/FONT], and move the[FONT=Courier New][SIZE=1] Subr[/SIZE][/FONT] subdirectory inside this, thus:

src - per_dir_settings - Subr
then the per-directory properties should now get used on the files inside [FONT=Courier New][SIZE=1]Subr[/SIZE][/FONT].

Alternatively, create a new source folder, say [FONT=Courier New][SIZE=1]src_O2[/SIZE][/FONT], at the top level within your project, and place the files that you want compiling at -O2 inside there.

Regards,
CodeRedSupport
0 Kudos
Reply

800 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by giovanniquaglia on Tue Jan 18 11:29:19 MST 2011
With the attached project you can try to change optimisation level of sub1.c from -O0 to -O2; segment text change from 1504 bytes to 1404 bytes.
You can also look for command line in console window to see correct switch (-O0 or -O2).
If you change optimisation level of  "Subr" folder nothing changes.
That's all.
0 Kudos
Reply

800 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Jan 18 03:47:05 MST 2011
Information on configuring settings at the per-file and per-directory level can be found at:

  http://support.code-red-tech.com/CodeRedWiki/PerFileProperties

This all seems to work here without problem (using LPCXpresso 3.6.1).

What settings are you actuallly trying to change/set? It would probably be helpful if you could export a project as a ZIP file that shows up the problem, and attach it to this thread.

Regards,
CodeRedSupport
0 Kudos
Reply