9763b5530d
git-svn-id: svn://svn.compuextreme.de/Viitor/V961/Viitor_cc65@4236 504e572c-2e33-0410-9681-be2bf7408885
61 lines
1.8 KiB
HTML
61 lines
1.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.20">
|
|
<TITLE>ld65 Users Guide: Special segments</TITLE>
|
|
<LINK HREF="ld65-7.html" REL=next>
|
|
<LINK HREF="ld65-5.html" REL=previous>
|
|
<LINK HREF="ld65.html#toc6" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="ld65-7.html">Next</A>
|
|
<A HREF="ld65-5.html">Previous</A>
|
|
<A HREF="ld65.html#toc6">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="s6">6.</A> <A HREF="ld65.html#toc6">Special segments</A></H2>
|
|
|
|
|
|
<P>The builtin config files do contain segments that have a special meaning for
|
|
the compiler and the libraries that come with it. If you replace the builtin
|
|
config files, you will need the following information.</P>
|
|
|
|
<H2><A NAME="ss6.1">6.1</A> <A HREF="ld65.html#toc6.1">INIT</A>
|
|
</H2>
|
|
|
|
|
|
<P>The INIT segment is used for initialization code that may be reused once
|
|
executation reaches main() - provided that the program runs in RAM. You
|
|
may for example add the INIT segment to the heap in really memory
|
|
constrained systems.</P>
|
|
|
|
<H2><A NAME="ss6.2">6.2</A> <A HREF="ld65.html#toc6.2">LOWCODE</A>
|
|
</H2>
|
|
|
|
|
|
<P>For the LOWCODE segment, it is guaranteed that it won't be banked out, so it
|
|
is reachable at any time by interrupt handlers or similar.</P>
|
|
|
|
<H2><A NAME="ss6.3">6.3</A> <A HREF="ld65.html#toc6.3">STARTUP</A>
|
|
</H2>
|
|
|
|
|
|
<P>This segment contains the startup code which initializes the C software stack
|
|
and the libraries. It is placed in its own segment because it needs to be
|
|
loaded at the lowest possible program address on several platforms.</P>
|
|
|
|
<H2><A NAME="ss6.4">6.4</A> <A HREF="ld65.html#toc6.4">HEAP</A>
|
|
</H2>
|
|
|
|
|
|
<P>This segment defines the location of the memory heap used by the malloc
|
|
routine. </P>
|
|
|
|
|
|
|
|
<HR>
|
|
<A HREF="ld65-7.html">Next</A>
|
|
<A HREF="ld65-5.html">Previous</A>
|
|
<A HREF="ld65.html#toc6">Contents</A>
|
|
</BODY>
|
|
</HTML>
|