Running an Application

If the target system is the same as the host system (e.g., if you are running ARM Sourcery G++ Lite on IA32 GNU/Linux to build an application for IA32 GNU/Linux), then you can just run the resulting application. On a Microsoft Windows system, you may use the command:

> hello

On a GNU/Linux or Solaris system, use the slightly more complex:

> ./hello

command. In either case, you should see:

Hello world!

If the target system is not the same as the host system, then you cannot run the application directly. Instead, you will have to run the application on the target system. You should consult the manuals for your target system to determine the exact procedures required to run the application.

On some systems, ARM Sourcery G++ Lite includes a simulator that can be used to run the program. To use the simulator run:

> arm-none-linux-gnueabi-run hello

The simulator is available if you see the expected output:

Hello, world!

There is no simulator for your target system if you see a message like:

'arm-none-linux-gnueabi-run' is not recognized as an internal or external command

or:

arm-none-linux-gnueabi-run: command not found