Sign in to follow this  
Followers 0
PurpleJesus

Compiler, Assembler, Linker and Loader: A Brief Story

3 posts in this topic

Compiler, Assembler, Linker and Loader: A Brief Story

http://www.tenouk.com/ModuleW.html

As a note for people linking, you also have quite a bit of control of where things are to be placed inside an executable using "linker scripts" with ld. It's actually kinda neat. For an example, here's the linker script for compiling programs for the sega-genesis.


OUTPUT_FORMAT(binary);

MEMORY
{
rom (rx) : org = 0, len = 0x3fffff
io (!w!r!x) : org = 0x400000, len = 0xbf0000
debug (!w!r!x) : org = 0xff0000, len = 0xff
ram (w!x) : org = 0xff0100, len = 0xff00
}

SECTIONS
{
. = 0x00;
.text : { *(.text) }
}

0

Share this post


Link to post
Share on other sites

Good post, this is something I have been wanting to learn more about.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0