doc/sdccman.lyx: fixed bug 739745
[fw/sdcc] / doc / sdccman.lyx
index 97b032ddd1f9ff638d59d0420ea89a9e671ad6c5..b915fcef280736b1e8bfed6bb83b74976ae027ff 100644 (file)
 \papersides 1
 \paperpagestyle fancy
 
-\layout Title
-
-
-\begin_inset ERT
-status Open
-
-\layout Standard
+\layout Comment
 
-\backslash 
-NotSpecial{
-\backslash 
-do
-\backslash 
--}
-\end_inset 
+Please note: double dashed longoptions (e.g.
+ --version) need three dashes in this document to be visable in html and
+ pdf output.
+\layout Title
 
 SDCC Compiler User Guide
 \layout Standard
@@ -142,7 +133,7 @@ inline assembler code
 \newline 
 
 \newline 
-SDCC also provides an option (---cyclomatic) to report the relative complexity
+SDCC also provides an option (--cyclomatic) to report the relative complexity
  of a function.
  These functions can then be further optimized, or hand coded in assembly
  if needed.
@@ -157,7 +148,7 @@ SDCC also comes with a companion source level debugger SDCDB, the debugger
 
 \newline 
 The latest version can be downloaded from 
-\begin_inset LatexCommand \htmlurl{http://sdcc.sourceforge.net/}
+\begin_inset LatexCommand \url{http://sdcc.sourceforge.net/}
 
 \end_inset 
 
@@ -235,8 +226,8 @@ short is now equivalent to int (16 bits), it used to be equivalent to char
  (8 bits) which is not ANSI compliant
 \layout Itemize
 
-the default directory where include, library and documention files are stored
- is now in /usr/local/share
+the default directory for gcc-builds where include, library and documention
files are stored is now in /usr/local/share
 \layout Itemize
 
 char type parameters to vararg functions are casted to int unless explicitly
@@ -259,17 +250,13 @@ n", a, (char)a);
  will push a as an int and as a char resp.
 \layout Itemize
 
-option 
-\family typewriter 
---
-\family default 
-regextend has been removed
+option ---regextend has been removed
 \layout Itemize
 
-option --noregparms has been removed
+option ---noregparms has been removed
 \layout Itemize
 
-option --stack-after-data has been removed
+option ---stack-after-data has been removed
 \layout Standard
 
 
@@ -293,7 +280,7 @@ Other Resources
 \layout Standard
 
 The SDCC home page at 
-\begin_inset LatexCommand \htmlurl{http://sdcc.sourceforge.net/}
+\begin_inset LatexCommand \url{http://sdcc.sourceforge.net/}
 
 \end_inset 
 
@@ -343,219 +330,2023 @@ If you can think of some more, please send them to the list.
 Installation
 \layout Subsection
 
-Install and search paths
+Configure Options
 \layout Standard
 
-Linux (and other gcc-builds like Solaris, Cygwin, Mingw and OSX) by default
- install in /usr/local.
- You can override this when configuring with --prefix-path.
- Subdirs used will be bin, share/sdcc/include, share/sdcc/lib and share/sdcc/doc.
-\newline 
-Windows MSVC and Borland builds will install in one single tree (e.g.
- /sdcc) with subdirs bin, lib, include and doc.
-\newline 
+The install paths, search paths and other options are defined when running
+ 'configure'.
+ The defaults can be overriden by:
+\layout List
+\labelwidthstring 00.00.0000
+
+---prefix see tabel below
+\layout List
+\labelwidthstring 00.00.0000
+
+---exec_prefix see tabel below
+\layout List
+\labelwidthstring 00.00.0000
+
+---bindir see tabel below
+\layout List
+\labelwidthstring 00.00.0000
+
+---datadir see tabel below
+\layout List
+\labelwidthstring 00.00.0000
+
+docdir environment variable, see tabel below
+\layout List
+\labelwidthstring 00.00.0000
+
+include_dir_suffix environment variable, see tabel below
+\layout List
+\labelwidthstring 00.00.0000
+
+lib_dir_suffix environment variable, see tabel below
+\layout List
+\labelwidthstring 00.00.0000
+
+sdccconf_h_dir_separator environment variable, either / or 
+\backslash 
+
+\backslash 
+ makes sense here.
+ This character will only be used in sdccconf.h; don't forget it's a C-header,
+ therefore a double-backslash is needed there.
+\layout List
+\labelwidthstring 00.00.0000
+
+---disable-mcs51-port Excludes the Intel mcs51 port
+\layout List
+\labelwidthstring 00.00.0000
+
+---disable-gbz80-port Excludes the Gameboy gbz80 port
+\layout List
+\labelwidthstring 00.00.0000
+
+---disable-z80-port Excludes the z80 port
+\layout List
+\labelwidthstring 00.00.0000
+
+---disable-avr-port Excludes the AVR port
+\layout List
+\labelwidthstring 00.00.0000
+
+---disable-ds390-port Excludes the DS390 port
+\layout List
+\labelwidthstring 00.00.0000
+
+---disable-pic-port Excludes the PIC port
+\layout List
+\labelwidthstring 00.00.0000
+
+---disable-xa51-port Excludes the XA51 port
+\layout List
+\labelwidthstring 00.00.0000
+
+---disable-ucsim Disables configuring and building of ucsim
+\layout List
+\labelwidthstring 00.00.0000
+
+---disable-device-lib-build Disables automatically building device libraries
+\layout List
+\labelwidthstring 00.00.0000
+
+---disable-packihx Disables building packihx
+\layout List
+\labelwidthstring 00.00.0000
+
+---enable-libgc Use the Bohem memory allocator.
+ Lower runtime footprint.
+\layout Standard
 
+Furthermore the environment variables CC, CFLAGS, ...
+ the tools and their arguments can be influenced.
+ Please see `configure ---help` and the man/info pages of `configure` for
+ details.
 \newline 
-The paths searched when running the compiler are as follows (the first catch
- wins):
-\layout Enumerate
 
-Binary files (preprocessor, assembler and linker):
 \newline 
-- the path of argv[0] (if available)
+The names of the standard libraries STD_LIB, STD_INT_LIB, STD_LONG_LIB,
+ STD_FP_LIB, STD_DS390_LIB, STD_XA51_LIB and the environment variables SDCC_DIR_
+NAME, SDCC_INCLUDE_NAME, SDCC_LIB_NAME are defined by `configure` too.
+ At the moment it's not possible to change the default settings (it was
+ simply never required.
 \newline 
-- getenv(
-\begin_inset Quotes sld
-\end_inset 
 
-SDCC_BIN_PATH
-\begin_inset Quotes srd
-\end_inset 
+\newline 
+These configure options are compiled into the binaries, and can only be
+ changed by rerunning 'configure' and recompiling SDCC.
+ The configure options are written in 
+\emph on 
+italics
+\emph default 
+ to distinguish them from run time environment variables (see section search
+ paths).
+\newline 
 
-)
 \newline 
-- getenv(
+The settings for 
 \begin_inset Quotes sld
 \end_inset 
 
-SDCCHOME
+Win32 builds
 \begin_inset Quotes srd
 \end_inset 
 
-)/bin
-\newline 
-- $PATH
+ are used by the SDCC team to build the official Win32 binaries.
+ The SDCC team uses Mingw32 to build the official Windows binaries, because
+ it's
 \layout Enumerate
 
-Include files:
-\newline 
-- -I dir
-\newline 
-- getenv(
-\begin_inset Quotes sld
-\end_inset 
+open source, 
+\layout Enumerate
 
-SDCC_INCLUDE_PATH
-\begin_inset Quotes srd
-\end_inset 
+a gcc compiler and last but not least
+\layout Enumerate
 
-)
+the binaries can be built by cross compiling on Sourceforge's compile farm.
+\layout Standard
+
+See the examples, how to pass the Win32 settings to 'configure'.
+ The other Win32 builds using Borland, VC or whatever don't use 'configure',
+ but a header file sdcc_vc_in.h is the same as sdccconf.h built by 'configure'
+ for Win32.
 \newline 
-- getenv(
-\begin_inset Quotes sld
-\end_inset 
 
-SDCCHOME)/include
 \newline 
-- /usr/local/share/sdcc/include (gcc builds)
+These defaults are:
 \newline 
-- path(arv[0])/../include and then /sdcc/include (windoze msvc and borland
- builds)
-\layout Enumerate
 
-Library files (the 
-\shape italic 
-model
-\shape default 
- is auto-appended by the compiler, e.g.
- small, large, z80, ds390 etc.):
 \newline 
-- -L dir
-\newline 
-- getenv(
-\begin_inset Quotes sld
-\end_inset 
 
-SDCC_LIB_PATH
-\begin_inset Quotes srd
+\begin_inset  Tabular
+<lyxtabular version="3" rows="8" columns="3">
+<features>
+<column alignment="left" valignment="top" leftline="true" width="0in">
+<column alignment="left" valignment="top" leftline="true" width="0in">
+<column alignment="left" valignment="top" leftline="true" rightline="true" width="0in">
+<row topline="true" bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Variable
 \end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
 
-)/
-\shape italic 
-model
-\shape default 
+\layout Standard
 
-\newline 
-- getenv(
-\begin_inset Quotes sld
+default
 \end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
 
-SDCCHOME
-\begin_inset Quotes srd
+\layout Standard
+
+Win32 builds
 \end_inset 
+</cell>
+</row>
+<row topline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
 
-)/lib/
-\shape italic 
-model
-\shape default 
+\layout Standard
 
-\newline 
-- /usr/local/share/sdcc/lib/
-\shape italic 
-model
-\shape default 
- (gcc builds)
-\newline 
-- path(argv[0])/../lib/
-\shape italic 
-model
-\shape default 
- and then /sdcc/lib/
-\shape italic 
-model
-\shape default 
- (windoze msvc and borland builds)
-\layout Enumerate
 
-Documentation (although never really searched for, you have to do that yourself
- :):
-\newline 
-- getenv(
-\begin_inset Quotes sld
+\emph on 
+PREFIX
 \end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
 
-SDCCHOME
-\begin_inset Quotes srd
+\layout Standard
+
+/usr/local
 \end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
 
-)/doc
-\newline 
-- /usr/local/share/sdcc/doc (gcc builds)
-\newline 
-- /sdcc/doc (windoze msvc and borland builds)
 \layout Standard
 
-So, for windoze it is highly recommended to set the environment variable
- SDCCHOME to prevent needless usage of -I and -L.
-\layout Subsection
 
-Linux and other gcc-based systems (cygwin, mingw, osx)
-\layout Enumerate
+\backslash 
+sdcc
+\end_inset 
+</cell>
+</row>
+<row topline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
 
+\layout Standard
 
-\series medium 
-Download the source package
-\series default 
- either from the SDCC CVS repository or from the 
-\begin_inset LatexCommand \url[nightly snapshots]{http://sdcc.sourceforge.net/snap.php}
 
+\emph on 
+EXEC_PREFIX
 \end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
 
+\layout Standard
 
-\series medium 
-, it will be named something like sdcc
-\series default 
-.src
-\series medium 
-.tgz.
-\layout Enumerate
 
+\emph on 
+$PREFIX
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
 
-\series medium 
-Bring up a command line terminal, such as xterm.
-\layout Enumerate
+\layout Standard
 
 
-\series medium 
-Unpack the file using a command like: 
-\family sans 
-\series bold 
-"tar -xzf sdcc.src.tgz
-\family default 
-\series default 
-"
-\series medium 
-, this will create a sub-directory called sdcc with all of the sources.
-\layout Enumerate
+\emph on 
+$PREFIX
+\end_inset 
+</cell>
+</row>
+<row topline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
 
-Change directory into the main SDCC directory, for example type: 
-\family sans 
-\series bold 
-"cd sdcc
-\series default 
-".
-\layout Enumerate
+\layout Standard
 
 
-\series medium 
-Type 
-\family sans 
-\series bold 
-"./configure
-\family default 
-\series default 
-".
- This configures the package for compilation on your system.
-\layout Enumerate
+\emph on 
+BINDIR
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
 
+\layout Standard
 
-\series medium 
-Type 
-\family sans 
-\series bold 
-"make
-\family default 
-\series default 
+
+\emph on 
+$EXECPREFIX
+\emph default 
+/bin
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+$EXECPREFIX
+\emph default 
+
+\backslash 
+bin
+\end_inset 
+</cell>
+</row>
+<row topline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+DATADIR
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+$PREFIX
+\emph default 
+/share
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+$PREFIX
+\end_inset 
+</cell>
+</row>
+<row topline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+DOCDIR
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+$DATADIR
+\emph default 
+/sdcc/doc
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+$DATADIR
+\emph default 
+
+\backslash 
+doc
+\end_inset 
+</cell>
+</row>
+<row topline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+INCLUDE_DIR_SUFFIX
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+sdcc/include
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+include
+\end_inset 
+</cell>
+</row>
+<row topline="true" bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+LIB_DIR_SUFFIX
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+sdcc/lib
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+lib
+\end_inset 
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset 
+
+
+\newline 
+
+\newline 
+
+\newline 
+'configure' also computes relative paths.
+ This is needed for full relocatability of a binary package and to complete
+ search paths (see section search paths below):
+\newline 
+\newline 
+
+\begin_inset  Tabular
+<lyxtabular version="3" rows="4" columns="3">
+<features>
+<column alignment="left" valignment="top" leftline="true" width="0in">
+<column alignment="left" valignment="top" leftline="true" width="0in">
+<column alignment="left" valignment="top" leftline="true" rightline="true" width="0in">
+<row topline="true" bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Variable (computed)
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+default
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Win32 builds
+\end_inset 
+</cell>
+</row>
+<row topline="true" bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+BIN2DATA_DIR
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+../share
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+..
+\backslash 
+
+\end_inset 
+</cell>
+</row>
+<row bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+PREFIX2BIN_DIR
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+bin
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+bin
+\end_inset 
+</cell>
+</row>
+<row bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+PREFIX2DATA_DIR
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+share/sdcc
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+\end_inset 
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset 
+
+
+\newline 
+
+\newline 
+Examples:
+\layout LyX-Code
+
+./configure
+\layout LyX-Code
+
+./configure ---prefix=
+\begin_inset Quotes srd
+\end_inset 
+
+/usr/bin
+\begin_inset Quotes srd
+\end_inset 
+
+ ---datadir=
+\begin_inset Quotes srd
+\end_inset 
+
+/usr/share
+\begin_inset Quotes srd
+\end_inset 
+
+
+\layout LyX-Code
+
+./configure ---disable-avr-port ---disable-xa51-port
+\layout Standard
+
+To crosscompile on linux for Mingw32 (see also 'sdcc/support/scripts/sdcc_mingw3
+2'):
+\layout LyX-Code
+
+./configure 
+\backslash 
+
+\layout LyX-Code
+
+  CC=
+\begin_inset Quotes srd
+\end_inset 
+
+i586-mingw32msvc-gcc
+\begin_inset Quotes srd
+\end_inset 
+
+ CXX=
+\begin_inset Quotes srd
+\end_inset 
+
+i586-mingw32msvc-g++
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  RANLIB=
+\begin_inset Quotes srd
+\end_inset 
+
+i586-mingw32msvc-ranlib
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  STRIP=
+\begin_inset Quotes srd
+\end_inset 
+
+i586-mingw32msvc-strip
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  ---prefix=
+\begin_inset Quotes srd
+\end_inset 
+
+/sdcc
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  ---datadir=
+\begin_inset Quotes srd
+\end_inset 
+
+/sdcc
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  docdir=
+\begin_inset Quotes srd
+\end_inset 
+
+/sdcc/doc
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  include_dir_suffix=
+\begin_inset Quotes srd
+\end_inset 
+
+include
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  lib_dir_suffix=
+\begin_inset Quotes srd
+\end_inset 
+
+lib
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  sdccconf_h_dir_separator=
+\begin_inset Quotes srd
+\end_inset 
+
+
+\backslash 
+
+\backslash 
+
+\backslash 
+
+\backslash 
+
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  ---disable-device-lib-build 
+\backslash 
+
+\layout LyX-Code
+
+  ---disable-ucsim 
+\backslash 
+
+\layout LyX-Code
+
+  ---host=i586-mingw32msvc ---build=unknown-unknown-linux-gnu
+\layout Standard
+
+To 
+\begin_inset Quotes sld
+\end_inset 
+
+cross
+\begin_inset Quotes srd
+\end_inset 
+
+compile on Cygwin for Mingw32(see also sdcc/support/scripts/sdcc_cygwin_mingw32)
+:
+\layout LyX-Code
+
+./configure -C 
+\backslash 
+
+\layout LyX-Code
+
+  CFLAGS=
+\begin_inset Quotes srd
+\end_inset 
+
+-mno-cygwin -O2
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  LDFLAGS=
+\begin_inset Quotes srd
+\end_inset 
+
+-mno-cygwin
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  ---prefix=
+\begin_inset Quotes srd
+\end_inset 
+
+/sdcc
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  ---datadir=
+\begin_inset Quotes srd
+\end_inset 
+
+/sdcc
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  docdir=
+\begin_inset Quotes srd
+\end_inset 
+
+/sdcc/doc
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  include_dir_suffix=
+\begin_inset Quotes srd
+\end_inset 
+
+include
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  lib_dir_suffix=
+\begin_inset Quotes srd
+\end_inset 
+
+lib
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  sdccconf_h_dir_separator=
+\begin_inset Quotes srd
+\end_inset 
+
+
+\backslash 
+
+\backslash 
+
+\backslash 
+
+\backslash 
+
+\begin_inset Quotes srd
+\end_inset 
+
+\backslash 
+
+\layout LyX-Code
+
+  ---disable-ucsim
+\layout Standard
+
+'configure' is quite slow on Cygwin (at least on windows before Win2000/XP).
+ The option '--C' turns on caching, which gives a little bit extra speed.
+ However if options are changed, it can be necessary to delete the config.cache
+ file.
+\layout Subsection
+
+Install paths
+\layout Standard
+
+1.
+ Binary files (preprocessor, assembler and linker)
+\layout Standard
+
+
+\begin_inset  Tabular
+<lyxtabular version="3" rows="2" columns="3">
+<features>
+<column alignment="left" valignment="top" leftline="true" width="0in">
+<column alignment="left" valignment="top" leftline="true" width="0in">
+<column alignment="left" valignment="top" leftline="true" rightline="true" width="0in">
+<row topline="true" bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Path
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+default
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Win32 builds
+\end_inset 
+</cell>
+</row>
+<row topline="true" bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+$EXEC_PREFIX
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+/usr/local/bin
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\backslash 
+sdcc
+\backslash 
+bin
+\end_inset 
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset 
+
+\newline 
+
+\newline 
+2.
+ Include files
+\layout Standard
+
+
+\begin_inset  Tabular
+<lyxtabular version="3" rows="2" columns="3">
+<features>
+<column alignment="block" valignment="top" leftline="true" width="1.6in">
+<column alignment="left" valignment="top" leftline="true" width="0in">
+<column alignment="center" valignment="top" leftline="true" rightline="true" width="0in">
+<row topline="true" bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Path
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+default
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Win32 builds
+\end_inset 
+</cell>
+</row>
+<row topline="true" bottomline="true">
+<cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+$DATADIR/
+\newline 
+$INCLUDE_DIR_SUFFIX
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+/usr/local/share/sdcc/include
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\backslash 
+sdcc
+\backslash 
+include
+\end_inset 
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset 
+
+
+\newline 
+
+\newline 
+3.
+ Library files (the 
+\shape italic 
+model
+\shape default 
+ is auto-appended by the compiler, e.g.
+ small, large, z80, ds390 etc.)
+\layout Standard
+
+
+\begin_inset  Tabular
+<lyxtabular version="3" rows="2" columns="3">
+<features>
+<column alignment="left" valignment="top" leftline="true" width="0in">
+<column alignment="left" valignment="top" leftline="true" width="0in">
+<column alignment="left" valignment="top" leftline="true" rightline="true" width="0in">
+<row topline="true" bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Path
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+default
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Win32 builds
+\end_inset 
+</cell>
+</row>
+<row topline="true" bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+$DATADIR/$LIB_DIR_SUFFIX
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+/usr/local/share/sdcc/lib
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\backslash 
+sdcc
+\backslash 
+lib
+\end_inset 
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset 
+
+
+\newline 
+
+\newline 
+4.
+ Documentation
+\layout Standard
+
+
+\begin_inset  Tabular
+<lyxtabular version="3" rows="2" columns="3">
+<features>
+<column alignment="left" valignment="top" leftline="true" width="0in">
+<column alignment="left" valignment="top" leftline="true" width="0in">
+<column alignment="left" valignment="top" leftline="true" rightline="true" width="0in">
+<row topline="true" bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Path
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+default
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Win32 builds
+\end_inset 
+</cell>
+</row>
+<row topline="true" bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+$DOCDIR
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+/usr/local/share/sdcc/doc
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\backslash 
+sdcc
+\backslash 
+doc
+\end_inset 
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset 
+
+
+\newline 
+
+\newline 
+The install paths can still be changed during `make install` with e.g.:
+\layout LyX-Code
+
+make install prefix=$(HOME)/local/sdcc
+\layout Standard
+
+Of course this doesn't change the search paths compiled into the binaries.
+\layout Subsection
+
+Search Paths
+\layout Standard
+
+Some search paths or parts of them are determined by configure variables
+ (in 
+\emph on 
+italics
+\emph default 
+, see section above).
+ Further search paths are determined by environment variables during runtime.
+\newline 
+The paths searched when running the compiler are as follows (the first catch
+ wins):
+\newline 
+
+\newline 
+1.
+ Binary files (preprocessor, assembler and linker)
+\newline 
+\begin_inset  Tabular
+<lyxtabular version="3" rows="4" columns="3">
+<features>
+<column alignment="left" valignment="top" leftline="true" width="0in">
+<column alignment="left" valignment="top" leftline="true" width="0in">
+<column alignment="left" valignment="top" leftline="true" rightline="true" width="0in">
+<row topline="true" bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Search path
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+default
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Win32 builds
+\end_inset 
+</cell>
+</row>
+<row topline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$SDCC_HOME/
+\emph on 
+$PPREFIX2BIN_DIR
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$SDCC_HOME/bin
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$SDCC_HOME
+\backslash 
+bin
+\end_inset 
+</cell>
+</row>
+<row topline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Path of argv[0] (if available)
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Path of argv[0]
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Path of argv[0]
+\end_inset 
+</cell>
+</row>
+<row topline="true" bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$PATH
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$PATH
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$PATH
+\end_inset 
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset 
+
+\newline 
+
+\newline 
+2.
+ Include files
+\newline 
+\begin_inset  Tabular
+<lyxtabular version="3" rows="6" columns="3">
+<features>
+<column alignment="block" valignment="top" leftline="true" width="1.5in">
+<column alignment="block" valignment="top" leftline="true" width="1.5in">
+<column alignment="left" valignment="top" leftline="true" rightline="true" width="0in">
+<row topline="true" bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Search path
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+default
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Win32 builds
+\end_inset 
+</cell>
+</row>
+<row topline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+---I dir
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+---I dir
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+---I dir
+\end_inset 
+</cell>
+</row>
+<row topline="true">
+<cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$SDCC_INCLUDE
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$SDCC_INCLUDE
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$SDCC_INCLUDE
+\end_inset 
+</cell>
+</row>
+<row topline="true">
+<cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$SDCC_HOME/
+\newline 
+
+\emph on 
+$PREFIX2DATA_DIR/
+\newline 
+$INCLUDE_DIR_SUFFIX
+\end_inset 
+</cell>
+<cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$SDCC_ HOME/
+\newline 
+share/sdcc/
+\newline 
+include
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$SDCC_HOME
+\backslash 
+include
+\end_inset 
+</cell>
+</row>
+<row topline="true">
+<cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+path(argv[0])/
+\newline 
+
+\emph on 
+$BIN2DATADIR/
+\emph default 
+
+\newline 
+
+\emph on 
+$INCLUDE_DIR_SUFFIX
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+path(argv[0])/
+\newline 
+../sdcc/include
+\newline 
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+path(argv[0])
+\backslash 
+..
+\backslash 
+include
+\end_inset 
+</cell>
+</row>
+<row topline="true" bottomline="true">
+<cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+$DATADIR/
+\emph default 
+
+\newline 
+
+\emph on 
+$INCLUDE_DIR_SUFFIX
+\end_inset 
+</cell>
+<cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+/usr/local/share/sdcc/
+\newline 
+include
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+(not on Win32)
+\end_inset 
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset 
+
+\newline 
+
+\newline 
+ The option ---nostdinc disables the last two search paths.
+\newline 
+
+\newline 
+3.
+ Library files 
+\newline 
+With the exception of 
+\begin_inset Quotes sld
+\end_inset 
+
+---L dir
+\begin_inset Quotes srd
+\end_inset 
+
+ the 
+\shape italic 
+model
+\shape default 
+ is auto-appended by the compiler (e.g.
+ small, large, z80, ds390 etc.).
+\newline 
+
+\begin_inset  Tabular
+<lyxtabular version="3" rows="6" columns="3">
+<features>
+<column alignment="block" valignment="top" leftline="true" width="1.7in">
+<column alignment="left" valignment="top" leftline="true" width="1.2in">
+<column alignment="block" valignment="top" leftline="true" rightline="true" width="1.2in">
+<row topline="true" bottomline="true">
+<cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Search path
+\end_inset 
+</cell>
+<cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+default
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+Win32 builds
+\end_inset 
+</cell>
+</row>
+<row topline="true">
+<cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+---L dir
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+---L dir
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+---L dir
+\end_inset 
+</cell>
+</row>
+<row topline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$SDCC_LIB/
+\newline 
+
+\emph on 
+<model>
+\end_inset 
+</cell>
+<cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$SDCC_LIB/
+\newline 
+
+\emph on 
+<model>
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$SDCC_LIB
+\backslash 
+
+\newline 
+
+\emph on 
+<model>
+\end_inset 
+</cell>
+</row>
+<row topline="true">
+<cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$SDCC_HOME/
+\newline 
+
+\emph on 
+$PREFIX2DATA_DIR/
+\newline 
+$LIB_DIR_SUFFIX/<model>
+\end_inset 
+</cell>
+<cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$SDCC_HOME/
+\newline 
+share/sdcc/
+\newline 
+lib/
+\emph on 
+<model>
+\end_inset 
+</cell>
+<cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+$SDCC_HOME
+\backslash 
+lib
+\backslash 
+
+\emph on 
+
+\newline 
+<model>
+\end_inset 
+</cell>
+</row>
+<row topline="true">
+<cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+path(argv[0])/
+\newline 
+
+\emph on 
+$BIN2DATADIR/
+\emph default 
+
+\newline 
+
+\emph on 
+$LIB_DIR_SUFFIX/<model>
+\end_inset 
+</cell>
+<cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+path(argv[0])/
+\newline 
+../sdcc/lib/
+\emph on 
+<model>
+\newline 
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+path(argv[0])
+\backslash 
+
+\newline 
+..
+\backslash 
+lib
+\backslash 
+
+\emph on 
+<model>
+\newline 
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+\SpecialChar ~
+
+\end_inset 
+</cell>
+</row>
+<row topline="true" bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+
+\emph on 
+$DATADIR/
+\newline 
+$LIB_DIR_SUFFIX/<model>
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+/usr/local/share/sdcc/
+\newline 
+lib/
+\emph on 
+<model>
+\end_inset 
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\layout Standard
+
+(not on Win32)
+\end_inset 
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset 
+
+
+\layout Comment
+
+Don't delete any of the stray spaces in the table above without checking
+ the HTML output (last line)!
+\layout Standard
+
+\SpecialChar ~
+
+\newline 
+The option ---nostdlib disables the last two search paths.
+\layout Subsection
+
+Building SDCC
+\layout Subsubsection
+
+Building SDCC on Linux
+\layout Enumerate
+
+
+\series medium 
+Download the source package
+\series default 
+ either from the SDCC CVS repository or from the 
+\begin_inset LatexCommand \url[nightly snapshots]{http://sdcc.sourceforge.net/snap.php}
+
+\end_inset 
+
+
+\series medium 
+, it will be named something like sdcc
+\series default 
+.src
+\series medium 
+.t
+\series default 
+ar.
+\series medium 
+gz.
+\layout Enumerate
+
+
+\series medium 
+Bring up a command line terminal, such as xterm.
+\layout Enumerate
+
+
+\series medium 
+Unpack the file using a command like: 
+\family sans 
+\series bold 
+"tar -xzf sdcc.src.tar.gz
+\family default 
+\series default 
+"
+\series medium 
+, this will create a sub-directory called sdcc with all of the sources.
+\layout Enumerate
+
+Change directory into the main SDCC directory, for example type: 
+\family sans 
+\series bold 
+"cd sdcc
+\series default 
+".
+\layout Enumerate
+
+
+\series medium 
+Type 
+\family sans 
+\series bold 
+"./configure
+\family default 
+\series default 
+".
+ This configures the package for compilation on your system.
+\layout Enumerate
+
+
+\series medium 
+Type 
+\family sans 
+\series bold 
+"make
+\family default 
+\series default 
 "
 \series medium 
 .
@@ -576,12 +2367,40 @@ Type
 \series medium 
 .
 
-\series default 
- This copies the binary executables, the include files, the libraries and
- the documentation to the install directories.
-\layout Subsection
+\series default 
+ This copies the binary executables, the include files, the libraries and
+ the documentation to the install directories.
+\layout Subsubsection
+
+Building SDCC on OSX 2.x
+\layout Standard
+
+Follow the instruction for Linux.
+\newline 
+
+\newline 
+On OSX 2.x it was reported, that the default gcc (version 3.1 20020420 (prerelease
+)) fails to compile SDCC.
+ Fortunately there's also gcc 2.9.x installed, which works fine.
+ This compiler can be selected by running 'configure' with:
+\layout LyX-Code
+
+./configure CC=gcc2 CXX=g++2
+\layout Subsubsection
+
+Crosscompiling SDCC on Linux for Windows
+\layout Standard
+
+With the Mingw32 gcc crosscompiler it's easy to compile SDCC for Win32.
+ See section 'Configure Options'.
+\layout Subsubsection
+
+Building SDCC on Windows 
+\layout Standard
 
-Windows 
+With the exception of Cygwin the SDCC binaries uCsim and sdcdb can't be
+ built on Windows.
+ They use Unix-sockets, which are not available on Win32.
 \layout Subsubsection
 
 Windows Install Using a Binary Package
@@ -590,30 +2409,17 @@ Windows Install Using a Binary Package
 Download the binary package and unpack it using your favorite unpacking
  tool (gunzip, WinZip, etc).
  This should unpack to a group of sub-directories.
- An example directory structure after unpacking the mingw package is: c:
-\backslash 
-usr
+ An example directory structure after unpacking the mingw32 package is:
+ c:
 \backslash 
-local
+sdcc
 \backslash 
 bin for the executables, c:
 \backslash 
-usr
-\backslash 
-local
-\backslash 
-share
-\backslash 
 sdcc
 \backslash 
 include and c:
 \backslash 
-usr
-\backslash 
-local
-\backslash 
-share
-\backslash 
 sdcc
 \backslash 
 lib for the include and libraries.
@@ -623,14 +2429,152 @@ Adjust your environment variable PATH to include the location of the bin
  directory or start sdcc using the full path.
 \layout Subsubsection
 
-Windows Install Using Cygwin and Mingw
+Building SDCC using Cygwin and Mingw32
 \layout Standard
 
-Follow the instruction in 
-\series bold 
-Linux and other gcc-based systems
-\series default 
+For building and installing a Cygwin executable follow the instructions
+ for Linux.
+\newline 
+
+\newline 
+On Cygwin a 
+\begin_inset Quotes sld
+\end_inset 
+
+native
+\begin_inset Quotes srd
+\end_inset 
+
+ Win32-binary can be built, which will not need the Cygwin-DLL.
+ For the necessary 'configure' options see section 'configure options' or
+ the script 'sdcc/support/scripts/sdcc_cygwinmingw32'.
+\newline 
+
+\newline 
+In order to install Cygwin on Windows download setup.exe from 
+\begin_inset LatexCommand \url[www.cygwin.com]{http://www.cygwin.com/}
+
+\end_inset 
+
 .
+ Run it, set the 
+\begin_inset Quotes sld
+\end_inset 
+
+default text file type
+\begin_inset Quotes srd
+\end_inset 
+
+ to 
+\begin_inset Quotes sld
+\end_inset 
+
+unix
+\begin_inset Quotes srd
+\end_inset 
+
+ and download/install at least the following packages.
+ Some packages are selected by default, others will be automatically selected
+ because of dependencies with the manually selected packages.
+ Never deselect these packages!
+\layout Itemize
+
+flex
+\layout Itemize
+
+bison
+\layout Itemize
+
+gcc ; version 3.x is fine, no need to use the old 2.9x
+\layout Itemize
+
+binutils ; selected with gcc
+\layout Itemize
+
+make
+\layout Itemize
+
+rxvt ; a nice console, which makes life much easier under windoze (see below)
+\layout Itemize
+
+man ; not really needed for building SDCC, but you'll miss it sooner or
+ later
+\layout Itemize
+
+less ; not really needed for building SDCC, but you'll miss it sooner or
+ later
+\layout Itemize
+
+cvs ; only if you use CVS access
+\layout Standard
+
+If you want to develop something you'll need:
+\layout Itemize
+
+python ; for the regression tests
+\layout Itemize
+
+gdb ; the gnu debugger, together with the nice GUI 
+\begin_inset Quotes sld
+\end_inset 
+
+insight
+\begin_inset Quotes srd
+\end_inset 
+
+
+\layout Itemize
+
+openssh ; to access the CF or commit changes
+\layout Itemize
+
+autoconf and autoconf-devel ; if you want to fight with 'configure', don't
+ use autoconf-stable!
+\layout Standard
+
+rxvt is a nice console with history.
+ Replace in your cygwin.bat the line
+\layout LyX-Code
+
+bash --login -i 
+\layout Standard
+
+with (one line):
+\layout LyX-Code
+
+rxvt -sl 1000 -fn "Lucida Console-12" -sr -cr red
+\layout LyX-Code
+
+     -bg black -fg white -geometry 100x65 -e bash --login
+\layout Standard
+
+Text selected with the mouse is automatically copied to the clipboard, pasting
+ works with shift-insert.
+\newline 
+
+\newline 
+The other good tip is to make sure you have no //c/-style paths anywhere,
+ use /cygdrive/c/ instead.
+ Using // invokes a network lookup which is very slow.
+ If you think 
+\begin_inset Quotes sld
+\end_inset 
+
+cygdrive
+\begin_inset Quotes srd
+\end_inset 
+
+ is too long, you can change it with e.g.
+\layout LyX-Code
+
+mount -s -u -c /mnt
+\layout Standard
+
+SDCC sources use the unix line ending LF.
+ Life is much easier, if you store the source tree on a drive, which is
+ mount in binary mode.
+ And use an editor which can handle LF-only line endings.
+ Make sure not to commit files with windows line endings.
 \layout Subsubsection
 
 Windows Install Using Microsoft Visual C++ 6.0/NET
@@ -806,12 +2750,56 @@ bin_vc to sdcc
 bin, and you can compile using sdcc.
 \layout Subsubsection
 
-Windows Install Using Borland ......
-\layout Standard
+Windows Install Using Borland
+\layout Enumerate
+
+From the sdcc directory, run the command "make -f Makefile.bcc".
+ This should regenerate all the .exe files in the bin directory except for
+ sdcdb.exe (which currently doesn't build under Borland C++).
+\layout Enumerate
 
+If you modify any source files and need to rebuild, be aware that the dependanci
+es may not be correctly calculated.
+ The safest option is to delete all .obj files and run the build again.
+ From a Cygwin BASH prompt, this can easily be done with the commmand:
+\newline 
 
-\shape italic 
-<pending>
+\newline 
+
+\family sans 
+\series bold 
+find .
+\backslash 
+( -name '*.obj' -o -name '*.lib' -o -name '*.rul' 
+\backslash 
+) -print -exec rm {} 
+\backslash 
+;
+\family default 
+\series default 
+
+\newline 
+
+\newline 
+or on Windows NT/2000/XP from the command prompt with the commmand:
+\newline 
+
+\family sans 
+\series bold 
+
+\newline 
+del /s *.obj *.lib *.rul
+\family default 
+\series default 
+ from the sdcc directory.
+\layout Subsection
+
+Building the Documentation
+\layout Standard
+
+...
+ coming soon
 \layout Subsection
 
 Testing out the SDCC Compiler
@@ -822,7 +2810,7 @@ The first thing you should do after installing your SDCC compiler is to
  Type 
 \family sans 
 \series bold 
-"sdcc --version"
+"sdcc ---version"
 \family default 
 \series default 
  at the prompt, and the program should run and tell you the version.
@@ -838,92 +2826,14 @@ The first thing you should do after installing your SDCC compiler is to
 \newline 
 
 \series medium 
-SDCC binaries are commonly installed in a directory arrangement like this:
-\series default 
-
-\newline 
-
-\newline 
-
-\begin_inset  Tabular
-<lyxtabular version="3" rows="3" columns="2">
-<features>
-<column alignment="left" valignment="top" leftline="true" width="0(null)">
-<column alignment="left" valignment="top" leftline="true" rightline="true" width="0(null)">
-<row topline="true" bottomline="true">
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
-
-\layout Standard
-
-/
-\series medium 
-usr/local/bin
-\end_inset 
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\layout Standard
-
-
-\series medium 
-Holds executables(sdcc, s51, aslink, 
-\series default 
-...
-\series medium 
-)
-\end_inset 
-</cell>
-</row>
-<row topline="true">
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
-
-\layout Standard
-
-/
-\series medium 
-usr/local/share/sdcc/lib 
-\end_inset 
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\layout Standard
-
-
-\series medium 
-Holds common C 
+SDCC 
 \series default 
-libraries
-\end_inset 
-</cell>
-</row>
-<row topline="true" bottomline="true">
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
-
-\layout Standard
-
-/
-\series medium 
-usr/local/share/sdcc/include
-\end_inset 
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
-\begin_inset Text
-
-\layout Standard
-
-
-\series medium 
-Holds common C header files
+is commonly installed as described in section 
+\begin_inset Quotes sld
 \end_inset 
-</cell>
-</row>
-</lyxtabular>
 
+Install and search paths
+\begin_inset Quotes srd
 \end_inset 
 
 
@@ -933,7 +2843,11 @@ Holds common C header files
 
 \series medium 
 Make sure the compiler works on a very simple example.
- Type in the following test.c program using your favorite editor:
+ Type in the following test.c program using your favorite 
+\series default 
+ascii 
+\series medium 
+editor:
 \series default 
 
 \newline 
@@ -1076,14 +2990,16 @@ SDCC does not build correctly.
 
 A thing to try is starting from scratch by unpacking the .tgz source package
  again in an empty directory.
- Confure it like:
+ Configure it like:
 \newline 
 
 \newline 
 
-\family typewriter 
+\family sans 
+\series bold 
 ./configure 2>&1 | tee configure.log
 \family default 
+\series default 
 
 \newline 
 
@@ -1093,9 +3009,11 @@ and build it like:
 
 \newline 
 
-\family typewriter 
+\family sans 
+\series bold 
 make 2>&1 | tee make.log
 \family default 
+\series default 
 
 \newline 
 
@@ -1156,67 +3074,19 @@ make install
  command does.
 \layout Standard
 
-This will install the compiler, other executables and libraries in to the
- appropriate system directories.
- The default is to copy the executables to /usr/local/bin and the libraries
- and header files to /usr/local/share/sdcc/lib and /usr/local/share/sdcc/include.
- On most systems you will need super-user privilages to do this.
-\layout Subsection
-
-Advanced Install Options
-\layout Standard
-
-The 
-\begin_inset Quotes eld
-\end_inset 
-
-configure
-\begin_inset Quotes erd
-\end_inset 
-
- command has several options.
- The most commonly used option is --prefix=<directory name>, where <directory
- name> is the final location for the sdcc executables and libraries, (default
- location is /usr/local).
- The installation process will create the following directory structure
- under the <directory name> specified (if they do not already exist).
-\newline 
-
-\newline 
-bin/ - binary exectables (add to PATH environment variable)
-\newline 
-bin/share/
-\newline 
-bin/share/sdcc/include/ - include header files
-\newline 
-bin/share/sdcc/lib/
-\newline 
-bin/share/sdcc/lib/small/ - Object & library files for small model library
-\newline 
-bin/share/sdcc/lib/large/ - Object & library files for large model library
-\newline 
-bin/share/sdcc/lib/ds390/ - Object & library files for DS80C390 library
-\newline 
-bin/share/sdcc/lib/z80/ - Object & library files for Z80 library
-\newline 
-
-\newline 
-The command 
-\family sans 
-\series bold 
-
+This will install the compiler, other executables libraries and include
+ files in to the appropriate directories.
+ See section 
 \begin_inset Quotes sld
 \end_inset 
 
-./configure --prefix=/usr/local
-\begin_inset Quotes erd
+Install and Search PATHS
+\begin_inset Quotes srd
 \end_inset 
 
-\family default 
-\series default 
-will configure the compiler to be installed in directory /usr/local.
+.
+\newline 
+On most systems you will need super-user privilages to do this.
 \layout Subsection
 
 Components of SDCC
@@ -1233,7 +3103,7 @@ SDCC is not just a compiler, but a collection of tools by various developers.
 
 \newline 
 You might want to look at the files which are installed in <installdir>.
- At the time of this writing, we find the following programs:
+ At the time of this writing, we find the following programs for gcc-builds:
 \newline 
  
 \newline 
@@ -1284,8 +3154,8 @@ the include files
 In <installdir>/share/sdcc/lib
 \layout Itemize
 
-the sources of the runtime library and the subdirs small large and ds390
with the precompiled relocatables.
+the subdirs src and small, large, z80, gbz80 and ds390 with the precompiled
+ relocatables.
 \layout Standard
 
 In <installdir>/share/sdcc/doc
@@ -1349,7 +3219,7 @@ sdcdb - Source Level Debugger
 
 \family typewriter 
 \shape italic 
-<todo: is this thing alive?>
+<todo: is this thing still alive?>
 \newline 
 
 \newline 
@@ -1397,11 +3267,20 @@ sourcefile.rel - Object file created by the assembler, input to Linkage editor
 sourcefile.map - The memory map for the load module, created by the Linker
 \newline 
 sourcefile.ihx - The load module in Intel hex format (you can select the
- Motorola S19 format with --out-fmt-s19)
+ Motorola S19 format with ---out-fmt-s19)
 \newline 
-sourcefile.cdb - An optional file (with --debug) containing debug information
+sourcefile.cdb - An optional file (with ---debug) containing debug information
 \newline 
+sourcefile.dump* - Dump file to debug the compiler it self (with ---dumpall)
+ (see section 
+\begin_inset Quotes sld
+\end_inset 
 
+Anatomy of the compiler
+\begin_inset Quotes srd
+\end_inset 
+
+).
 \layout Subsubsection
 
 Projects with Multiple Source Files
@@ -1792,19 +3671,9 @@ Linker Options
 \labelwidthstring 00.00.0000
 
 
-\series bold 
--o\SpecialChar ~
-<path/file> 
-\series default 
-the output path resp.
- file where everything will be placed
-\layout List
-\labelwidthstring 00.00.0000
-
-
 \series bold 
 -L\SpecialChar ~
---lib-path
+---lib-path
 \bar under 
  
 \series default 
@@ -1819,35 +3688,35 @@ the output path resp.
 
 
 \series bold 
---xram-loc
+---xram-loc
 \series default 
 <Value> The start location of the external ram, default value is 0.
- The value entered can be in Hexadecimal or Decimal format, e.g.: --xram-loc
- 0x8000 or --xram-loc 32768.
+ The value entered can be in Hexadecimal or Decimal format, e.g.: ---xram-loc
+ 0x8000 or ---xram-loc 32768.
 \layout List
 \labelwidthstring 00.00.0000
 
 
 \series bold 
---code-loc
+---code-loc
 \series default 
 <Value> The start location of the code segment, default value 0.
  Note when this option is used the interrupt vector table is also relocated
  to the given address.
- The value entered can be in Hexadecimal or Decimal format, e.g.: --code-loc
- 0x8000 or --code-loc 32768.
+ The value entered can be in Hexadecimal or Decimal format, e.g.: ---code-loc
+ 0x8000 or ---code-loc 32768.
 \layout List
 \labelwidthstring 00.00.0000
 
 
 \series bold 
---stack-loc
+---stack-loc
 \series default 
 <Value> By default the stack is placed after the data segment.
  Using this option the stack can be placed anywhere in the internal memory
  space of the 8051.
  The value entered can be in Hexadecimal or Decimal format, e.g.
- --stack-loc 0x20 or --stack-loc 32.
+ ---stack-loc 0x20 or ---stack-loc 32.
  Since the sp register is incremented before a push or call, the initial
  sp will be set to one byte prior the provided value.
  The provided value should not overlap any other memory areas such as used
@@ -1858,33 +3727,33 @@ the output path resp.
 
 
 \series bold 
---data-loc
+---data-loc
 \series default 
 <Value> The start location of the internal ram data segment.
  The value entered can be in Hexadecimal or Decimal format, eg.
- --data-loc 0x20 or --data-loc 32.
+ ---data-loc 0x20 or ---data-loc 32.
  (By default, the start location of the internal ram data segment  is set
  as low as possible in memory, taking into account the used register banks
  and the bit segment at address 0x20.
  For example if register banks 0 and 1 are used without bit variables, the
- data segment will be set, if --data-loc is not used, to location 0x10.)
+ data segment will be set, if ---data-loc is not used, to location 0x10.)
 \layout List
 \labelwidthstring 00.00.0000
 
 
 \series bold 
---idata-loc
+---idata-loc
 \series default 
 <Value> The start location of the indirectly addressable internal ram, default
  value is 0x80.
  The value entered can be in Hexadecimal or Decimal format, eg.
- --idata-loc 0x88 or --idata-loc 136.
+ ---idata-loc 0x88 or ---idata-loc 136.
 \layout List
 \labelwidthstring 00.00.0000
 
 
 \series bold 
---out-fmt-ihx
+---out-fmt-ihx
 \bar under 
  
 \series default 
@@ -1896,7 +3765,7 @@ The linker output (final object code) is in Intel Hex format.
 
 
 \series bold 
---out-fmt-s19
+---out-fmt-s19
 \bar under 
  
 \series default 
@@ -1910,7 +3779,7 @@ MCS51 Options
 
 
 \series bold 
---model-large
+---model-large
 \series default 
  Generate code for Large model programs see section Memory Models for more
  details.
@@ -1923,7 +3792,7 @@ MCS51 Options
 
 
 \series bold 
---model-small
+---model-small
 \series default 
 \size large 
 \emph on 
@@ -1941,7 +3810,7 @@ DS390 Options
 
 
 \series bold 
---model-flat24
+---model-flat24
 \series default 
 \size large 
 \emph on 
@@ -1961,7 +3830,7 @@ Generate 24-bit flat mode code.
 
 
 \series bold 
---stack-10bit
+---stack-10bit
 \series default 
  Generate code for the 10 bit stack mode of the Dallas DS80C390 part.
  This is the one and only that the ds390 code generator supports right now
@@ -1984,18 +3853,18 @@ Generate 24-bit flat mode code.
  any re-entrant functions compiled with this option.
  In principle, this should work with the 
 \emph on 
---stack-auto
+---stack-auto
 \emph default 
  option, but that has not been tested.
  It is incompatible with the 
 \emph on 
---xstack
+---xstack
 \emph default 
  option.
  It also only makes sense if the processor is in 24 bit contiguous addressing
  mode (see the 
 \emph on 
---model-flat24 option
+---model-flat24 option
 \emph default 
 ).
 \layout Subsubsection
@@ -2006,7 +3875,7 @@ Optimization Options
 
 
 \series bold 
---nogcse
+---nogcse
 \series default 
  Will not do global subexpression elimination, this option may be used when
  the compiler creates undesirably large stack/data spaces to store compiler
@@ -2021,7 +3890,7 @@ NOGCSE can be used
 
 
 \series bold 
---noinvariant
+---noinvariant
 \series default 
  Will not do loop invariant optimizations, this may be turned off for reasons
  explained for the previous option.
@@ -2034,7 +3903,7 @@ NOINVARIANT can be used
 
 
 \series bold 
---noinduction
+---noinduction
 \series default 
  Will not do loop induction optimizations, see section strength reduction
  for more details.It is recommended that this option is NOT used, #pragma\SpecialChar ~
@@ -2046,7 +3915,7 @@ ION can be used to turn off induction optimizations for a given function
 
 
 \series bold 
---nojtbound
+---nojtbound
 \size large 
 \bar under 
  
@@ -2065,7 +3934,7 @@ NOJTBOUND can be
 
 
 \series bold 
---noloopreverse
+---noloopreverse
 \series default 
 \size large 
  
@@ -2074,12 +3943,20 @@ Will not do loop reversal optimization.
 \layout List
 \labelwidthstring 00.00.0000
 
+---
+\series bold 
+nolabelopt
+\series default 
+ Will not optimize labels (makes the dumpfiles more readable).
+\layout List
+\labelwidthstring 00.00.0000
+
 
 \series bold 
---no-xinit-opt
+---no-xinit-opt
 \series default 
- This will disable the memcpy of initialized data in far space from code
- space
+ Will not memcpy initialized data in far space from code space.
+ This saves a few bytes in code space if you don't have initialized data.
 \layout Subsubsection
 
 Other Options
@@ -2089,13 +3966,22 @@ Other Options
 
 \series bold 
 -c\SpecialChar ~
---compile-only
+---compile-only
 \series default 
  will compile and assemble the source, but will not call the linkage editor.
 \layout List
 \labelwidthstring 00.00.0000
 
 
+\series bold 
+--c1mode
+\series default 
+ reads the preprocessed source from standard input and compiles it.
+ The file name for the assembler output must be specified using the -o option.
+\layout List
+\labelwidthstring 00.00.0000
+
+
 \series bold 
 -E
 \series default 
@@ -2107,7 +3993,20 @@ Other Options
 
 
 \series bold 
---stack-auto
+-o\SpecialChar ~
+<path/file> 
+\series default 
+The output path resp.
+ file where everything will be placed.
+ If the parameter is a path, it must have a trailing slash (or backslash
+ for the Windows binaries) to be recognized as a path.
+\layout List
+\labelwidthstring 00.00.0000
+
+
+\series bold 
+---stack-auto
 \series default 
 \size large 
 \emph on 
@@ -2129,7 +4028,7 @@ reentrant
 
 
 \series bold 
---xstack
+---xstack
 \series default 
  Uses a pseudo stack in the first 256 bytes in the external ram for allocating
  variables and passing parameters.
@@ -2139,7 +4038,7 @@ reentrant
 
 
 \series bold 
---callee-saves function1[,function2][,function3]....
+---callee-saves function1[,function2][,function3]....
 
 \series default 
  The compiler by default uses a caller saves convention for register saving
@@ -2157,7 +4056,7 @@ reentrant
  option is used for a library function the appropriate library function
  needs to be recompiled with the same option.
  If the project consists of multiple source files then all the source file
- should be compiled with the same --callee-saves option string.
+ should be compiled with the same ---callee-saves option string.
  Also see #pragma\SpecialChar ~
 CALLEE-SAVES.
 \layout List
@@ -2165,7 +4064,7 @@ CALLEE-SAVES.
 
 
 \series bold 
---debug
+---debug
 \bar under 
  
 \series default 
@@ -2179,7 +4078,7 @@ When this option is used the compiler will generate debug information, that
 
 
 \series bold 
---peep-file
+---peep-file
 \series default 
 <filename> This option can be used to use additional rules to be used by
  the peep hole optimizer.
@@ -2221,7 +4120,7 @@ Stop after the stage of compilation proper; do not assemble.
 
 
 \series bold 
---int-long-reent
+---int-long-reent
 \series default 
 \size large 
  
@@ -2234,7 +4133,7 @@ Stop after the stage of compilation proper; do not assemble.
 
 
 \series bold 
---cyclomatic
+---cyclomatic
 \bar under 
  
 \series default 
@@ -2257,7 +4156,7 @@ cyclomatic complexity
 
 
 \series bold 
---float-reent
+---float-reent
 \bar under 
  
 \series default 
@@ -2269,7 +4168,7 @@ cyclomatic complexity
 
 
 \series bold 
---nooverlay
+---nooverlay
 \series default 
   The compiler will not overlay parameters and local variables of any function,
  see section Parameters and local variables for more details.
@@ -2278,7 +4177,7 @@ cyclomatic complexity
 
 
 \series bold 
---main-return
+---main-return
 \series default 
  This option can be used when the code generated is called by a monitor
  program.
@@ -2290,7 +4189,7 @@ cyclomatic complexity
 
 
 \series bold 
---no-peep
+---no-peep
 \series default 
   Disable peep-hole optimization.
 \layout List
@@ -2298,7 +4197,7 @@ cyclomatic complexity
 
 
 \series bold 
---peep-asm
+---peep-asm
 \series default 
   Pass the inline assembler code through the peep hole optimizer.
  This can cause unexpected changes to inline assembler code, please go through
@@ -2309,7 +4208,7 @@ cyclomatic complexity
 
 
 \series bold 
---iram-size
+---iram-size
 \series default 
 <Value> Causes the linker to check if the internal ram usage is within limits
  of the given value.
@@ -2318,7 +4217,7 @@ cyclomatic complexity
 
 
 \series bold 
---xram-size
+---xram-size
 \series default 
 <Value> Causes the linker to check if the external ram usage is within limits
  of the given value.
@@ -2327,7 +4226,7 @@ cyclomatic complexity
 
 
 \series bold 
---code-size
+---code-size
 \series default 
 <Value> Causes the linker to check if the code usage is within limits of
  the given value.
@@ -2336,7 +4235,7 @@ cyclomatic complexity
 
 
 \series bold 
---nostdincl
+---nostdincl
 \series default 
  This will prevent the compiler from passing on the default include path
  to the preprocessor.
@@ -2345,7 +4244,7 @@ cyclomatic complexity
 
 
 \series bold 
---nostdlib
+---nostdlib
 \series default 
  This will prevent the compiler from passing on the default library path
  to the linker.
@@ -2354,7 +4253,7 @@ cyclomatic complexity
 
 
 \series bold 
---verbose
+---verbose
 \series default 
  Shows the various actions the compiler is performing.
 \layout List
@@ -2365,6 +4264,41 @@ cyclomatic complexity
 -V
 \series default 
  Shows the actual commands the compiler is executing.
+\layout List
+\labelwidthstring 00.00.0000
+
+
+\series bold 
+---no-c-code-in-asm
+\series default 
+ Hides your ugly and inefficient c-code from the asm file, so you can always
+ blame the compiler :).
+\layout List
+\labelwidthstring 00.00.0000
+
+
+\series bold 
+---i-code-in-asm
+\series default 
+ Include i-codes in the asm file.
+ Sounds like noise but is most helpfull for debugging the compiler itself.
+\layout List
+\labelwidthstring 00.00.0000
+
+
+\series bold 
+---less-pedantic
+\series default 
+ Disable some of the more pedantic warnings (jwk burps: please be more specific
+ here, please!)
+\layout List
+\labelwidthstring 00.00.0000
+
+
+\series bold 
+---print-search-dirs
+\series default 
+ Display the directories in the compiler's search path
 \layout Subsubsection
 
 Intermediate Dump Options
@@ -2381,7 +4315,7 @@ The following options are provided for the purpose of retargetting and debugging
 
 
 \series bold 
---dumpraw
+---dumpraw
 \series default 
  This option will cause the compiler to dump the intermediate code into
  a file of named 
@@ -2397,7 +4331,7 @@ The following options are provided for the purpose of retargetting and debugging
 
 
 \series bold 
---dumpgcse
+---dumpgcse
 \series default 
  Will create a dump of iCode's, after global subexpression elimination,
  into a file named 
@@ -2408,7 +4342,7 @@ The following options are provided for the purpose of retargetting and debugging
 
 
 \series bold 
---dumpdeadcode
+---dumpdeadcode
 \series default 
  Will create a dump of iCode's, after deadcode elimination, into a file
  named 
@@ -2419,7 +4353,7 @@ The following options are provided for the purpose of retargetting and debugging
 
 
 \series bold 
---dumploop
+---dumploop
 \series default 
 \size large 
  
@@ -2433,7 +4367,7 @@ Will create a dump of iCode's, after loop optimizations, into a file named
 
 
 \series bold 
---dumprange
+---dumprange
 \series default 
 \size large 
  
@@ -2447,7 +4381,7 @@ Will create a dump of iCode's, after live range analysis, into a file named
 
 
 \series bold 
---dumlrange
+---dumlrange
 \series default 
  Will dump the life ranges for all symbols.
 \layout List
@@ -2455,7 +4389,7 @@ Will create a dump of iCode's, after live range analysis, into a file named
 
 
 \series bold 
---dumpregassign
+---dumpregassign
 \bar under 
  
 \series default 
@@ -2469,7 +4403,7 @@ Will create a dump of iCode's, after register assignment, into a file named
 
 
 \series bold 
---dumplrange
+---dumplrange
 \series default 
  Will create a dump of the live ranges of iTemp's
 \layout List
@@ -2477,7 +4411,7 @@ Will create a dump of iCode's, after register assignment, into a file named
 
 
 \series bold 
---dumpall
+---dumpall
 \size large 
 \bar under 
  
@@ -2487,6 +4421,90 @@ Will create a dump of iCode's, after register assignment, into a file named
 Will cause all the above mentioned dumps to be created.
 \layout Subsection
 
+Environment variables
+\layout Standard
+
+SDCC recognizes the following environment variables:
+\layout List
+\labelwidthstring 00.00.0000
+
+
+\series bold 
+SDCC_LEAVE_SIGNALS
+\series default 
+ SDCC installs a signal handler to be able to delete temporary files after
+ an user break (^C) or an exception.
+ If this environment variable is set, SDCC won't install the signal handler
+ in order to be able to debug SDCC.
+\layout List
+\labelwidthstring 00.00.0000
+
+
+\series bold 
+TMP,\SpecialChar ~
+TEMP,\SpecialChar ~
+TMPDIR
+\series default 
+ Path, where temporary files will be created.
+ The order of the variables is the search order.
+ In a standard *nix environment these variables are not set, and there's
+ no need to set them.
+ On Windows it's recommended to set one of them.
+\layout List
+\labelwidthstring 00.00.0000
+
+
+\series bold 
+SDCC_HOME
+\series default 
+ Path, see 
+\begin_inset Quotes sld
+\end_inset 
+
+2.3 Install and search paths
+\begin_inset Quotes srd
+\end_inset 
+
+.
+\layout List
+\labelwidthstring 00.00.0000
+
+
+\series bold 
+SDCC_INCLUDE
+\series default 
+ Path, see 
+\begin_inset Quotes sld
+\end_inset 
+
+2.3 Install and search paths
+\begin_inset Quotes srd
+\end_inset 
+
+.
+\layout List
+\labelwidthstring 00.00.0000
+
+
+\series bold 
+SDCC_LIB
+\series default 
+ Path, see 
+\begin_inset Quotes sld
+\end_inset 
+
+2.3 Install and search paths
+\begin_inset Quotes srd
+\end_inset 
+
+.
+\layout Standard
+
+There are some more environment variables recognized by SDCC, but these
+ are solely used for debugging purposes.
+ They can change or disappear very quickly, and will never be documentated.
+\layout Subsection
+
 MCS51/DS390 Storage Class Language Extensions
 \layout Standard
 
@@ -2676,7 +4694,7 @@ static
 \newline 
 They can be placed on the stack either by using the
 \emph on 
- --stack-auto
+ ---stack-auto
 \emph default 
  option or by using the 
 \emph on 
@@ -2710,7 +4728,7 @@ reentrant
 \emph default 
 keyword or the
 \emph on 
- --stack-auto
+ ---stack-auto
 \emph default 
  option should be used sparingly.
  Note that the reentrant keyword just means that the parameters & local
@@ -2777,7 +4795,7 @@ bvar
  in internal ram.
  When compiled with 
 \emph on 
---stack-auto
+---stack-auto
 \emph default 
  or when a function is declared as 
 \emph on 
@@ -2941,11 +4959,11 @@ ation & modulus operations are implemented using external support routines
  these operations then the support routines (as mentioned in a following
  section) will have to be recompiled using the
 \emph on 
- --stack-auto
+ ---stack-auto
 \emph default 
  option and the source file will need to be compiled using the 
 \emph on 
---int-long-ren
+---int-long-ren
 \emph default 
 t compiler option.
 \layout Standard
@@ -2971,9 +4989,9 @@ Interrupt Numbers and the corresponding address & descriptions for the Standard
 \begin_inset  Tabular
 <lyxtabular version="3" rows="6" columns="3">
 <features>
-<column alignment="center" valignment="top" leftline="true" width="0(null)">
-<column alignment="center" valignment="top" leftline="true" width="0(null)">
-<column alignment="center" valignment="top" leftline="true" rightline="true" width="0(null)">
+<column alignment="center" valignment="top" leftline="true" width="0in">
+<column alignment="center" valignment="top" leftline="true" width="0in">
+<column alignment="center" valignment="top" leftline="true" rightline="true" width="0in">
 <row topline="true" bottomline="true">
 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
 \begin_inset Text
@@ -3635,7 +5653,7 @@ Startup Code
 
 The compiler inserts a call to the C routine 
 \emph on 
-_sdcc__external__startup()
+_sdcc_external_startup()
 \series bold 
 \emph default 
  
@@ -3648,7 +5666,7 @@ at the start of the CODE area.
  before the function main is invoked.
  You could add a 
 \emph on 
-_sdcc__external__startup()
+_sdcc_external_startup()
 \emph default 
  routine to your program to override the default if you need to setup hardware
  or perform some other critical operation prior to static & global variable
@@ -3681,7 +5699,7 @@ per function
  be placed in a separate line (as the example shows).
  When the 
 \emph on 
---peep-asm
+---peep-asm
 \emph default 
  command line option is used, the inline assembler code will be passed through
  the peephole optimizer.
@@ -3834,7 +5852,7 @@ The same goes the other way, ie.
  labels defines in inline assembly CANNOT be accessed by C statements.
 \layout Subsection
 
-int(16 bit) and long (32 bit) Support
+int (16 bit) and long (32 bit) Support
 \layout Standard
 
 For signed & unsigned int (16 bit) and long (32 bit) variables, division,
@@ -3892,11 +5910,11 @@ non-reentrant
  If this is unavoidable then the above routines will need to be compiled
  with the 
 \emph on 
---stack-auto
+---stack-auto
 \emph default 
  option, after which the source program will have to be compiled with 
 \emph on 
---int-long-rent
+---int-long-rent
 \emph default 
  option.
 \layout Subsection
@@ -4037,7 +6055,7 @@ tinibios
 \newline 
 Like the 
 \emph on 
---model-large
+---model-large
 \emph default 
  option, variables will by default be placed into the XDATA segment.
  
@@ -4045,7 +6063,7 @@ Like the
 
 \newline 
 Segments may be placed anywhere in the 4 meg address space using the usual
- --*-loc options.
+ ---*-loc options.
  Note that if any segments are located above 64K, the -r flag must be passed
  to the linker to generate the proper segment relocations, and the Intel
  HEX output format must be used.
@@ -4076,28 +6094,28 @@ __mcs51 or __ds390 or __z80, etc - depending on the model used (e.g.
 
 SDCC_STACK_AUTO - this symbol is defined when 
 \emph on 
---stack-auto
+---stack-auto
 \emph default 
  option is used.
 \layout Itemize
 
 SDCC_MODEL_SMALL - when 
 \emph on 
---model-small
+---model-small
 \emph default 
  is used.
 \layout Itemize
 
 SDCC_MODEL_LARGE - when 
 \emph on 
---model-large
+---model-large
 \emph default 
  is used.
 \layout Itemize
 
 SDCC_USE_XSTACK - when 
 \emph on 
---xstack
+---xstack
 \emph default 
  option is used.
 \layout Itemize
@@ -4335,7 +6353,7 @@ on causes an increase in register pressure, which may cause unwanted spilling
  The compiler will generate a warning message when it is forced to allocate
  extra space either on the stack or data space.
  If this extra space allocation is undesirable then induction optimization
- can be eliminated either for the entire source file (with --noinduction
+ can be eliminated either for the entire source file (with ---noinduction
  option) or for a given function only using #pragma\SpecialChar ~
 NOINDUCTION.
 \newline 
@@ -5157,7 +7175,7 @@ copt
  A default set of rules are compiled into the compiler, additional rules
  may be added with the 
 \emph on 
---peep-file <filename>
+---peep-file <filename>
 \emph default 
  option.
  The rule language is best illustrated with examples.
@@ -5247,7 +7265,7 @@ will remain unmodified.
 \newline 
 Other special case optimizations may be added by the user (via 
 \emph on 
---peep-file option
+---peep-file option
 \emph default 
 ).
  E.g.
@@ -5544,22 +7562,24 @@ g the variable bindings is passed as a parameter).
  have some better means.
  If you are looking at this file, you will also see the default rules that
  are compiled into the compiler, you can add your own rules in the default
- set there if you get tired of specifying the --peep-file option.
+ set there if you get tired of specifying the ---peep-file option.
 \layout Subsection
 
 Pragmas
 \layout Standard
 
 SDCC supports the following #pragma directives.
- This directives are applicable only at a function level.
 \layout Itemize
 
-SAVE - this will save all the current options.
+SAVE - this will save all current options to the SAVE/RESTORE stack.
+ See RESTORE.
 \layout Itemize
 
-RESTORE - will restore the saved options from the last save.
- Note that SAVES & RESTOREs cannot be nested.
- SDCC uses the same buffer to save the options each time a SAVE is called.
+RESTORE - will restore saved options from the last save.
+ SAVEs & RESTOREs can be nested.
+ SDCC uses a SAVE/RESTORE stack: SAVE pushes current options to the stack,
+ RESTORE pulls current options from the stack.
+ See SAVE.
 \layout Itemize
 
 NOGCSE - will stop global subexpression elimination.
@@ -5576,6 +7596,10 @@ NOOVERLAY - the compiler will not overlay the parameters and local variables
  of a function.
 \layout Itemize
 
+LESS_PEDANTIC - the compiler will not warn you anymore for obvious mistakes,
+ you'r on your own now ;-(
+\layout Itemize
+
 NOLOOPREVERSE - Will not do loop reversal optimization
 \layout Itemize
 
@@ -5588,22 +7612,30 @@ EXCLUDE\SpecialChar ~
 none.
 \layout Itemize
 
+NOIV - Do not generate interrupt vector table entries for all ISR functions
+ defined after the pragma.
+ This is useful in cases where the interrupt vector table must be defined
+ manually, or when there is a secondary, manually defined interrupt vector
+ table (e.g.
+ for the autovector feature of the Cypress EZ-USB FX2).
+\layout Itemize
+
 CALLEE-SAVES function1[,function2[,function3...]] - The compiler by default
  uses a caller saves convention for register saving across function calls,
  however this can cause unneccessary register pushing & popping when calling
  small functions from larger functions.
- This option can be used to switch the register saving convention for the
- function names specified.
+ This option can be used to switch off the register saving convention for
the function names specified.
  The compiler will not save registers when calling these functions, extra
- code will be generated at the entry & exit for these functions to save
- & restore the registers used by these functions, this can SUBSTANTIALLY
+ code need to be manually inserted at the entry & exit for these functions
to save & restore the registers used by these functions, this can SUBSTANTIALLY
  reduce code & improve run time performance of the generated code.
- In future the compiler (with interprocedural analysis) will be able to
- determine the appropriate scheme to use for each function call.
- If --callee-saves command line option is used, the function names specified
+ In the future the compiler (with interprocedural analysis) may be able
to determine the appropriate scheme to use for each function call.
+ If ---callee-saves command line option is used, the function names specified
  in #pragma\SpecialChar ~
-CALLEE-SAVES is appended to the list of functions specified inthe
- command line.
+CALLEE-SAVES is appended to the list of functions specified in
the command line.
 \layout Standard
 
 The pragma's are intended to be used to turn-off certain optimizations which
@@ -5688,7 +7720,7 @@ and
 \emph default 
  to pass the first parameter to a routine.
  The second parameter onwards is either allocated on the stack (for reentrant
- routines or if --stack-auto is used) or in the internal / external ram
+ routines or if ---stack-auto is used) or in the internal / external ram
  (depending on the memory model).
  
 \layout Subsubsection
@@ -6080,10 +8112,10 @@ External Stack
 
 The external stack is located at the start of the external ram segment,
  and is 256 bytes in size.
- When --xstack option is used to compile the program, the parameters and
+ When ---xstack option is used to compile the program, the parameters and
  local variables of all reentrant functions are allocated in this area.
  This option is provided for programs with large stack space requirements.
- When used with the --stack-auto option, all parameters and local variables
+ When used with the ---stack-auto option, all parameters and local variables
  are allocated on the external stack (note support libraries will need to
  be recompiled with the same options).
 \layout Standard
@@ -6263,7 +8295,7 @@ Here are a few guidelines that will help the compiler generate more efficient
 
 Use the smallest data type to represent your data-value.
  If it is known in advance that the value is going to be less than 256 then
- use a 'char' instead of a 'short' or 'int'.
+ use an 'unsigned char' instead of a 'short' or 'int'.
 \layout Itemize
 
 Use unsigned when it is known in advance that the value is not going to
@@ -6278,8 +8310,8 @@ Declare the variables to be local whenever possible, especially loop control
  variables (induction).
 \layout Itemize
 
-Since the compiler does not do implicit integral promotion, the programmer
- should do an explicit cast when integral promotion is required.
+Since the compiler does not always do implicit integral promotion, the programme
+r should do an explicit cast when integral promotion is required.
 \layout Itemize
 
 Reducing the size of division, multiplication & modulus operations can reduce
@@ -6377,32 +8409,32 @@ If any of the 128 bit variables are used, or near data is being used then
 \layout Standard
 
 The amount of stack being used is affected by the use of the "internal stack"
- to save registers before a subroutine call is made (--stack-auto will declare
- parameters and local variables on the stack) and the number of nested subroutin
-es.
+ to save registers before a subroutine call is made (---stack-auto will
+ declare parameters and local variables on the stack) and the number of
+ nested subroutines.
 \layout Standard
 
 If you detect that the stack is over writing you data, then the following
  can be done.
- --xstack will cause an external stack to be used for saving registers and
(if --stack-auto is being used) storing parameters and local variables.
+ ---xstack will cause an external stack to be used for saving registers
and (if ---stack-auto is being used) storing parameters and local variables.
  However this will produce more code which will be slower to execute.
  
 \layout Standard
 
---stack-loc will allow you specify the start of the stack, i.e.
+---stack-loc will allow you specify the start of the stack, i.e.
  you could start it after any data in the general purpose area.
  However this may waste the memory not used by the register banks and if
  the size of the "near data" increases, it may creep into the bottom of
  the stack.
 \layout Standard
 
---stack-after-data, similar to the --stack-loc, but it automatically places
+---stack-after-data, similar to the ---stack-loc, but it automatically places
  the stack after the end of the "near data".
  Again this could waste any spare register space.
 \layout Standard
 
---data-loc allows you to specify the start address of the near data.
+---data-loc allows you to specify the start address of the near data.
  This could be used to move the "near data" further away from the stack
  giving it more room to grow.
  This will only work if no bit variables are being used and the stack can
@@ -6417,9 +8449,9 @@ Conclusion.
 If you find that the stack is over writing your bit variables or "near data"
  then the approach which best utilised the internal memory is to position
  the "near data" after the last bank of used registers or, if you use bit
- variables, after the last bit variable by using the --data-loc, e.g.
- if two register banks are being used and no bit variables, --data-loc 16,
and use the --stack-after-data option.
+ variables, after the last bit variable by using the ---data-loc, e.g.
+ if two register banks are being used and no bit variables, ---data-loc
16, and use the ---stack-after-data option.
 \layout Standard
 
 If bit variables are being used, another method would be to try and squeeze
@@ -6449,7 +8481,7 @@ The second phase involves generating an intermediate code which can be easy
  The intermediate code generation assumes the target machine has unlimited
  number of registers, and designates them with the name iTemp.
  The compiler can be made to dump a human readable form of the code generated
- by using the --dumpraw option.
+ by using the ---dumpraw option.
 \layout Itemize
 
 This phase does the bulk of the standard optimizations and is also MCU independe
@@ -6535,7 +8567,7 @@ debug option must be specified for all files for which debug information
 How the Debugger Works
 \layout Standard
 
-When the --debug option is specified the compiler generates extra symbol
+When the ---debug option is specified the compiler generates extra symbol
  information some of which are put into the the assembler source and some
  are put into the .cdb file, the linker updates the .cdb file with the address
  information for the symbols.
@@ -6580,13 +8612,13 @@ foo.ihx - the intel hex format object file.
 Command Line Options.
 \layout Itemize
 
---directory=<source file directory> this option can used to specify the
+---directory=<source file directory> this option can used to specify the
  directory search list.
  The debugger will look into the directory list specified for source, cdb
  & ihx files.
  The items in the directory list must be separated by ':', e.g.
  if the source files can be in the directories /home/src1 and /home/src2,
- the --directory option should be --directory=/home/src1:/home/src2.
+ the ---directory option should be ---directory=/home/src1:/home/src2.
  Note there can be no spaces in the option.
  
 \layout Itemize
@@ -6881,7 +8913,7 @@ Comment
 \SpecialChar ~
 \SpecialChar ~
 \SpecialChar ~
--------\SpecialChar ~
+------\SpecialChar ~
 \SpecialChar ~
 \SpecialChar ~
 \SpecialChar ~
@@ -6903,7 +8935,7 @@ Comment
 \SpecialChar ~
 \SpecialChar ~
 \SpecialChar ~
-------- 
+-------- 
 \newline 
 ;; 
 \newline 
@@ -7609,10 +9641,13 @@ cc@sdcc.sourceforge.net'.
  which reproduces the problem.
  If you can isolate the problem by looking at the generated assembly code,
  this can be very helpful.
- Compiling your program with the --dumpall option can sometimes be useful
+ Compiling your program with the ---dumpall option can sometimes be useful
  in locating optimization problems.
 \layout Section
 
+Compiler internals
+\layout Subsection
+
 The anatomy of the compiler
 \layout Standard
 
@@ -7647,7 +9682,7 @@ Parsing the input source file and creating an AST (Annotated Syntax Tree).
  xdata will be treated as a storage class specifier when parsing 8051 C
  code but will be treated as a C identifier when parsing z80 or ATMEL AVR
  C code.
-\layout Paragraph
+\layout Paragraph*
 
 Generating iCode
 \layout Standard
@@ -7658,7 +9693,7 @@ Intermediate code generation.
  ICode is the term given to the intermediate form generated by the compiler.
  ICode example section shows some examples of iCode generated for some simple
  C source functions.
-\layout Paragraph
+\layout Paragraph*
 
 Optimizations.
 \layout Standard
@@ -7667,7 +9702,7 @@ Bulk of the target independent optimizations is performed in this phase.
  The optimizations include constant propagation, common sub-expression eliminati
 on, loop invariant code movement, strength reduction of loop induction variables
  and dead-code elimination.
-\layout Paragraph
+\layout Paragraph*
 
 Live range analysis
 \layout Standard
@@ -7685,7 +9720,7 @@ nerated temporaries.
  The live ranges are computed in terms of these numbers.
  The from number is the number of the iCode which first defines the operand
  and the to number signifies the iCode which uses this operand last.
-\layout Paragraph
+\layout Paragraph*
 
 Register Allocation
 \layout Standard
@@ -7712,7 +9747,7 @@ The register allocation determines the type and number of registers needed
 There are other MCU specific considerations in this phase.
  Some MCUs have an accumulator; very short-lived operands could be assigned
  to the accumulator instead of general-purpose register.
-\layout Paragraph
+\layout Paragraph*
 
 Code generation
 \layout Standard
@@ -7724,11 +9759,15 @@ Figure II gives a table of iCode operations supported by the compiler.
  Some of the iCode operations are generated on a MCU specific manner for
  example, the z80 port does not use registers to pass parameters so the
  SEND and RECV iCode operations will not be generated, and it also does
- not support JUMPTABLES
-\layout Section*
+ not support JUMPTABLES.
+\newline 
 
+\series bold 
+\shape italic 
+\color red
 <Where is Figure II ?>
-\layout Paragraph
+\layout Paragraph*
 
 ICode Example
 \layout Standard
@@ -7802,7 +9841,7 @@ mul = 0;
 \newline 
 15.\SpecialChar ~
 \SpecialChar ~
-for (i = 0, j = 10 ; i < 10 ; i++, j--) {
+for (i = 0, j = 10 ; i < 10 ; i++, j---) {
 \newline 
 16.\SpecialChar ~
 \SpecialChar ~
@@ -7843,11 +9882,13 @@ In addition to the operands each iCode contains information about the filename
 \newline 
 
 \shape italic 
+\size footnotesize 
 Filename(linenumber: iCode Execution sequence number : ICode hash table
  key : loop depth of the iCode).
-\newline 
-
 \shape default 
+\size default 
+
+\newline 
 Then follows the human readable form of the ICode operation.
  Each operand of this triplet form can be of three basic types a) compiler
  generated temporary b) user defined variable c) a constant value.
@@ -7860,11 +9901,13 @@ Then follows the human readable form of the ICode operation.
 \newline 
 
 \shape italic 
+\size footnotesize 
 Operand Name [lr live-from : live-to ] { type information } [ registers
  allocated ].
-\newline 
-
 \shape default 
+\size default 
+
+\newline 
 As mentioned earlier the live ranges are computed in terms of the execution
  sequence number of the iCodes, for example 
 \newline 
@@ -7904,228 +9947,208 @@ Note the dead code elimination optimization eliminated the dead assignments
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c (5:1:0:0) _entry($9) :
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(5:2:1:0) proc _function [lr0:0]{function short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(11:3:2:0) iTemp0 [lr3:5]{_near * int}[r2] = recv 
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(11:4:53:0) preHeaderLbl0($11) :
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(11:5:55:0) iTemp6 [lr5:16]{_near * int}[r0] := iTemp0 [lr3:5]{_near
  * int}[r2]
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(11:6:5:1) _whilecontinue_0($1) :
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(11:7:7:1) iTemp4 [lr7:8]{int}[r2 r3] = @[iTemp6 [lr5:16]{_near *
  int}[r0]]
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(11:8:8:1) if iTemp4 [lr7:8]{int}[r2 r3] == 0 goto _whilebreak_0($3)
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(11:9:14:1) iTemp7 [lr9:13]{_far * int}[DPTR] := _p [lr0:0]{_far
  * int}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(11:10:15:1) _p [lr0:0]{_far * int} = _p [lr0:0]{_far * int} + 0x2
  {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(11:13:18:1) iTemp10 [lr13:14]{int}[r2 r3] = @[iTemp7 [lr9:13]{_far
  * int}[DPTR]]
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(11:14:19:1) *(iTemp6 [lr5:16]{_near * int}[r0]) := iTemp10 [lr13:14]{int
 }[r2 r3]
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(11:15:12:1) iTemp6 [lr5:16]{_near * int}[r0] = iTemp6 [lr5:16]{_near
- * int}[r0] + 
+ * int}[r0] + 0x2 {short}
 \layout Standard
 
 
-\family typewriter 
-0x2 {short}
-\layout Standard
-
-
-\family typewriter 
+\size footnotesize 
 Sample.c(11:16:20:1) goto _whilecontinue_0($1)
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(11:17:21:0)_whilebreak_0($3) :
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(12:18:22:0) iTemp2 [lr18:40]{short}[r2] := 0x0 {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(13:19:23:0) iTemp11 [lr19:40]{short}[r3] := 0x0 {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(15:20:54:0)preHeaderLbl1($13) :
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(15:21:56:0) iTemp21 [lr21:38]{short}[r4] := 0x0 {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(15:22:57:0) iTemp23 [lr22:38]{int}[r5 r6] := 0xa {int}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(15:23:58:0) iTemp17 [lr23:38]{int}[r7 r0] := 0x1e {int}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(15:24:26:1)_forcond_0($4) :
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(15:25:27:1) iTemp13 [lr25:26]{char}[CC] = iTemp21 [lr21:38]{short}[r4]
  < 0xa {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(15:26:28:1) if iTemp13 [lr25:26]{char}[CC] == 0 goto _forbreak_0($7)
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(16:27:31:1) iTemp2 [lr18:40]{short}[r2] = iTemp2 [lr18:40]{short}[r2]
- + 
-\layout Standard
-
-
-\family typewriter 
-ITemp21 [lr21:38]{short}[r4]
+ + ITemp21 [lr21:38]{short}[r4]
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(17:29:33:1) iTemp15 [lr29:30]{short}[r1] = iTemp21 [lr21:38]{short}[r4]
  * 0x3 {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(17:30:34:1) iTemp11 [lr19:40]{short}[r3] = iTemp11 [lr19:40]{short}[r3]
- + 
-\layout Standard
-
-
-\family typewriter 
-iTemp15 [lr29:30]{short}[r1]
+ + iTemp15 [lr29:30]{short}[r1]
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(18:32:36:1:1) iTemp17 [lr23:38]{int}[r7 r0]= iTemp17 [lr23:38]{int}[r7
  r0]- 0x3 {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(18:33:37:1) _gint [lr0:0]{int} = _gint [lr0:0]{int} + iTemp17 [lr23:38]{
 int}[r7 r0]
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(15:36:42:1) iTemp21 [lr21:38]{short}[r4] = iTemp21 [lr21:38]{short}[r4]
  + 0x1 {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(15:37:45:1) iTemp23 [lr22:38]{int}[r5 r6]= iTemp23 [lr22:38]{int}[r5
  r6]- 0x1 {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(19:38:47:1) goto _forcond_0($4)
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(19:39:48:0)_forbreak_0($7) :
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 Sample.c(20:40:49:0) iTemp24 [lr40:41]{short}[DPTR] = iTemp2 [lr18:40]{short}[r2]
- + 
+ + ITemp11 [lr19:40]{short}[r3]
 \layout Standard
 
 
-\family typewriter 
-ITemp11 [lr19:40]{short}[r3]
+\size footnotesize 
+Sample.c(20:41:50:0) ret iTemp24 [lr40:41]{short}
 \layout Standard
 
 
-\family typewriter 
-sample.c(20:41:50:0) ret iTemp24 [lr40:41]{short}
+\size footnotesize 
+Sample.c(20:42:51:0)_return($8) :
 \layout Standard
 
 
-\family typewriter 
-sample.c(20:42:51:0)_return($8) :
-\layout Standard
-
+\size footnotesize 
+Sample.c(20:43:52:0) eproc _function [lr0:0]{ ia0 re0 rm0}{function short}
+\size default 
 
-\family typewriter 
-sample.c(20:43:52:0) eproc _function [lr0:0]{ ia0 re0 rm0}{function short}
 \newline 
 
-\family default 
-
 \newline 
 Finally the code generated for this function:
 \newline 
@@ -8133,754 +10156,797 @@ Finally the code generated for this function:
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 .area DSEG (DATA)
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 _p::
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 .ds 2
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 _gint::
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 .ds 2
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; sample.c 5
 \layout Standard
 
 
-\family typewriter 
-; -----------------------------------------
+\size footnotesize 
+; ----------------------------------------------
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; function function
 \layout Standard
 
 
-\family typewriter 
-; -----------------------------------------
+\size footnotesize 
+; ----------------------------------------------
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 _function:
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp0 [lr3:5]{_near * int}[r2] = recv 
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov r2,dpl
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp6 [lr5:16]{_near * int}[r0] := iTemp0 [lr3:5]{_near * int}[r2]
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov ar0,r2
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ;_whilecontinue_0($1) :
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 00101$:
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp4 [lr7:8]{int}[r2 r3] = @[iTemp6 [lr5:16]{_near * int}[r0]]
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; if iTemp4 [lr7:8]{int}[r2 r3] == 0 goto _whilebreak_0($3)
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov ar2,@r0
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 inc r0
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov ar3,@r0
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 dec r0
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov a,r2
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 orl a,r3
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 jz 00103$
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 00114$:
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp7 [lr9:13]{_far * int}[DPTR] := _p [lr0:0]{_far * int}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov dpl,_p
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov dph,(_p + 1)
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; _p [lr0:0]{_far * int} = _p [lr0:0]{_far * int} + 0x2 {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov a,#0x02
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 add a,_p
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov _p,a
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 clr a
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 addc a,(_p + 1)
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov (_p + 1),a
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp10 [lr13:14]{int}[r2 r3] = @[iTemp7 [lr9:13]{_far * int}[DPTR]]
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 movx a,@dptr
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov r2,a
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 inc dptr
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 movx a,@dptr
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov r3,a
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; *(iTemp6 [lr5:16]{_near * int}[r0]) := iTemp10 [lr13:14]{int}[r2 r3]
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov @r0,ar2
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 inc r0
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov @r0,ar3
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp6 [lr5:16]{_near * int}[r0] = 
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp6 [lr5:16]{_near * int}[r0] + 
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; 0x2 {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 inc r0
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; goto _whilecontinue_0($1)
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 sjmp 00101$
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; _whilebreak_0($3) :
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 00103$:
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp2 [lr18:40]{short}[r2] := 0x0 {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov r2,#0x00
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp11 [lr19:40]{short}[r3] := 0x0 {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov r3,#0x00
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp21 [lr21:38]{short}[r4] := 0x0 {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov r4,#0x00
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp23 [lr22:38]{int}[r5 r6] := 0xa {int}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov r5,#0x0A
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov r6,#0x00
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp17 [lr23:38]{int}[r7 r0] := 0x1e {int}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov r7,#0x1E
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov r0,#0x00
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; _forcond_0($4) :
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 00104$:
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp13 [lr25:26]{char}[CC] = iTemp21 [lr21:38]{short}[r4] < 0xa {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; if iTemp13 [lr25:26]{char}[CC] == 0 goto _forbreak_0($7)
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 clr c
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov a,r4
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 xrl a,#0x80
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 subb a,#0x8a
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 jnc 00107$
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 00115$:
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp2 [lr18:40]{short}[r2] = iTemp2 [lr18:40]{short}[r2] + 
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp21 [lr21:38]{short}[r4]
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov a,r4
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 add a,r2
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov r2,a
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp15 [lr29:30]{short}[r1] = iTemp21 [lr21:38]{short}[r4] * 0x3 {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov b,#0x03
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov a,r4
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mul ab
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov r1,a
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp11 [lr19:40]{short}[r3] = iTemp11 [lr19:40]{short}[r3] + 
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp15 [lr29:30]{short}[r1]
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 add a,r3
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov r3,a
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp17 [lr23:38]{int}[r7 r0]= iTemp17 [lr23:38]{int}[r7 r0]- 0x3 {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov a,r7
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 add a,#0xfd
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov r7,a
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov a,r0
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 addc a,#0xff
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov r0,a
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; _gint [lr0:0]{int} = _gint [lr0:0]{int} + iTemp17 [lr23:38]{int}[r7 r0]
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov a,r7
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 add a,_gint
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov _gint,a
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov a,r0
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 addc a,(_gint + 1)
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov (_gint + 1),a
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp21 [lr21:38]{short}[r4] = iTemp21 [lr21:38]{short}[r4] + 0x1 {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 inc r4
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; iTemp23 [lr22:38]{int}[r5 r6]= iTemp23 [lr22:38]{int}[r5 r6]- 0x1 {short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 dec r5
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 cjne r5,#0xff,00104$
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 dec r6
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; goto _forcond_0($4)
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 sjmp 00104$
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; _forbreak_0($7) :
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 00107$:
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; ret iTemp24 [lr40:41]{short}
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov a,r3
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 add a,r2
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 mov dpl,a
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 ; _return($8) :
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 00108$:
 \layout Standard
 
 
-\family typewriter 
+\size footnotesize 
 \SpecialChar ~
 \SpecialChar ~
 ret
-\family default 
+\newline 
+
+\layout Subsection
+
+A few words about basic block successors, predecessors and dominators
+\layout Standard
+
+Successors are basic blocks that might execute after this basic block.
+\newline 
+Predecessors are basic blocks that might execute before reaching this basic
+ block.
+\newline 
+Dominators are basic blocks that WILL execute before reaching this basic
+ block.
+\newline 
+
+\layout Standard
 
+[basic block 1]
+\layout Standard
+
+if (something)
+\layout Standard
+
+[basic block 2]
+\layout Standard
+
+else
+\layout Standard
+
+[basic block 3]
+\layout Standard
+
+[basic block 4]
 \newline 
 
+\layout Standard
+
+a) succList of [BB2] = [BB4], of [BB3] = [BB4], of [BB1] = [BB2,BB3]
+\layout Standard
+
+b) predList of [BB2] = [BB1], of [BB3] = [BB1], of [BB4] = [BB2,BB3]
+\layout Standard
+
+c) domVect of [BB4] = BB1 ...
+ here we are not sure if BB2 or BB3 was executed but we are SURE that BB1
+ was executed.
 \layout Section
 
 Acknowledgments