IDE and Contraints Report

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
jb007
Active Member
Posts: 33
Joined: Fri Jul 23, 2010 5:10 am

IDE and Contraints Report

Post by jb007 »

Hi. I'm using xTIMEcomposer Community 13.1.0 and would like to get a constraints report. A quick search found this topic https://www.xcore.com/forum/viewtopic.php?f=26&t=772 which states:

Go to the menu item [Project > Properties]. From there, choose "C/XC Build", then "Settings". Under "Mapper/Linker" go to "Tool Settings", then "Reports", and choose "Show Constraint Report".

Unfortunately this menu option does not exist in my version of the IDE.

Does it now exist, and if so where?

Jim


richard
Respected Member
Posts: 318
Joined: Tue Dec 15, 2009 12:46 am

Post by richard »

There is now a graphical viewer integrated into the IDE that lets you view this information. Simply double click on a .xe file in the project explorer and it will open the binary viewer that shows the resource usage.

If you still want to see the textual report you can edit the Makefile for you app and add the -report option to the XCC_FLAGS. This way every time you build a summary of the resource usage will be displayed in the console tab.
User avatar
jb007
Active Member
Posts: 33
Joined: Fri Jul 23, 2010 5:10 am

Post by jb007 »

Thanks for your help Richard. The binary viewer works a treat, but my make file contains the following switches

Code: Select all

-O3 -g -report
I'm expecting to get output to the console when I build the project, but I don't. Am I still missing/doing something wrong?

Jim
richard
Respected Member
Posts: 318
Joined: Tue Dec 15, 2009 12:46 am

Post by richard »

jb007 wrote:I'm expecting to get output to the console when I build the project, but I don't. Am I still missing/doing something wrong?
Do you get any output in the console? Normally I'd expect the output to look like this:

Code: Select all

**** Build of configuration Default for project app_xscope_realtime_example ****

xmake all 
No modules used.
Creating dependencies for xscope_realtime.xc
Compiling xscope_realtime.xc
Creating app_xscope_realtime_example.xe
Constraint check for "tile[0]" (node "0", tile 0):
  Cores available:            8,   used:          1 .  OKAY
  Timers available:          10,   used:          2 .  OKAY
  Chanends available:        32,   used:          1 .  OKAY
  Memory available:       65536,   used:      14792 .  OKAY
    (Stack: 1920, Code: 11680, Data: 1192)
Constraints checks PASSED.
Constraint check for "tile[1]" (node "1", tile 0):
  Cores available:            8,   used:          1 .  OKAY
  Timers available:          10,   used:          1 .  OKAY
  Chanends available:        32,   used:          1 .  OKAY
  Memory available:       65536,   used:       1688 .  OKAY
    (Stack: 336, Code: 1212, Data: 140)
Constraints checks PASSED.
Build Complete
Note the report is only shown if the application needs building. If you see something like:

Code: Select all

xmake all 
No modules used.
xmake[1]: `bin//app_xscope_realtime_example.xe' is up to date.
Build Complete
Then you'll need to clean the app before rebuilding.