How do I skip X million cycles to “warm up” the simulator and skip over initialization code in a benchmark?
In PTLsim, this is neither necessary nor desirable. Because PTLsim directly executes your program on the host CPU until it switches to cycle accurate simulation mode, there is no way to count instructions in this manner. Many researchers have gotten in the habit of blindly skipping a large number of instructions in benchmarks to avoid profiling initialization code. However, this is not a very intelligent policy: different benchmarks have different startup times until the top of the main loop is reached, and it is generally evident from the benchmark source code where that point should be.
Related Questions
- The source code of SuperMemo is quarter of a million lines long Question: How many lines of code are there in different versions of SuperMemo? What language was it written in?
- I don find the Functional Simulator configurations for Cortex-M3, C6416, C6713 and DM642 in Code Composer Studio v4 General Setup. Where are those?
- How can I quickly match one of 150 million names to a code?