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
Instruction number test
-
- Member
- Posts: 8
- Joined: Mon Dec 26, 2016 11:51 am
-
- Respected Member
- Posts: 275
- Joined: Fri Mar 12, 2010 6:03 pm
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 on command line
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
-
- XCore Expert
- Posts: 754
- Joined: Thu Dec 10, 2009 6:56 pm
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 wclarry 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 runon command lineCode: Select all
xsim -t binary.xe
-
- XCore Addict
- Posts: 230
- Joined: Wed Mar 10, 2010 12:46 pm
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:
Also, if you want you can run xsim tracing directly to a file with:
Code: Select all
xsim --trace-to trace.txt BINARY.xe