Chapter 5. Using the Simulator

Table of Contents
5.1. The Command Line
5.2. Command Line Switches
5.3. Examples of Simulator Use

The easiest way to run an executable program is using the simulator. This is a program that runs on the host computer, and which contains an accurate model of the target. The simulator offers input and output files that application programs may use to read data and print results.

The rate of simulation is about 400 host instructions per target instruction, so, roughly speaking, a 400MHz workstation can simulate a 1MHz target at full speed, or a 14MHz target at 1/14th speed.

5.1. The Command Line

The simulator command line has the form:

$ erc-coff-run switches files