Create Xmos Resource Map File from within XTC command prompt

Technical questions regarding the XTC tools and programming with XMOS.
shaw
Active Member
Posts: 43
Joined: Fri Mar 25, 2011 12:36 am

Create Xmos Resource Map File from within XTC command prompt

Post by shaw »

We are developing an application based on the latest USB audio reference kit. With all the preprocessing statements, it can be difficult to always see what is included in the actual build. It would be very helpful to have a map of the build 'details' of what and where the XMOS resources are distributed, between the two tiles. Something like a map file. I have seen posts on how to get this info, but no luck yet. What must be done to generate an XMOS resource usage map?

We are prototyping on XK-AUIDIO-316-MC-AB kit. Build is done from within the XTC Tools 15.2.1 command prompt:

wkspace\sw_usb_audio\app_usb_aud_xk_316_mc> xmake CONFIG=2AMi8o8xxxxxx

thanks


User avatar
Ross
XCore Expert
Posts: 968
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

You're referring to the

Code: Select all

-report
option to the compiler maybe?
shaw
Active Member
Posts: 43
Joined: Fri Mar 25, 2011 12:36 am

Post by shaw »

I think the -report option displays the available and the used resources on each tile. Just the numbers of timers, chanends, memory and cores used on each tile. I was more interested in getting all the specific details for those resources. The names of the chanend and cores specifically. I would then knnow exactly what was being built, so I could make some adjustments more effectively, when moving resources from tile to tile.
User avatar
Ross
XCore Expert
Posts: 968
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Ah, try -Xmapper --map -Xmapper map.txt
shaw
Active Member
Posts: 43
Joined: Fri Mar 25, 2011 12:36 am

Post by shaw »

okay. Is that just added to the BUILD_FLAGS in MAKEFILE?
User avatar
Ross
XCore Expert
Posts: 968
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

shaw
Active Member
Posts: 43
Joined: Fri Mar 25, 2011 12:36 am

Post by shaw »

Thanks Ross