internal.tex 20 KB

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