When using ModelSim® from the Nios® II Software Build Tools (SBT) for Eclipse to perform simulations that also include software, BSP Editor's enable_sim_optimize checkbox in the BSP Editor, some processing at startup will be omitted (*1), shortening the time until the main() function is executed.
1 Code built with this option checked cannot be used in the actual application.
[ BSP Editor ].
In a simple design example, enable_sim_optimize is unchecked, the time to main() function is 569.495 us, The time to main() function when enable_sim_optimize is checked, the time to main() function is 551.405 us.
The difference is about 18 us, but it is shorter.
[ enable_sim_optimize : OFF ]
[ enable_sim_optimize : ON ]
--------------------
Category: Nios® II
Tools: Nios® II EDS / ModelSim®-FPGA Edition
Device: -