Creating Simulation Executable Files

You can use the op_mksim utility to create simulation executables that can be run from the command line. This has several advantages:

  • The executable files can be debugged using source-level debuggers.
  • You can statically bind external archive libraries (.a files) to the simulation.

Procedure 1: Creating an Executable File

  1. At the command prompt, type op_mksim followed by any necessary preferences. See “op_mksim” on page 182 for details about the op_mksim program.

    The op_mksim program creates a .sim executable file and, by default, places it in the same directory as the network model file.

    To run the executable file, do one of the following things:

    • Move to the network model directory and enter <executable_name>.<code_type>.<arch_suffix>.sim at the command prompt.
    • Specify the full path name of the .sim file from the command prompt.
    • Run the simulation from the Simulation Sequence Editor (you must specify the op_mksim executable program as the simulation program name on the Execution:Advanced:Application page).