The steps to run or debug your program depend on your target system and how it is configured. Choose the appropriate method for your target.
Run or debug your program in the simulator. Sourcery G++ Lite includes an instruction-set simulator, which provides an easy way to run or debug your program without requiring target hardware. The simulator can be run directly from the command line (see Section 4.3, “Running Applications in the Simulator”) or via the debugger (see Section 4.4, “Running Applications from GDB”).
Debug your program on the target using the Debug Sprite. You can use the Sourcery G++ Debug Sprite to load and execute your program on the target from the debugger. Refer to Section 4.4, “Running Applications from GDB” for instructions on using the Sprite from the GDB command line. Detailed reference material for the Sourcery G++ Debug Sprite, including information about supported debug devices, can be found in Chapter 6, “Sourcery G++ Debug Sprite”.
Debug your program on the target using MDI. You can load and execute your program on the remote target from the debugger using the MDI protocol. Refer to Section 4.4.4, “Connecting with MDI” for instructions on configuring MDI and using MDI from the GDB command line.
Run your program on the target using YAMON. You can run programs built with Sourcery G++ Lite on MIPS ELF targets via the YAMON boot monitor. For instructions, refer to Section 3.5, “Using Sourcery G++ with YAMON”. Note that you must select a YAMON linker script profile when building your program.
Debug your program on the target using a third-party debug device. Sourcery G++ supports debugging programs on the remote target using third-party debug devices that can communicate via the GDB remote serial protocol. For command-line GDB instructions, see Section 4.4, “Running Applications from GDB”.