internal.tex 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  1. %
  2. % $Id$
  3. % This file is part of the FPC documentation.
  4. % Copyright (C) 1998 by Florian Klaempfl
  5. %
  6. % The FPC documentation is free text; you can redistribute it and/or
  7. % modify it under the terms of the GNU Library General Public License as
  8. % published by the Free Software Foundation; either version 2 of the
  9. % License, or (at your option) any later version.
  10. %
  11. % The FPC Documentation is distributed in the hope that it will be useful,
  12. % but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. % Library General Public License for more details.
  15. %
  16. % You should have received a copy of the GNU Library General Public
  17. % License along with the FPC documentation; see the file COPYING.LIB. If not,
  18. % write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19. % Boston, MA 02111-1307, USA.
  20. %
  21. \documentclass{report}
  22. \usepackage{a4}
  23. \usepackage{html}
  24. \makeindex
  25. \latex{\usepackage{multicol}}
  26. \latex{\usepackage{fpcman}}
  27. \latex{\usepackage{epsfig}}
  28. \html{\input{fpc-html.tex}}
  29. \newcommand{\remark}[1]{\par$\rightarrow$\textbf{#1}\par}
  30. \newcommand{\olabel}[1]{\label{option:#1}}
  31. % We should change this to something better. See \seef etc.
  32. \newcommand{\seeo}[1]{See \ref{option:#1}}
  33. \begin{document}
  34. \title{Free Pascal :\\ Compiler documentation}
  35. \docdescription{Compiler documentation for \fpc, version \fpcversion}
  36. \docversion{1.0}
  37. \date{September 1998}
  38. \author{Micha\"el Van Canneyt\\Florian Kl\"ampfl}
  39. \maketitle
  40. \tableofcontents
  41. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  42. % Introduction
  43. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  44. \chapter{Introduction}
  45. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  46. % About this document
  47. \section{About this document}
  48. This document tries to make the internal workings of \fpc more clear.
  49. It is assumed that the reader has some knowledge about compiler
  50. building.
  51. This document describes the compiler as it is/functions at the time of
  52. writing. Since the compiler is under continuous development, some of the
  53. things described here may be outdated. In case of doubt, consult the
  54. \file{README} files distributed with the compiler.
  55. The \file{README} files are, in case of conflict with this manual,
  56. authoritative.
  57. I hope, my poor english is quite understandable. Feel free to correct
  58. spelling mistakes.
  59. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  60. % About the compiler
  61. \section{About the compiler}
  62. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  63. % Getting more information.
  64. \section{Getting more information.}
  65. The ultimate source for information about compiler internals is
  66. the compiler source, though it isn't very well documented. If you
  67. need more information you should join the developers mailing
  68. list or you can contact the developers.
  69. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  70. % Overview
  71. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  72. \chapter{Overview}
  73. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  74. % History
  75. \section{History}
  76. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  77. % The compiler passes
  78. \section{The compiler passes}
  79. It isn't easy to divide the compilation process of \fpc into passes
  80. how it is described by many thesis about compiler building,
  81. but I would say \fpc does the compilation in five passes:
  82. \begin{enumerate}
  83. \item Scanning and Parsing. The compiler reads the input file,
  84. does preprocessing (i. e.
  85. reading include files, expanding macros ...) (\ref{ch:scanner})
  86. and the parser (\ref{ch:parser}) creates a parse tree (\ref{ch:parse_tree}).
  87. While this pass the compiler builds also the symbol tables
  88. (\ref{ch:symbol_tables}).
  89. \item Semantic analysis. This pass checks if semantic of
  90. the code is correct, i.e. if the types of expressions matches
  91. to the operators (\ref{ch:semantical_analysis}). This pass determines
  92. also how many registers are needed to evalute an expression, this
  93. information is used by the code generator later.
  94. \item Code generation
  95. \item Optimizing of the assembler
  96. \item Assembler writing
  97. \end{enumerate}
  98. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  99. % The scanner
  100. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  101. %% \chapter{The scanner}
  102. \label{ch:scanner}
  103. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  104. % The symbol tables
  105. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  106. \chapter{The symbol tables}
  107. \label{ch:symbol_tables}
  108. The symbol table is used to store information about all
  109. symbols, declarations and definitions in a program.
  110. In an abstract view, a symbol table is a data base with a string field
  111. as index. \fpc implements the symbol table mainly as a binary tree, but
  112. for big symbol tables some hash technics are used. The implementation
  113. can be found in symtable.pas, object tsymtable.
  114. The symbol table module can't be associated with a stage of the compiler,
  115. each stage accesses it.
  116. The scanner uses a symbol table to handle preprocessor symbols, the
  117. parser inserts declaration and the code generator uses the collected
  118. information about symbols and types to generate the code.
  119. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  120. % Definitions
  121. \section{Definitions}
  122. Definitions are one of the most important data structures in \fpc.
  123. They are used to describe types, for example the type of a variable
  124. symbol is given by a definition and the result type
  125. of a expression is given as a definition.
  126. They have nothing to do with the definition of a procedure.
  127. Definitions are implemented as an object (in file \file{symtable.pas},
  128. \var{tdef} and its descendents). There are a lot of different
  129. definitions, for example to describe
  130. ordinal types, arrays, pointers, procedures, ...
  131. To make it more clear let's have a look at the fields of tdef:
  132. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  133. % Symbols
  134. %% \section{Symbols}
  135. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  136. % Working with symbol tables
  137. %% \section{Working with symbol tables}
  138. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  139. % The parse tree
  140. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  141. %% \chapter{The parse tree}
  142. \label{ch:parse_tree}
  143. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  144. % The parser
  145. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  146. %% \chapter{The parser}
  147. \label{ch:parser}
  148. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  149. % The semantical analysis
  150. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  151. %% \chapter{The semantical analysis}
  152. \label{ch:semantical_analysis}
  153. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  154. % The code generation
  155. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  156. %% \chapter{The code generation}
  157. \label{ch:code_generation}
  158. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  159. % The assembler writers
  160. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  161. \chapter{The assembler writers}
  162. \label{ch:assembler_writers}
  163. \fpc doesn't generate machine language, it generates
  164. assembler which must be assembled and linked.
  165. The assembler output is configurable, \fpc can create
  166. assembler for the \file{GNU AS}, the \file{NASM} (Netwide assembler) and
  167. the assemblers of Borland and Microsoft. The default assembler
  168. is the \file{GNU AS}, because it is fast and and available on
  169. many platforms. Why don't we use the \file{NASM}? It is 2-4 times
  170. slower than the \file{GNU AS} and it is created for
  171. hand-written assembler, while the \file{GNU AS} is designed
  172. as back end for a compiler.
  173. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  174. % Miscalleanous
  175. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  176. %% \chapter{Miscalleanous}
  177. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  178. % The register allocation
  179. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  180. \chapter{The register allocation}
  181. The register allocation is very hairy, so it gets
  182. an own chapter in this manual. Please be careful when changing things
  183. regarding the register allocation and test such changes intensive.
  184. Future versions will may implement another kind of register allocation
  185. to make this part of the compiler more robust, see
  186. \ref{se:future_plans}. But the current
  187. system is less or more working and changing it would be a lot of
  188. work, so we have to live with it.
  189. The current register allocation mechanism was implemented 5 years
  190. ago and I didn't think that the compiler would become
  191. so popular, so not much time was spent in the design of it.
  192. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  193. % Basics
  194. \section{Basics}
  195. The register allocation is done in the first and the second pass of
  196. the compiler.
  197. The first pass of a node has to calculate how much registers
  198. are necessary to generate code for the node, but it also has
  199. to take care of child nodes i.e. how much registers
  200. they need.
  201. The register allocation is done via \var{getregister\*}
  202. %(where * is \var{32} or \var{mmx}).
  203. Registers can be released via \var{ungetregister\*}. All registers
  204. of a reference (i.e. base and index) can be released by
  205. \var{del\_reference}. These procedures take care of the register type,
  206. i.e. stack/base registers and registers allocated by register
  207. variables aren't added to the set of unused registers.
  208. If there is a problem in the register allocation an \var{internalerror(10)}
  209. occurs.
  210. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  211. % A simple example
  212. \section{A simple example}
  213. \subsection{The first pass}
  214. This is a part of the first pass for a pointer dereferencation
  215. (\var{p\^\ }), the type determination and some other stuff are left out.
  216. \begin{verbatim}
  217. procedure firstderef(var p : ptree);
  218. begin
  219. // .....
  220. // first pass of the child node
  221. firstpass(p^.left);
  222. // .....
  223. // to dereference a pointer we need one one register
  224. // but if the child node needs more registers, we
  225. // have to pass this to our parent node
  226. p^.registers32:=max(p^.left^.registers32,1);
  227. // a pointer dereferencation doesn't need
  228. // fpu or mmx registers
  229. p^.registersfpu:=p^.left^.registersfpu;
  230. p^.registersmmx:=p^.left^.registersmmx;
  231. // .....
  232. end;
  233. \end{verbatim}
  234. \subsection{The second pass}
  235. The following code contains the complete second pass for
  236. a pointer dereferencing node as it is used by current
  237. compiler versions:
  238. \begin{verbatim}
  239. procedure secondderef(var p : ptree);
  240. var
  241. hr : tregister;
  242. begin
  243. // second pass of the child node, this generates also
  244. // the code of the child node
  245. secondpass(p^.left);
  246. // setup the reference (this sets all values to nil, zero or
  247. // R_NO)
  248. clear_reference(p^.location.reference);
  249. // now we have to distinguish the different locations where
  250. // the child node could be stored
  251. case p^.left^.location.loc of
  252. LOC_REGISTER:
  253. // LOC_REGISTER allows us to use simply the
  254. // result register of the left node
  255. p^.location.reference.base:=p^.left^.location.register;
  256. LOC_CREGISTER:
  257. begin
  258. // we shouldn't destroy the result register of the
  259. // result node, because it is a register variable
  260. // so we allocate a register
  261. hr:=getregister32;
  262. // generate the loading instruction
  263. emit_reg_reg(A_MOV,S_L,p^.left^.location.register,hr);
  264. // setup the result location of the current node
  265. p^.location.reference.base:=hr;
  266. end;
  267. LOC_MEM,LOC_REFERENCE:
  268. begin
  269. // first, we have to release the registers of
  270. // the reference, before we can allocate
  271. // register, del_reference release only the
  272. // registers used by the reference,
  273. // the contents of the registers isn't destroyed
  274. del_reference(p^.left^.location.reference);
  275. // now there should be at least one register free, so
  276. // we can allocate one for the base of the result
  277. hr:=getregister32;
  278. // generate dereferencing instruction
  279. exprasmlist^.concat(new(pai386,op_ref_reg(
  280. A_MOV,S_L,newreference(p^.left^.location.reference),
  281. hr)));
  282. // setup the location of the new created reference
  283. p^.location.reference.base:=hr;
  284. end;
  285. end;
  286. end;
  287. \end{verbatim}
  288. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  289. % Binary nodes
  290. \section{Binary nodes}
  291. The whole thing becomes a little bit more hairy if you have to
  292. generate code for a binary+ node (a node with two or more
  293. childs). If a node calls second pass for a child node,
  294. it has to ensure that enough registers are free
  295. to evaluate the child node (\var{usableregs>=childnode\^.registers32}).
  296. If this condition isn't met, the current node has
  297. to store and restore all registers which the node owns to
  298. release registers. This should be done using the
  299. procedures \var{maybe\_push} and \var{restore}. If still
  300. \var{usableregs<childnode\^.registers32}, the child nodes have to solve
  301. the problem. The point is: if \var{usableregs<childnode\^.registers32},
  302. the current node has to release all registers which it owns
  303. before the second pass is called. An example for generating
  304. code of a binary node is \var{cg386add.secondadd}.
  305. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  306. % FPU registers
  307. \section{FPU registers}
  308. The number of required FPU registers also has to be calculated, but
  309. there's one difference: you don't have to save registers. If not
  310. enough FPU registers are free, an error message is generated, as the user
  311. has to take care of this situation since this is a consequence
  312. of the stack structure of the FPU.
  313. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  314. % Testing register allocation
  315. \section{Testing register allocation}
  316. To test new stuff, you should compile a procedure which contains some local
  317. longint variables with \file{-Or}, to limit the number of
  318. registers:
  319. \begin{verbatim}
  320. procedure test;
  321. var
  322. l,i,j,k : longint;
  323. begin
  324. l:=i; // this forces the compiler to assign as much as
  325. j:=k; // possible variables to registers
  326. // here you should insert your code
  327. end;
  328. \end{verbatim}
  329. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  330. % Future plans
  331. \section{Future plans}
  332. \label{se:future_plans}
  333. \appendix
  334. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  335. % Coding style guide
  336. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  337. \chapter{Coding style guide}
  338. This chapter describes what you should consider if you modify the
  339. compiler sources.
  340. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  341. % The formatting of the source
  342. \section{The formatting of the sources}
  343. Rules how to format the sources.
  344. \begin{itemize}
  345. \item All compiler files should be saved in UNIX format i.e. only
  346. a line feed (\#10), no carrige return (\#13).
  347. \item Don't use tabs
  348. \end{itemize}
  349. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  350. % Some hints how to write the code
  351. \section{Some hints how to write the code}
  352. \begin{itemize}
  353. \item Assigned should be used instead of checking for nil directly, as
  354. it can help solving pointer problems when in real mode.
  355. \end{itemize}
  356. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  357. % Compiler Defines
  358. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  359. \chapter{Compiler Defines}
  360. The compiler can be configured using command line defines, the
  361. basic set is decribed here, switches which change rapidly or
  362. which are only used temporarly are described in the header
  363. of \file{PP.PAS}.
  364. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  365. % Target Processor
  366. \section{Target processor}
  367. The target processor must be set always and it can be:
  368. \begin{description}
  369. \item [\var{I386}] for Intel 32 bit processors of the i386 class
  370. \item [\var{M68K}] for Motorola processors of the 68000 class
  371. \end{description}
  372. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  373. % Include compiler Parts
  374. \section{Include compiler Parts}
  375. \subsection{General}
  376. \begin{description}
  377. \item[\var{GDB}] include GDB stab debugging (\file{-g}) support
  378. \item[\var{UseBrowser}] include Browser (\file{-b}) support
  379. \end{description}
  380. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  381. % Leave Out specific Parts
  382. \section{Leave Out specific Parts}
  383. Leaving out parts of the compiler can be useful if you want to create
  384. a compiler which should also run on systems with less memory
  385. requirements (for example a real mode version compiled with Turbo Pascal).
  386. \subsection{General}
  387. \begin{description}
  388. \item[\var{NoOpt}] will leave out the optimizer
  389. \end{description}
  390. \subsection{I386 specific}
  391. The following defines apply only to the i386 version of the compiler.
  392. \begin{description}
  393. \item[\var{NoAg386Int}] No Intel styled assembler (for MASM/TASM) writer
  394. \item[\var{NoAg386Nsm}] No NASM assembler writer
  395. \item[\var{NoAg386Att}] No AT\&T assembler (for the GNU AS) writer
  396. \item[\var{NoRA386Int}] No Intel assembler parser
  397. \item[\var{NoRA386Dir}] No direct assembler parser
  398. \item[\var{NoRA386Att}] No AT\&T assembler parser
  399. \end{description}
  400. \subsection{M68k specific}
  401. The following defines apply only to the M68k version of the compiler.
  402. \begin{description}
  403. \item[\var{NoAg68kGas}] No gas asm writer
  404. \item[\var{NoAg68kMit}] No mit asm writer
  405. \item[\var{NoAg68kMot}] No mot asm writer
  406. \item[\var{NoRA68kMot}] No Motorola assembler parser
  407. \end{description}
  408. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  409. % Location of the code generator functions
  410. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  411. \chapter{Location of the code generator functions}
  412. This appendix describes where to find the functions of
  413. the code generator. The file names are given for the
  414. i386, for the m68k rename the 386 to 68k
  415. \begin{description}
  416. \item[\file{cg386con}] Constant generation
  417. \begin{description}
  418. \item[\var{secondordconst}]
  419. \item[\var{secondrealconst}]
  420. \item[\var{secondstringconst}]
  421. \item[\var{secondfixconst}]
  422. \item[\var{secondsetconst}]
  423. \item[\var{secondniln}]
  424. \end{description}
  425. \item[\file{cg386mat}] Mathematic functions
  426. \begin{description}
  427. \item[\var{secondmoddiv}]
  428. \item[\var{secondshlshr}]
  429. \item[\var{secondumminus}]
  430. \item[\var{secondnot}]
  431. \end{description}
  432. \item[\file{cg386cnv}] Type conversion functions
  433. \begin{description}
  434. \item[\var{secondtypeconv}]
  435. \item[\var{secondis}]
  436. \item[\var{secondas}]
  437. \end{description}
  438. \item[\file{cg386add}] Add/concat functions
  439. \begin{description}
  440. \item[\var{secondadd}]
  441. \end{description}
  442. \item[\file{cg386mem}] Memory functions
  443. \begin{description}
  444. \item[\var{secondvecn}]
  445. \item[\var{secondaddr}]
  446. \item[\var{seconddoubleaddr}]
  447. \item[\var{secondsimplenewdispose}]
  448. \item[\var{secondhnewn}]
  449. \item[\var{secondhdisposen}]
  450. \item[\var{secondselfn}]
  451. \item[\var{secondwith}]
  452. \item[\var{secondloadvmt}]
  453. \item[\var{secondsubscriptn}]
  454. \item[\var{secondderef}]
  455. \end{description}
  456. \item[\file{cg386flw}] Flow functions
  457. \begin{description}
  458. \item[\var{secondifn}]
  459. \item[\var{second\_while\_repeatn}]
  460. \item[\var{secondfor}]
  461. \item[\var{secondcontinuen}]
  462. \item[\var{secondbreakn}]
  463. \item[\var{secondexitn}]
  464. \item[\var{secondlabel}]
  465. \item[\var{secondgoto}]
  466. \item[\var{secondtryfinally}]
  467. \item[\var{secondtryexcept}]
  468. \item[\var{secondraise}]
  469. \item[\var{secondfail}]
  470. \end{description}
  471. \item[\file{cg386ld}] Load/Store functions
  472. \begin{description}
  473. \item[\var{secondload}]
  474. \item[\var{secondassignment}]
  475. \item[\var{secondfuncret}]
  476. \end{description}
  477. \item[\file{cg386set}] Set functions
  478. \begin{description}
  479. \item[\var{secondcase}]
  480. \item[\var{secondin}]
  481. \end{description}
  482. \item[\file{cg386cal}] Call/inline functions
  483. \begin{description}
  484. \item[\var{secondparacall}]
  485. \item[\var{secondcall}]
  486. \item[\var{secondprocinline}]
  487. \item[\var{secondinline}]
  488. \end{description}
  489. \item[\file{cgi386}] Main secondpass handling
  490. \begin{description}
  491. \item[\var{secondnothing}]
  492. \item[\var{seconderror}]
  493. \item[\var{secondasm}]
  494. \item[\var{secondblockn}]
  495. \item[\var{secondstatement}]
  496. \end{description}
  497. \end{description}
  498. \end{document}