Browse Source

* update compiler limits

carl 22 years ago
parent
commit
b62b059f0a
1 changed files with 6 additions and 3 deletions
  1. 6 3
      docs/prog.tex

+ 6 - 3
docs/prog.tex

@@ -3683,7 +3683,7 @@ The memory allocated looks as in \seet{ObjMem}.
 \begin{FPCltable}{ll}{Object memory layout (32-bit model)}{ObjMem} \hline
 \begin{FPCltable}{ll}{Object memory layout (32-bit model)}{ObjMem} \hline
 Offset & What \\ \hline
 Offset & What \\ \hline
 +0 & Pointer to VMT (optional). \\
 +0 & Pointer to VMT (optional). \\
-+4 & Data. All fields in the order the've been declared. \\
++4 & Data. All fields in the order they've been declared. \\
 \dots & \\
 \dots & \\
 \hline
 \hline
 \end{FPCltable}
 \end{FPCltable}
@@ -3720,7 +3720,7 @@ The memory allocated looks as in \seet{ClassMem}.
 \begin{FPCltable}{ll}{Class memory layout (32-bit model)}{ClassMem} \hline
 \begin{FPCltable}{ll}{Class memory layout (32-bit model)}{ClassMem} \hline
 Offset & What \\ \hline
 Offset & What \\ \hline
 +0 & Pointer to VMT. \\
 +0 & Pointer to VMT. \\
-+4 & Data. All fields in the order the've been declared. \\
++4 & Data. All fields in the order they've been declared. \\
 \dots & \\
 \dots & \\
 \hline
 \hline
 \end{FPCltable}
 \end{FPCltable}
@@ -5627,10 +5627,13 @@ units as well as generic versions of processor specific routines.
 \label{ch:AppC}
 \label{ch:AppC}
 There are certain compiler limits inherent to the compiler:
 There are certain compiler limits inherent to the compiler:
 \begin{enumerate}
 \begin{enumerate}
-\item Procedure or Function definitions can be nested to a level of 32.
+\item Procedure or Function definitions can be nested to a level of 32. This
+can be changed by changing the \var{maxnesting} constant.
 \item Maximally 1024 units can be used in a program when using the compiler.
 \item Maximally 1024 units can be used in a program when using the compiler.
 You can change this by redefining the \var{maxunits} constant in the compiler 
 You can change this by redefining the \var{maxunits} constant in the compiler 
 source file.
 source file.
+\item The maximum nesting level of pre-processor macros is 16. This can be
+changed by changing the value of \var{max_macro_nesting}.
 \item Arrays are limited to 2 GBytes in size in the default processor mode.
 \item Arrays are limited to 2 GBytes in size in the default processor mode.
 \end{enumerate}
 \end{enumerate}