diff options
author | oharboe <oharboe> | 2008-08-18 12:00:34 +0000 |
---|---|---|
committer | oharboe <oharboe> | 2008-08-18 12:00:34 +0000 |
commit | 431a1bf775d468bcd788c3dd716b97cc0fca1f34 (patch) | |
tree | d327dae59d556908d6b90f6de2d2cf199ca8c323 /zpu/docs/zpu_arch.html | |
parent | 3c919f795b78bacdb9b3b7396ac5761f7457224a (diff) | |
download | zpu-431a1bf775d468bcd788c3dd716b97cc0fca1f34.zip zpu-431a1bf775d468bcd788c3dd716b97cc0fca1f34.tar.gz |
* duplicated crt0.s and some other stuff from libgloss into
sw/startup. This makes it easier to tinker w/startup code.
Diffstat (limited to 'zpu/docs/zpu_arch.html')
-rw-r--r-- | zpu/docs/zpu_arch.html | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/zpu/docs/zpu_arch.html b/zpu/docs/zpu_arch.html index ccbd0df..d8d982d 100644 --- a/zpu/docs/zpu_arch.html +++ b/zpu/docs/zpu_arch.html @@ -5,6 +5,7 @@ <li> <a href="#started">Getting started</a> <li> <a href="#introduction">Introduction</a> <li> <a href="#instructionset">Instruction set</a> +<li> <a href="#startup">Custom startup code (aka crt0.s)</a> <li> <a href="#implementing">Implementing your own ZPU</a> <li> <a href="#vectors">Jump vectors</a> <li> <a href="#memorymap">Memory map</a> @@ -817,7 +818,20 @@ int address = pop();<br> </table> - +<a name="startup"/> +<h1>Custom startup code (aka crt0.s)</h1> +To minimize the size of an application, one important trick is to +strip down the startup code. The startup code contains emulation +of instructions that may never be used by a particular application. +<p> +The startup code is found in the GCC source code under gcc/libgloss/zpu, +but to make the startup code more available, it has been duplicated +into <a href="../sw/startup">zpu/sw/startup</a> +<p> +To minimize startup size, see <a href="../roadshow/roadshow/codesize/index.html">codesize</a> +demo. This is pretty standard GCC stuff and simple enough once you've +been over it a couple of times. + <a name="implementing"/> <h1>Implementing your own ZPU</h1> One of the neat things about the ZPU is that the instruction set and architecture |