Instruction number test

Technical questions regarding the XTC tools and programming with XMOS.
aybarskizilay
Member
Posts: 8
Joined: Mon Dec 26, 2016 11:51 am

Instruction number test

Post by aybarskizilay »

Hi

I am new in Xtimecomposer tool, and I am working on the timing analyze. I am able to see how many instructions have been created for my program in the "Disassembly" window in Analyze Timing.
However, I want to know how many instructions have been executed for my program.
Can anyone help me about it?

Aybars Kizilay
User avatar
larry
Respected Member
Posts: 275
Joined: Fri Mar 12, 2010 6:03 pm

Post by larry »

One way to see instructions executed is to run pieces of code in the functional simulator

Either select Run on simulator in xTIMEcomposer's run configuration and specify Trace to in Simulator tab

Or run

Code: Select all

xsim -t binary.xe
on command line
User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm

Post by Bianco »

larry wrote:One way to see instructions executed is to run pieces of code in the functional simulator

Either select Run on simulator in xTIMEcomposer's run configuration and specify Trace to in Simulator tab

Or run

Code: Select all

xsim -t binary.xe
on command line
That worked pretty well for me in the past. If you are in a unix environment, it is very strong in combination with tools like grep and wc
peter
XCore Addict
Posts: 230
Joined: Wed Mar 10, 2010 12:46 pm

Post by peter »

If you are looking for a breakdown of how much time different functions are taking to execute then you could follow the instructions on this post: Using xsim to create a profile/call graph.

Also, if you want you can run xsim tracing directly to a file with:

Code: Select all

xsim --trace-to trace.txt BINARY.xe