"Linking" involves putting the different data (code, assets) that goes into your program together into a ROM.
In the Modern SDK linking is done by passing a linkerscript to ld
, and the output ELF file being converted to a ROM binary by objcopy
.
To help simplify the process, by default the script is passed through the C preprocessor cpp
, allowing for macros and comments to be used easily.
I won't be reinterating the entire ld
manual here, but I'll show the stuff needed for N64 projects.
These macros are included in all of the demos' scripts, and I highly suggest you use them as well as they simplify the script greatly. This page covers these macros and how to use them.
An explanation of how to link in code/data and the other commands.
Back home