3.4. Using Sourcery G++ with MIPS Malta Boards
Prev | Chapter 3. Sourcery G++ Lite for MIPS ELF | Next

## 3.4. Using Sourcery G++ with MIPS Malta Boards

The provided CS3 linker scripts for MIPS Malta boards (both bare-metal and YAMON profiles) assume 128MB of RAM is available on the target. If your target board has less memory, you must adjust the memory layout used by the linker by specifying a custom linker script.

Find the linker script for your selected profile, such as `mips-sde-elf/lib/malta-ram-hosted.ld`, in your Sourcery G++ Lite installation and copy it to your project working directory. In your local copy, find the `MEMORY` directive and edit the `LENGTH` expression to match the amount of memory available on your board. Then, use the full absolute pathname of your modified linker script with the `-T` command-line option when linking your program.

Prev | Up | Next
3.3. CS3 Support | Home | 3.5. Using Sourcery G++ with YAMON