1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
4 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.7">
5 <TITLE>SDCC Compiler User Guide: Startup Code</TITLE>
6 <LINK HREF="SDCCUdoc-13.html" REL=next>
7 <LINK HREF="SDCCUdoc-11.html" REL=previous>
8 <LINK HREF="SDCCUdoc.html#toc12" REL=contents>
11 <A HREF="SDCCUdoc-13.html">Next</A>
12 <A HREF="SDCCUdoc-11.html">Previous</A>
13 <A HREF="SDCCUdoc.html#toc12">Contents</A>
15 <H2><A NAME="Startup"></A> <A NAME="s12">12. Startup Code</A> </H2>
17 <P>The compiler inserts a jump to the C routine <B>_sdcc__external__startup()</B>at the start of the CODE area. This routine can be found in the file <B>SDCCDIR/sdcc51lib/_startup.c</B>
18 , by default this routine returns 0, if this routine returns a non-zero value
19 , the static & global variable initialization will be skipped and the function
20 main will be invoked, other wise static & global variables will be initialized
21 before the function main is invoked.
23 <A HREF="SDCCUdoc-13.html">Next</A>
24 <A HREF="SDCCUdoc-11.html">Previous</A>
25 <A HREF="SDCCUdoc.html#toc12">Contents</A>