Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
<!-- Crown Copyright (c) 1998 -->
2
<HTML>
3
<HEAD>
4
<TITLE>Supplementary UNIT</TITLE>
5
</HEAD>
6
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000FF" VLINK="#400080" ALINK="#FF0000">
7
<H1><A NAME=S374>TDF Specification, Issue 4.0</A></H1>
8
<H3>January 1998</H3>
9
<A HREF="spec10.html"><IMG SRC="../images/next.gif" ALT="next section"></A>
10
<A HREF="spec8.html"><IMG SRC="../images/prev.gif" ALT="previous section"></A>
11
<A HREF="spec1.html"><IMG SRC="../images/top.gif" ALT="current document"></A>
12
<A HREF="../index.html"><IMG SRC="../images/home.gif" ALT="TenDRA home page">
13
</A>
14
<A HREF="spec12.html"><IMG SRC="../images/index.gif" ALT="document index"></A>
15
<P>
16
<HR>
17
<DL>
18
<DT><A HREF="#S375"><B>6.1</B> - LINKINFO_PROPS</A><DD>
19
<DL>
20
<DT><A HREF="#S376"><B>6.1.1</B> - make_linkinfos</A><DD>
21
</DL>
22
<DT><A HREF="#S377"><B>6.2</B> - LINKINFO</A><DD>
23
<DL>
24
<DT><A HREF="#S378"><B>6.2.1</B> - static_name_def</A><DD>
25
<DT><A HREF="#S379"><B>6.2.2</B> - make_comment</A><DD>
26
<DT><A HREF="#S380"><B>6.2.3</B> - make_weak_defn</A><DD>
27
<DT><A HREF="#S381"><B>6.2.4</B> - make_weak_symbol</A><DD>
28
</DL>
29
</DL>
30
<HR>
31
<H1>6. Supplementary UNIT</H1>
32
<A NAME=S375>
33
 
34
<HR>
35
<H2>6.1. <A NAME=M1>LINKINFO_PROPS</A></H2>
36
<B>Number of encoding bits</B>: 0<BR>
37
<B>Is coding extendable</B>: no<BR>
38
<B>Unit identification</B>: <I>linkinfo</I><P>
39
This is an additional <CODE>UNIT</CODE> which gives extra information
40
about linking. 
41
<P>
42
<A NAME=S376>
43
<H3>6.1.1. <A NAME=M2>make_linkinfos</H3>
44
<B>Encoding number</B>: 0<P>
45
<PRE>
46
	<I>no_labels</I>:	TDFINT
47
	<I>tds</I>:		SLIST(LINKINFO)
48
		   -&gt; LINKINFO_PROPS
49
</PRE>
50
Makes the <CODE>UNIT</CODE>. 
51
<P>
52
<A NAME=S377>
53
 
54
<HR>
55
<H2>6.2. <A NAME=M3>LINKINFO</A></H2>
56
<B>Number of encoding bits</B>: 2<BR>
57
<B>Is coding extendable</B>: yes<P>
58
<A NAME=S378>
59
<H3>6.2.1. <A NAME=M4>static_name_def</H3>
60
<B>Encoding number</B>: 1<P>
61
<PRE>
62
	<I>assexp</I>:		EXP POINTER <I>x</I>
63
	<I>id</I>:		TDFSTRING<I>(k, n)</I>
64
		   -&gt; LINKINFO
65
</PRE>
66
<I>assexp</I> will be an <I>obtain_tag</I> construction which refers
67
to a <CODE>TAG</CODE> which is defined with <I>make_id_tagdef</I>,
68
<I>make_var_tagdef</I> or <I>common_tagdef</I>. This <CODE>TAG</CODE>
69
will not be linked to an <CODE>EXTERNAL</CODE>. 
70
<P>
71
The name <I>id</I> shall be used (but not exported, i.e. <I>static</I>)
72
to identify the definition for subsequent linking. 
73
<P>
74
<I>This construction is likely to be needed for profiling, so that
75
useful names appear for statically defined objects. It may also be
76
needed when C++ is translated into C, in order to identify global
77
initialisers.</I>
78
<P>
79
<A NAME=S379>
80
<H3>6.2.2. <A NAME=M5>make_comment</H3>
81
<B>Encoding number</B>: 2<P>
82
<PRE>
83
	<I>n</I>:		TDFSTRING<I>(k, n)</I>
84
		   -&gt; LINKINFO
85
</PRE>
86
<I>n</I> shall be incorporated into the object file as a comment,
87
if this facility exists. Otherwise the construct is ignored. 
88
<P>
89
<A NAME=S380>
90
<H3>6.2.3. <A NAME=M6>make_weak_defn</H3>
91
<B>Encoding number</B>: 3<P>
92
<PRE>
93
	<I>namer</I>:		EXP POINTER <I>x</I>
94
	<I>val</I>:		EXP POINTER <I>y</I>
95
		   -&gt; LINKINFO
96
</PRE>
97
<I>namer</I> and <I>val</I> will be <I>obtain_tag</I> constructions
98
which refer to <CODE>TAG</CODE>s which are defined with 
99
<I>make_id_tagdef</I>, <I>make_var_tagdef</I> or <I>common_tagdef</I>.
100
They shall be made synonymous. 
101
<P>
102
<A NAME=S381>
103
<H3>6.2.4. <A NAME=M7>make_weak_symbol</H3>
104
<B>Encoding number</B>: 4<P>
105
<PRE>
106
	<I>id</I>:		TDFSTRING<I>(k, n)</I>
107
	<I>val</I>:		EXP POINTER <I>x</I>
108
		   -&gt; LINKINFO
109
</PRE>
110
<I>val</I> will be an <I>obtain_tag</I> construction which refers
111
to a <CODE>TAG</CODE> which is defined with <I>make_id_tagdef</I>,
112
<I>make_var_tagdef</I> or <I>common_tagdef</I>. 
113
<P>
114
This <CODE>TAG</CODE> shall be made <I>weak</I> (in the same sense
115
as in the SVID ABI Symbol Table), and <I>id</I> shall be synonymous
116
with it. 
117
<P>
118
<P>
119
<HR>
120
<P><I>Part of the <A HREF="../index.html">TenDRA Web</A>.<BR>Crown
121
Copyright &copy; 1998.</I></P>
122
</BODY>
123
</HTML>