-
Notifications
You must be signed in to change notification settings - Fork 16
/
nostub.html
55 lines (53 loc) · 2.74 KB
/
nostub.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>nostub.h</TITLE>
<STYLE TYPE="TEXT/CSS">
<!--
.IE3-DUMMY { CONT-SIZE: 100%; }
BODY { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; BACKGROUND-COLOR: #E0E0E0; }
P { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H1 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H2 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H3 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H4 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H5 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H6 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
UL { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
TD { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; BACKGROUND-COLOR: #FFFFFF; }
.NOBORDER { BACKGROUND-COLOR: #E0E0E0; PADDING: 0pt; }
.NOBORDER TD { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; BACKGROUND-COLOR: #E0E0E0; PADDING: 0pt; }
.CODE { FONT-FAMILY: Courier New; }
-->
</STYLE>
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#E0E0E0">
<FONT SIZE="5"><B>The <nostub.h> Header File</B></FONT>
<HR>
<P><B>Basic header file for kernel-less programming</B></P>
<P>This header file will be included automatically by <A HREF="default.html">default.h</A>,
except if you define the global preprocessor symbol
<CODE><A HREF="httigcc.html#kernel">USE_KERNEL</A></CODE>, or if you explicitly include the <A HREF="doors.html">doors.h</A>
header file before including any other header file.
<BR><BR>
First, this header file defines a global symbol named <CODE>NOSTUB</CODE> which is used
in other header files to indicate nostub mode.
Next, it includes <A HREF="default.html">default.h</A> to make
sure that the basic macros which GCC4TI needs are defined.
<BR><BR>
It then handles nostub-specific directives such as
<CODE><A HREF="httigcc.html#advanced_optrom">OPTIMIZE_ROM_CALLS</A></CODE> (which is useful only for nostub mode) and
<CODE><A HREF="httigcc.html#advanced_flinerom">USE_FLINE_ROM_CALLS</A></CODE> (which needs special support in nostub mode).
If these symbols are defined, some of the definitions from
<A HREF="default.html">default.h</A> are overwritten.
<BR><BR>
It contains code for <CODE>tigcc.a</CODE>, to support
<CODE><A HREF="httigcc.html#nostub">SAVE_SCREEN</A></CODE> and
<CODE><A HREF="htretval.html">RETURN_VALUE</A></CODE>.
Finally, it contains some rather complicated macros and <CODE>asm</CODE> statements
to put data needed for <CODE>RETURN_VALUE</CODE> directly into the assembly file.</P>
<P>See also: <A HREF="httigcc.html#nostub">How to make a nostub program</A>, <A HREF="default.html">default.h</A>, <A HREF="doors.html">doors.h</A></P>
<HR>
<H3><A HREF="index.html">Return to the main index</A></H3>
</BODY>
</HTML>