* support/scripts/sdcc.nsi: added asranlib.exe to the install package
[fw/sdcc] / doc / sdccman.lyx
index d19c8362f73ec29b4abe6e255ab6f2f46c7cbde4..6dccfe527bb66ee2b59f7cc56f4ec566aebe4d42 100644 (file)
@@ -1,5 +1,5 @@
-#LyX 1.4.5 created this file. For more info see http://www.lyx.org/
-\lyxformat 245
+#LyX 1.5.7 created this file. For more info see http://www.lyx.org/
+\lyxformat 276
 \begin_document
 \begin_header
 \textclass book
   linkcolor=blue] {hyperref}
 %
 \sloppy
-\tolerance=500
-\emergencystretch=30pt
+\tolerance=500          
+\emergencystretch=30pt 
 %
 \date{}
 \end_preamble
 \language english
 \inputencoding default
-\fontscheme pslatex
+\font_roman times
+\font_sans helvet
+\font_typewriter courier
+\font_default_family default
+\font_sc false
+\font_osf false
+\font_sf_scale 100
+\font_tt_scale 100
 \graphics default
 \paperfontsize default
 \spacing single
 \papersize letterpaper
 \use_geometry true
 \use_amsmath 1
+\use_esint 0
 \cite_engine basic
 \use_bibtopic false
 \paperorientation portrait
@@ -45,7 +53,9 @@
 \papersides 1
 \paperpagestyle fancy
 \tracking_changes false
-\output_changes true
+\output_changes false
+\author "" 
+\author "" 
 \end_header
 
 \begin_body
@@ -84,8 +94,8 @@ Architecture specific stuff (like memory models, code examples) should maybe
 \end_layout
 
 \begin_layout Standard
-into seperate sections/chapters/appendices (it is hard to document PIC or
- Z80 in
+into separate sections/chapters/appendices (it is hard to document PIC or
+ Z80 in 
 \end_layout
 
 \begin_layout Standard
@@ -104,13 +114,13 @@ SDCC Compiler User Guide
 \begin_layout Date
 
 \size normal
-SDCC 2.7.5
+SDCC 2.8.7
 \size footnotesize
 
 \newline
-$Date::             $
+$Date: 2008-11-16#$ 
 \newline
-$Revision$
+$Revision: 5272$
 \end_layout
 
 \begin_layout Standard
@@ -127,7 +137,7 @@ The above strings enclosed in $ are automatically updated by Subversion
 \end_layout
 
 \begin_layout Standard
-\begin_inset LatexCommand \tableofcontents{}
+\begin_inset LatexCommand tableofcontents
 
 \end_inset
 
@@ -151,23 +161,28 @@ SDCC
 \emph on
 S
 \emph default
-mall
+mall 
 \emph on
 D
 \emph default
-evice
+evice 
 \emph on
-CC
+C
+\emph default
+\emph on
+C
 \emph default
 ompiler) is free open source, retargettable, optimizing ANSI-C compiler
- by
+ by 
 \series bold
 Sandeep Dutta
 \series default
  designed for 8 bit Microprocessors.
  The current version targets Intel MCS51 based Microprocessors (8031, 8032,
  8051, 8052
-\begin_inset LatexCommand \index{8031, 8032, 8051, 8052, mcs51 CPU}
+\begin_inset LatexCommand index
+name "8031, 8032, 8051, 8052, mcs51 CPU"
 
 \end_inset
 
@@ -177,48 +192,51 @@ Sandeep Dutta
  Atmel AVR is under development.
  The entire source code for the compiler is distributed under GPL.
  SDCC uses ASXXXX
-\begin_inset LatexCommand \index{asXXXX (as-gbz80, as-hc08, asx8051, as-z80)}
+\begin_inset LatexCommand index
+name "asXXXX (as-gbz80, as-hc08, asx8051, as-z80)"
 
 \end_inset
 
  & ASLINK
-\begin_inset LatexCommand \index{aslink}
+\begin_inset LatexCommand index
+name "aslink"
 
 \end_inset
 
 , an open source retargetable assembler & linker.
  SDCC has extensive language extensions suitable for utilizing various microcont
 rollers and underlying hardware effectively.
 \newline
 
 \newline
-In addition to the MCU specific
optimizations SDCC also does a host of standard optimizations like:
+In addition to the MCU specific optimizations SDCC also does a host of
+ standard optimizations like:
 \end_layout
 
 \begin_layout Itemize
-global sub expression elimination,
+global sub expression elimination, 
 \end_layout
 
 \begin_layout Itemize
 loop optimizations (loop invariant, strength reduction of induction variables
- and loop reversing),
+ and loop reversing), 
 \end_layout
 
 \begin_layout Itemize
-constant folding & propagation,
+constant folding & propagation, 
 \end_layout
 
 \begin_layout Itemize
-copy propagation,
+copy propagation, 
 \end_layout
 
 \begin_layout Itemize
-dead code elimination
+dead code elimination 
 \end_layout
 
 \begin_layout Itemize
-jump tables for
+jump tables for 
 \emph on
 switch
 \emph default
@@ -228,16 +246,17 @@ switch
 \begin_layout Standard
 For the back-end SDCC uses a global register allocation scheme which should
  be well suited for other 8 bit MCUs.
 \newline
 
 \newline
-The peep hole optimizer uses a rule
- based substitution mechanism which is MCU independent.
+The peep hole optimizer uses a rule based substitution mechanism which
+ is MCU independent.
 \newline
 
 \newline
-Supported data-types
- are:
+Supported data-types are:
 \end_layout
 
 \begin_layout Standard
@@ -572,7 +591,7 @@ signed
 \begin_inset Text
 
 \begin_layout Standard
-1.175494351E-38,
+1.175494351E-38, 
 \family roman
 \series medium
 \shape up
@@ -640,7 +659,7 @@ generic
 
 
 \newline
-The compiler also allows
+The compiler also allows 
 \emph on
 inline assembler code
 \emph default
@@ -666,6 +685,7 @@ status collapsed
 -cyclomatic) to report the relative complexity of a function.
  These functions can then be further optimized, or hand coded in assembly
  if needed.
 \newline
 
 \newline
@@ -676,18 +696,22 @@ SDCC also comes with a companion source level debugger SDCDB.
 
 \newline
 The latest SDCC version can be downloaded from
-\begin_inset LatexCommand \url{http://sdcc.sourceforge.net/snap.php}
+\begin_inset LatexCommand url
+target "http://sdcc.sourceforge.net/snap.php"
 
 \end_inset
 
 .
 \emph on
 Please note: the compiler will probably always be some steps ahead of this
  documentation
 \series bold
 \emph default
 
-\begin_inset LatexCommand \index{Status of documentation}
+\begin_inset LatexCommand index
+name "Status of documentation"
 
 \end_inset
 
@@ -709,11 +733,11 @@ Open Source
 \end_layout
 
 \begin_layout Standard
-All packages used in this compiler system are
+All packages used in this compiler system are 
 \emph on
 open source
 \emph default
- and
+ and 
 \emph on
 freeware
 \emph default
@@ -724,7 +748,8 @@ freeware
 \newline
 This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License
-\begin_inset LatexCommand \index{GNU General Public License, GPL}
+\begin_inset LatexCommand index
+name "GNU General Public License, GPL"
 
 \end_inset
 
@@ -732,7 +757,8 @@ This program is free software; you can redistribute it and/or modify
  your option) any later version.
  This program is distributed in the hope that it will be useful, but WITHOUT
  ANY WARRANTY; without even the implied warranty
-\begin_inset LatexCommand \index{warranty}
+\begin_inset LatexCommand index
+name "warranty"
 
 \end_inset
 
@@ -744,12 +770,13 @@ This program is free software; you can redistribute it and/or modify
  In other words, you are welcome to use, share and improve this program.
  You are forbidden to forbid anyone else to use, share and improve what
  you give them.
- Help stamp out software-hoarding!
+ Help stamp out software-hoarding! 
 \end_layout
 
 \begin_layout Section
 Typographic conventions
-\begin_inset LatexCommand \index{Typographic conventions}
+\begin_inset LatexCommand index
+name "Typographic conventions"
 
 \end_inset
 
@@ -758,7 +785,7 @@ Typographic conventions
 
 \begin_layout Standard
 Throughout this manual, we will use the following convention.
- Commands you have to type in are printed in
+ Commands you have to type in are printed in 
 \family sans
 \series bold
 "sans serif"
@@ -766,24 +793,26 @@ Throughout this manual, we will use the following convention.
 .
 
 \family default
- Code samples are printed in
+ Code samples are printed in 
 \family typewriter
 typewriter font.
 
 \family default
- Interesting items and new terms are printed in
+ Interesting items and new terms are printed in 
 \emph on
 italic.
 \end_layout
 
 \begin_layout Section
 Compatibility
-\begin_inset LatexCommand \label{sec:Compatibility-with-previous}
+\begin_inset LatexCommand label
+name "sec:Compatibility-with-previous"
 
 \end_inset
 
  with previous versions
-\begin_inset LatexCommand \index{Compatibility with previous versions}
+\begin_inset LatexCommand index
+name "Compatibility with previous versions"
 
 \end_inset
 
@@ -796,16 +825,19 @@ Newer versions have usually numerous bug fixes compared with the previous
  But we also sometimes introduce some incompatibilities with older versions.
  Not just for the fun of it, but to make the compiler more stable, efficient
  and ANSI compliant
-\begin_inset LatexCommand \index{ANSI-compliance}
+\begin_inset LatexCommand index
+name "ANSI-compliance"
 
 \end_inset
 
- (see section
-\begin_inset LatexCommand \ref{sub:ANSI-Compliance}
+ (see section 
+\begin_inset LatexCommand ref
+reference "sub:ANSI-Compliance"
 
 \end_inset
 
  for ANSI-Compliance).
 \begin_inset Note Note
 status collapsed
 
@@ -836,8 +868,9 @@ status collapsed
 
 \end_inset
 
--short-is-8bits commandline option (see
-\begin_inset LatexCommand \vref{lyx:--short-is-8bits}
+-short-is-8bits commandline option (see 
+\begin_inset LatexCommand vref
+reference "lyx:--short-is-8bits"
 
 \end_inset
 
@@ -851,11 +884,58 @@ the default directory for gcc-builds where include, library and documentation
 
 \begin_layout Itemize
 char type parameters to vararg
-\begin_inset LatexCommand \index{vararg, va\_arg}
+\begin_inset LatexCommand index
+name "vararg, va\\_arg"
+
+\end_inset
+
+ functions are casted to int unless explicitly casted and 
+\series bold
+-
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+/
+\end_layout
+
+\end_inset
+
+-std-c89
+\begin_inset LatexCommand index
+name "-\\/-std-c89"
+
+\end_inset
+
+
+\series default
+ and 
+\series bold
+-
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+/
+\end_layout
 
 \end_inset
 
- functions are casted to int unless explicitly casted
+-std-c99
+\begin_inset LatexCommand index
+name "-\\/-std-c99"
+
+\end_inset
+
+
+\series default
+ command line option are not defined 
 \begin_inset Marginal
 status collapsed
 
@@ -868,7 +948,7 @@ status collapsed
 
 \end_inset
 
-, e.g.:
+, e.g.: 
 \newline
 
 \family typewriter
@@ -884,7 +964,101 @@ n", a, (char)a);
 \family default
 
 \newline
- will push a as an int and as a char resp.
+ will push a as an int and as a char resp if 
+\series bold
+-
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+/
+\end_layout
+
+\end_inset
+
+-std-c89
+\begin_inset LatexCommand index
+name "-\\/-std-c89"
+
+\end_inset
+
+
+\series default
+ and 
+\series bold
+-
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+/
+\end_layout
+
+\end_inset
+
+-std-c99
+\begin_inset LatexCommand index
+name "-\\/-std-c99"
+
+\end_inset
+
+
+\series default
+ command line options are not defined,
+\newline
+ will push a as two ints if 
+\series bold
+-
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+/
+\end_layout
+
+\end_inset
+
+-std-c89
+\begin_inset LatexCommand index
+name "-\\/-std-c89"
+
+\end_inset
+
+
+\series default
+ or 
+\series bold
+-
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+/
+\end_layout
+
+\end_inset
+
+-std-c99
+\begin_inset LatexCommand index
+name "-\\/-std-c99"
+
+\end_inset
+
+
+\series default
+ command line option is defined.
 \end_layout
 
 \begin_layout Itemize
@@ -940,35 +1114,41 @@ status collapsed
 
 \begin_layout Itemize
 bit
-\begin_inset LatexCommand \index{bit}
+\begin_inset LatexCommand index
+name "bit"
 
 \end_inset
 
  and sbit
-\begin_inset LatexCommand \index{sbit}
+\begin_inset LatexCommand index
+name "sbit"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_sbit}
+\begin_inset LatexCommand index
+name "\\_\\_sbit"
 
 \end_inset
 
  types now consistently behave like the C99 _Bool type with respect to type
  conversion
-\begin_inset LatexCommand \index{type conversion}
+\begin_inset LatexCommand index
+name "type conversion"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{type promotion}
+\begin_inset LatexCommand index
+name "type promotion"
 
 \end_inset
 
 .
  The most common incompatibility resulting from this change is related to
  bit toggling
-\begin_inset LatexCommand \index{Bit toggling}
+\begin_inset LatexCommand index
+name "Bit toggling"
 
 \end_inset
 
@@ -983,7 +1163,8 @@ bit b;
 \InsetSpace ~
 \InsetSpace ~
 b = ~
-\begin_inset LatexCommand \index{\~\/ Operator}
+\begin_inset LatexCommand index
+name "\\~\\/ Operator"
 
 \end_inset
 
@@ -1011,10 +1192,170 @@ b = !b; /* toggles b */
 In previous versions, both forms would have toggled the bit.
 \end_layout
 
+\begin_layout Itemize
+in older versions, the preprocessor was always called with 
+\series bold
+-
+\begin_inset ERT
+status collapsed
+
 \begin_layout Standard
 
-\emph on
-<pending: more incompatibilities?>
+
+\backslash
+/
+\end_layout
+
+\end_inset
+
+-std-c99
+\begin_inset LatexCommand index
+name "-\\/-std-c99"
+
+\end_inset
+
+
+\series default
+ regardless of the 
+\series bold
+-
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+/
+\end_layout
+
+\end_inset
+
+-std-xxx
+\series default
+ setting.
+ This is no longer true, and can cause compilation failures on code built
+ with 
+\series bold
+-
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+/
+\end_layout
+
+\end_inset
+
+-std-c89
+\begin_inset LatexCommand index
+name "-\\/-std-c89"
+
+\end_inset
+
+
+\series default
+ but using c99 preprocessor features, such as one-line (//) comments
+\end_layout
+
+\begin_layout Itemize
+in versions older then 2.8.4 the pic16 *printf() and printf_tiny() library
+ functions supported undocumented and not standard compliant 'b' binary
+ format specifier ("%b", "%hb" and "%lb").
+ The 'b' specifier is now disabled by default.
+ It can be enabled by defining BINARY_SPECIFIER macro in files device/lib/pic16/
+libc/stdio/vfprintf.c and device/lib/pic16/libc/stdio/printf_tiny.c and recompilin
+g the library.
+\end_layout
+
+\begin_layout Itemize
+in versions older then 2.8.5 the unnamed bitfield structure members participated
+ in initialization, which is not conforming with ISO/IEC 9899:1999 standard
+ (see section Section 6.7.8 Initialization, clause 9)
+\newline
+
+\newline
+Old behavior, before
+ version 2.8.5:
+\family typewriter
+
+\newline
+\InsetSpace ~
+\InsetSpace ~
+struct {
+\newline
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+int a : 2;
+\newline
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+char\InsetSpace ~
+ : 2;
+\newline
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+int b : 2;
+\newline
+\InsetSpace ~
+\InsetSpace ~
+} s = {1, 2, 3};
+\family default
+
+\newline
+
+\family typewriter
+/* s.a = 1, s.b = 3 */
+\family default
+
+\newline
+
+\newline
+New behavior:
+\family typewriter
+
+\newline
+\InsetSpace ~
+\InsetSpace ~
+struct {
+\newline
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+int a : 2;
+\newline
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+char\InsetSpace ~
+ : 2;
+\newline
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+int b : 2;
+\newline
+\InsetSpace ~
+\InsetSpace ~
+} s = {1, 2};
+\family default
+
+\newline
+
+\family typewriter
+/* s.a = 1, s.b = 2 */
 \end_layout
 
 \begin_layout Section
@@ -1036,8 +1377,9 @@ Other Resources
 \end_layout
 
 \begin_layout Standard
-The SDCC home page at
-\begin_inset LatexCommand \url{http://sdcc.sourceforge.net/}
+The SDCC home page at 
+\begin_inset LatexCommand url
+target "http://sdcc.sourceforge.net/"
 
 \end_inset
 
@@ -1047,8 +1389,9 @@ The SDCC home page at
  Web links to other SDCC related sites can also be found here.
  This document can be found in the DOC directory of the source package as
  a text or HTML file.
- A pdf version of this document is available at
-\begin_inset LatexCommand \url{http://sdcc.sourceforge.net/doc/sdccman.pdf}
+ A pdf version of this document is available at 
+\begin_inset LatexCommand url
+target "http://sdcc.sourceforge.net/doc/sdccman.pdf"
 
 \end_inset
 
@@ -1083,7 +1426,8 @@ char KernelFunction3(char p) at 0x340;
 
 \family typewriter
 better code banking
-\begin_inset LatexCommand \index{code banking (limited support)}
+\begin_inset LatexCommand index
+name "code banking (limited support)"
 
 \end_inset
 
@@ -1093,18 +1437,21 @@ better code banking
 \newline
 
 \family default
-If you can think of some more, please see the section
-\begin_inset LatexCommand \ref{sub:Requesting-Features}
+If you can think of some more, please see the section 
+\begin_inset LatexCommand ref
+reference "sub:Requesting-Features"
 
 \end_inset
 
  about filing feature requests
-\begin_inset LatexCommand \index{Requesting features}
+\begin_inset LatexCommand index
+name "Requesting features"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Feature request}
+\begin_inset LatexCommand index
+name "Feature request"
 
 \end_inset
 
@@ -1115,7 +1462,8 @@ If you can think of some more, please see the section
 
 \begin_layout Chapter
 Installing SDCC
-\begin_inset LatexCommand \index{Installation}
+\begin_inset LatexCommand index
+name "Installation"
 
 \end_inset
 
@@ -1123,13 +1471,15 @@ Installing SDCC
 \end_layout
 
 \begin_layout Standard
-For most users it is sufficient to skip to either section
-\begin_inset LatexCommand \ref{sub:Building-SDCC-on-Linux}
+For most users it is sufficient to skip to either section 
+\begin_inset LatexCommand ref
+reference "sub:Building-SDCC-on-Linux"
 
 \end_inset
 
- (Unix) or section
-\begin_inset LatexCommand \ref{sub:Windows-Install}
+ (Unix) or section 
+\begin_inset LatexCommand ref
+reference "sub:Windows-Install"
 
 \end_inset
 
@@ -1139,7 +1489,8 @@ For most users it is sufficient to skip to either section
 
 \begin_layout Section
 Configure Options
-\begin_inset LatexCommand \index{Options SDCC configuration}
+\begin_inset LatexCommand index
+name "Options SDCC configuration"
 
 \end_inset
 
@@ -1269,7 +1620,7 @@ lib_dir_suffix environment variable, see table below
 \labelwidthstring 00.00.0000
 \InsetSpace ~
 \InsetSpace ~
-sdccconf_h_dir_separator environment variable, either / or
+sdccconf_h_dir_separator environment variable, either / or 
 \backslash
 
 \backslash
@@ -1535,6 +1886,24 @@ status collapsed
  Lower runtime footprint.
 \end_layout
 
+\begin_layout List
+\labelwidthstring 00.00.0000
+-
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+/
+\end_layout
+
+\end_inset
+
+-without-ccache Do not use ccache even if available
+\end_layout
+
 \begin_layout Standard
 Furthermore the environment variables CC, CFLAGS, ...
  the tools and their arguments can be influenced.
@@ -1566,7 +1935,7 @@ B, STD_XA51_LIB and the environment variables SDCC_DIR_NAME, SDCC_INCLUDE_NAME,
 \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
+ The configure options are written in 
 \emph on
 italics
 \emph default
@@ -1575,7 +1944,7 @@ italics
 \newline
 
 \newline
-The settings for
+The settings for 
 \begin_inset Quotes sld
 \end_inset
 
@@ -1589,7 +1958,7 @@ Win32 builds
 \end_layout
 
 \begin_layout Enumerate
-open source,
+open source, 
 \end_layout
 
 \begin_layout Enumerate
@@ -1950,7 +2319,7 @@ lib
  This is needed for full relocatability of a binary package and to complete
  search paths (see section search paths below):
 \newline
-
 \end_layout
 
 \begin_layout Standard
@@ -2179,7 +2548,7 @@ To cross compile on linux for Mingw32 (see also 'sdcc/support/scripts/sdcc_mingw
 \end_layout
 
 \begin_layout LyX-Code
-./configure
+./configure 
 \backslash
 
 \newline
@@ -2199,9 +2568,9 @@ i586-mingw32msvc-g++
 \begin_inset Quotes srd
 \end_inset
 
-
 \backslash
-
 \newline
 RANLIB=
 \begin_inset Quotes srd
@@ -2211,7 +2580,7 @@ i586-mingw32msvc-ranlib
 \begin_inset Quotes srd
 \end_inset
 
-
 \backslash
 
 \newline
@@ -2223,7 +2592,7 @@ i586-mingw32msvc-strip
 \begin_inset Quotes srd
 \end_inset
 
-
 \backslash
 
 \newline
@@ -2248,7 +2617,7 @@ status collapsed
 \begin_inset Quotes srd
 \end_inset
 
-
 \backslash
 
 \newline
@@ -2273,7 +2642,7 @@ status collapsed
 \begin_inset Quotes srd
 \end_inset
 
-
 \backslash
 
 \newline
@@ -2287,7 +2656,7 @@ ${datarootdir}/doc
 \begin_inset Quotes srd
 \end_inset
 
-
 \backslash
 
 \newline
@@ -2299,7 +2668,7 @@ include
 \begin_inset Quotes srd
 \end_inset
 
-
 \backslash
 
 \newline
@@ -2311,7 +2680,7 @@ lib
 \begin_inset Quotes srd
 \end_inset
 
-
 \backslash
 
 \newline
@@ -2331,7 +2700,7 @@ sdccconf_h_dir_separator=
 \begin_inset Quotes srd
 \end_inset
 
-
 \backslash
 
 \newline
@@ -2386,7 +2755,7 @@ status collapsed
 \end_layout
 
 \begin_layout Standard
-To
+To 
 \begin_inset Quotes sld
 \end_inset
 
@@ -2399,7 +2768,7 @@ compile on Cygwin for Mingw32 (see also sdcc/support/scripts/sdcc_cygwin_mingw32
 \end_layout
 
 \begin_layout LyX-Code
-./configure -C
+./configure -C 
 \backslash
 
 \newline
@@ -2424,7 +2793,7 @@ status collapsed
 \begin_inset Quotes srd
 \end_inset
 
-
 \backslash
 
 \newline
@@ -2449,7 +2818,7 @@ status collapsed
 \begin_inset Quotes srd
 \end_inset
 
-
 \backslash
 
 \newline
@@ -2463,9 +2832,9 @@ ${datarootdir}/doc
 \begin_inset Quotes srd
 \end_inset
 
-
 \backslash
-
 \newline
 include_dir_suffix=
 \begin_inset Quotes srd
@@ -2475,7 +2844,7 @@ include
 \begin_inset Quotes srd
 \end_inset
 
-
 \backslash
 
 \newline
@@ -2487,7 +2856,7 @@ lib
 \begin_inset Quotes srd
 \end_inset
 
-
 \backslash
 
 \newline
@@ -2507,7 +2876,7 @@ sdccconf_h_dir_separator=
 \begin_inset Quotes srd
 \end_inset
 
-
 \backslash
 
 \newline
@@ -2519,7 +2888,7 @@ gcc -mno-cygwin
 \begin_inset Quotes srd
 \end_inset
 
-
 \backslash
 
 \newline
@@ -2531,7 +2900,7 @@ g++ -mno-cygwin
 \begin_inset Quotes srd
 \end_inset
 
-
 \end_layout
 
 \begin_layout Standard
@@ -2556,12 +2925,14 @@ status collapsed
 
 \begin_layout Section
 Install paths
-\begin_inset LatexCommand \label{sub:Install-paths}
+\begin_inset LatexCommand label
+name "sub:Install-paths"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Install paths}
+\begin_inset LatexCommand index
+name "Install paths"
 
 \end_inset
 
@@ -2818,7 +3189,7 @@ doc
 \size footnotesize
 *compiler, preprocessor, assembler, and linker
 \newline
-**the
+**the 
 \shape italic
 model
 \shape default
@@ -2842,7 +3213,8 @@ Of course this doesn't change the search paths compiled into the binaries.
 \newline
 Moreove
 r the install path can be changed by defining DESTDIR
-\begin_inset LatexCommand \index{DESTDIR}
+\begin_inset LatexCommand index
+name "DESTDIR"
 
 \end_inset
 
@@ -2859,12 +3231,14 @@ Please note that DESTDIR must have a trailing slash!
 
 \begin_layout Section
 Search Paths
-\begin_inset LatexCommand \label{sub:Search-Paths}
+\begin_inset LatexCommand label
+name "sub:Search-Paths"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Search path}
+\begin_inset LatexCommand index
+name "Search path"
 
 \end_inset
 
@@ -2873,16 +3247,16 @@ Search Paths
 
 \begin_layout Standard
 Some search paths or parts of them are determined by configure variables
- (in
+ (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):
+The paths searched when running the compiler are as follows (the first
+ catch wins):
 \newline
 
 \newline
@@ -3024,7 +3398,7 @@ $PATH
 
 \end_inset
 
-
 \newline
 
 \end_layout
@@ -3340,7 +3714,7 @@ include
 
 \end_inset
 
-
 \newline
 
 \end_layout
@@ -3365,13 +3739,13 @@ status collapsed
 
 \newline
 3.
- Library files
+ Library files 
 \newline
 
 \end_layout
 
 \begin_layout Standard
-With the exception of
+With the exception of 
 \begin_inset Quotes sld
 \end_inset
 
@@ -3392,12 +3766,13 @@ status collapsed
 \begin_inset Quotes srd
 \end_inset
 
- the
+ the 
 \shape italic
 model
 \shape default
  is auto-appended by the compiler (e.g.
  small, large, z80, ds390 etc.).
 \newline
 
 \end_layout
@@ -3812,7 +4187,8 @@ status collapsed
 
 \begin_layout Section
 Building SDCC
-\begin_inset LatexCommand \index{Building SDCC}
+\begin_inset LatexCommand index
+name "Building SDCC"
 
 \end_inset
 
@@ -3821,7 +4197,8 @@ Building SDCC
 
 \begin_layout Subsection
 Building SDCC on Linux
-\begin_inset LatexCommand \label{sub:Building-SDCC-on-Linux}
+\begin_inset LatexCommand label
+name "sub:Building-SDCC-on-Linux"
 
 \end_inset
 
@@ -3845,8 +4222,9 @@ ar.
 \series medium
 bz2
 \series default
-
-\begin_inset LatexCommand \url{http://sdcc.sourceforge.net/snap.php}
+\begin_inset LatexCommand url
+target "http://sdcc.sourceforge.net/snap.php"
 
 \end_inset
 
@@ -3863,6 +4241,8 @@ Bring up a command line terminal, such as xterm.
 
 \series medium
 Unpack the file using a command like:
+\series default
 \family sans
 \series bold
 "tar -xvzf sdcc-src-yyyymmdd-rrrr.tar.bz2
@@ -3876,7 +4256,7 @@ Unpack the file using a command like:
 \end_layout
 
 \begin_layout Enumerate
-Change directory into the main SDCC directory, for example type:
+Change directory into the main SDCC directory, for example type: 
 \family sans
 \series bold
 "cd sdcc
@@ -3888,6 +4268,8 @@ Change directory into the main SDCC directory, for example type:
 
 \series medium
 Type
+\series default
 \family sans
 \series bold
 "./configure
@@ -3901,6 +4283,8 @@ Type
 
 \series medium
 Type
+\series default
 \family sans
 \series bold
 "make
@@ -3918,6 +4302,8 @@ Type
 
 \series medium
 Type
+\series default
 \family sans
 \series bold
 "make install"
@@ -3930,8 +4316,9 @@ Type
 \series default
  This copies the binary executables, the include files, the libraries and
  the documentation to the install directories.
- Proceed with section
-\begin_inset LatexCommand \ref{sec:Testing-the-SDCC}
+ Proceed with section 
+\begin_inset LatexCommand ref
+reference "sec:Testing-the-SDCC"
 
 \end_inset
 
@@ -3964,21 +4351,21 @@ Universal (ppc and i386) binaries can be produced on Mac OS X 10.4.x with
 \end_layout
 
 \begin_layout LyX-Code
-./configure
+./configure 
 \backslash
 
 \end_layout
 
 \begin_layout LyX-Code
 LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch
- ppc"
+ ppc" 
 \backslash
 
 \end_layout
 
 \begin_layout LyX-Code
 CXXFLAGS = "-O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch
- ppc"
+ ppc" 
 \backslash
 
 \end_layout
@@ -4006,7 +4393,7 @@ For building and installing a Cygwin executable follow the instructions
 \newline
 
 \newline
-On Cygwin a
+On Cygwin a 
 \begin_inset Quotes sld
 \end_inset
 
@@ -4021,13 +4408,15 @@ native
 
 \newline
 In order to install
- Cygwin on Windows download setup.exe from
-\begin_inset LatexCommand \url[www.cygwin.com]{http://www.cygwin.com/}
+ Cygwin on Windows download setup.exe from 
+\begin_inset LatexCommand url
+name "www.cygwin.com"
+target "http://www.cygwin.com/"
 
 \end_inset
 
 .
- Run it, set the
+ Run it, set the 
 \begin_inset Quotes sld
 \end_inset
 
@@ -4035,7 +4424,7 @@ default text file type
 \begin_inset Quotes srd
 \end_inset
 
- to
+ to 
 \begin_inset Quotes sld
 \end_inset
 
@@ -4096,7 +4485,7 @@ python ; for the regression tests
 \end_layout
 
 \begin_layout Itemize
-gdb ; the gnu debugger, together with the nice GUI
+gdb ; the gnu debugger, together with the nice GUI 
 \begin_inset Quotes sld
 \end_inset
 
@@ -4135,7 +4524,7 @@ status collapsed
 
 \end_inset
 
--login -i
+-login -i 
 \end_layout
 
 \begin_layout Standard
@@ -4172,7 +4561,7 @@ Text selected with the mouse is automatically copied to the clipboard, pasting
 The other good tip is to make sure you have no //c/-styl
 e paths anywhere, use /cygdrive/c/ instead.
  Using // invokes a network lookup which is very slow.
- If you think
+ If you think 
 \begin_inset Quotes sld
 \end_inset
 
@@ -4194,7 +4583,8 @@ SDCC sources use the unix line ending LF.
  And use an editor which can handle LF-only line endings.
  Make sure not to commit files with windows line endings.
  The tabulator spacing
-\begin_inset LatexCommand \index{tabulator spacing (8 columns)}
+\begin_inset LatexCommand index
+name "tabulator spacing (8 columns)"
 
 \end_inset
 
@@ -4213,8 +4603,10 @@ Building SDCC Using Microsoft Visual C++ 6.0/NET (MSVC)
 \series medium
 Download the source package
 \series default
- either from the SDCC Subversion repository or from the
-\begin_inset LatexCommand \url[snapshot builds]{http://sdcc.sourceforge.net/snap.php}
+ either from the SDCC Subversion repository or from the 
+\begin_inset LatexCommand url
+name "snapshot builds"
+target "http://sdcc.sourceforge.net/snap.php"
 
 \end_inset
 
@@ -4239,12 +4631,12 @@ bin_vc.
 bin_vc to sdcc
 \backslash
 bin before running SDCC.
 \newline
 
 \newline
-WARNING: Visual studio is very picky with line terminatio
-ns; it expects the 0x0d, 0x0a DOS style line endings, not the 0x0a Unix
- style line endings.
+WARNING: Visual studio is very picky with line terminations; it expects
+ the 0x0d, 0x0a DOS style line endings, not the 0x0a Unix style line endings.
  When using the Subversion repository it's easiest to configure the svn
  client to convert automatically for you.
  If however you are getting a message such as "This makefile was not generated
@@ -4255,7 +4647,7 @@ ns; it expects the 0x0d, 0x0a DOS style line endings, not the 0x0a Unix
 
  when opening the sdcc.dsw workspace or any of the *.dsp projects, then you
  need to convert the Unix style line endings to DOS style line endings.
- To do so you can use the
+ To do so you can use the 
 \begin_inset Quotes sld
 \end_inset
 
@@ -4284,8 +4676,10 @@ SDCC> for /R %I in (*.dsp) do @unix2dos "%I"
 \newline
 In order to build SDCC with MSVC
  you need win32 executables of bison.exe, flex.exe, and gawk.exe.
- One good place to get them is
-\begin_inset LatexCommand \url[here]{http://unxutils.sourceforge.net}
+ One good place to get them is 
+\begin_inset LatexCommand url
+name "here"
+target "http://unxutils.sourceforge.net"
 
 \end_inset
 
@@ -4294,7 +4688,8 @@ In order to build SDCC with MSVC
 
 \newline
 Download the file UnxUtils
-\begin_inset LatexCommand \index{UnxUtils}
+\begin_inset LatexCommand index
+name "UnxUtils"
 
 \end_inset
 
@@ -4366,7 +4761,7 @@ d) Create a batch file 'bison.bat' in 'C:
 \backslash
 util
 \backslash
-' and add these lines:
+' and add these lines: 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -4374,7 +4769,7 @@ set BISON_SIMPLE=C:
 \backslash
 util
 \backslash
-bison.simple
+bison.simple 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -4452,10 +4847,11 @@ es may not be correctly calculated.
 \family sans
 \series bold
 find .
 \backslash
-( -name '*.obj' -o -name '*.lib' -o -name '*.rul'
+( -name '*.obj' -o -name '*.lib' -o -name '*.rul' 
 \backslash
-) -print -exec rm {}
+) -print -exec rm {} 
 \backslash
 ;
 \family default
@@ -4482,8 +4878,9 @@ Windows Install Using a ZIP Package
 \end_layout
 
 \begin_layout Enumerate
-Download the binary zip package from
-\begin_inset LatexCommand \url{http://sdcc.sf.net/snap.php}
+Download the binary zip package from 
+\begin_inset LatexCommand url
+target "http://sdcc.sf.net/snap.php"
 
 \end_inset
 
@@ -4512,7 +4909,8 @@ Adjust your environment variable PATH to include the location of the bin
 
 \begin_layout Subsection
 Windows Install Using the Setup Program
-\begin_inset LatexCommand \label{sub:Windows-Install}
+\begin_inset LatexCommand label
+name "sub:Windows-Install"
 
 \end_inset
 
@@ -4520,23 +4918,25 @@ Windows Install Using the Setup Program
 \end_layout
 
 \begin_layout Standard
-Download the setup program
+Download the setup program 
 \emph on
 sdcc-x.y.z-setup.exe
 \emph default
- for an official release from
+ for an official release from 
 \newline
 
-\begin_inset LatexCommand \url{http://sf.net/project/showfiles.php?group_id=599}
+\begin_inset LatexCommand url
+target "http://sf.net/project/showfiles.php?group_id=599"
 
 \end_inset
 
- or a setup program for one of the snapshots
+ or a setup program for one of the snapshots 
 \emph on
 sdcc-yyyymmdd-xxxx-setup.exe
 \emph default
- from
-\begin_inset LatexCommand \url{http://sdcc.sf.net/snap.php}
+ from 
+\begin_inset LatexCommand url
+target "http://sdcc.sf.net/snap.php"
 
 \end_inset
 
@@ -4546,7 +4946,8 @@ sdcc-yyyymmdd-xxxx-setup.exe
 
 \begin_layout Subsection
 VPATH
-\begin_inset LatexCommand \index{VPATH}
+\begin_inset LatexCommand index
+name "VPATH"
 
 \end_inset
 
@@ -4636,14 +5037,14 @@ make
 
 \begin_layout Standard
 \noindent
-That's it!
+That's it! 
 \series bold
 configure
 \series default
  will create the directory tree will all the necessary Makefiles in ~/sdcc.build.
  It automagically computes the variables srcdir, top_srcdir and top_buildir
  for each directory.
- After running
+ After running 
 \series bold
 make
 \series default
@@ -4658,6 +5059,7 @@ This is not only usefull for building different binaries, e.g.
  file untouched in the source directory.
  Simply copy it to the build directory, edit it, enter `make clean', `rm
  Makefile.dep' and `make'.
 \series bold
 make
 \series default
@@ -4686,7 +5088,7 @@ status collapsed
  with all the other stuff.
  You will need several tools (LyX, LaTeX, LaTeX2HTML, pdflatex, dvipdf,
  dvips and makeindex) to get the job done.
- Another possibility is to change to the doc directory and to type
+ Another possibility is to change to the doc directory and to type 
 \family sans
 \series bold
 
@@ -4703,14 +5105,16 @@ make
  there.
  You're invited to make changes and additions to this manual (sdcc/doc/sdccman.ly
 x).
- Using LyX
-\begin_inset LatexCommand \url{http://www.lyx.org}
+ Using LyX 
+\begin_inset LatexCommand url
+target "http://www.lyx.org"
 
 \end_inset
 
  as editor is straightforward.
- Prebuilt documentation in html and pdf format is available from
-\begin_inset LatexCommand \url{http://sdcc.sf.net/snap.php}
+ Prebuilt documentation in html and pdf format is available from 
+\begin_inset LatexCommand url
+target "http://sdcc.sf.net/snap.php"
 
 \end_inset
 
@@ -4719,7 +5123,8 @@ x).
 
 \begin_layout Section
 Reading the Documentation
-\begin_inset LatexCommand \index{Documentation}
+\begin_inset LatexCommand index
+name "Documentation"
 
 \end_inset
 
@@ -4740,39 +5145,47 @@ If you should know why please drop us a note
 \end_inset
 
 .
 \newline
 You'll find the pdf version
-\begin_inset LatexCommand \index{PDF version of this document}
+\begin_inset LatexCommand index
+name "PDF version of this document"
 
 \end_inset
 
- at
-\begin_inset LatexCommand \url{http://sdcc.sf.net/doc/sdccman.pdf}
+ at 
+\begin_inset LatexCommand url
+target "http://sdcc.sf.net/doc/sdccman.pdf"
 
 \end_inset
 
 .
 \newline
 A html version
-\begin_inset LatexCommand \index{HTML version of this document}
+\begin_inset LatexCommand index
+name "HTML version of this document"
 
 \end_inset
 
- should be online at
-\begin_inset LatexCommand \url{http://sdcc.sf.net/doc/sdccman.html/index.html}
+ should be online at 
+\begin_inset LatexCommand url
+target "http://sdcc.sf.net/doc/sdccman.html/index.html"
 
 \end_inset
 
 .
 \newline
 This documentation is in some aspects different from a commercial documentation:
 \end_layout
 
 \begin_layout Itemize
 It tries to document SDCC for several processor architectures in one document
  (commercially these probably would be separate documents/products).
  This document
-\begin_inset LatexCommand \index{Status of documentation}
+\begin_inset LatexCommand index
+name "Status of documentation"
 
 \end_inset
 
@@ -4785,33 +5198,35 @@ on about f.e.
 There are many references pointing away from this documentation.
  Don't let this distract you.
  If there f.e.
- was a reference like
-\begin_inset LatexCommand \url{http://www.opencores.org}
+ was a reference like 
+\begin_inset LatexCommand url
+target "http://www.opencores.org"
 
 \end_inset
 
- together with a statement
+ together with a statement 
 \begin_inset Quotes sld
 \end_inset
 
-some processors which are targetted by SDCC can be implemented in a
+some processors which are targetted by SDCC can be implemented in a 
 \emph on
 f
 \emph default
-ield
+ield 
 \emph on
 p
 \emph default
-rogrammable
+rogrammable 
 \emph on
 g
 \emph default
-ate
+ate 
 \emph on
 a
 \emph default
 rray
-\begin_inset LatexCommand \index{FPGA (field programmable gate array)}
+\begin_inset LatexCommand index
+name "FPGA (field programmable gate array)"
 
 \end_inset
 
@@ -4819,17 +5234,19 @@ rray
 \begin_inset Quotes srd
 \end_inset
 
- or
-\begin_inset LatexCommand \url{http://sf.net/projects/fpgac}
+ or 
+\begin_inset LatexCommand url
+target "http://sf.net/projects/fpgac"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{FpgaC ((subset of) C to FPGA compiler)}
+\begin_inset LatexCommand index
+name "FpgaC ((subset of) C to FPGA compiler)"
 
 \end_inset
 
-
 \begin_inset Quotes sld
 \end_inset
 
@@ -4858,7 +5275,8 @@ There are still lots of typos and there are more different writing styles
 
 \begin_layout Section
 Testing the SDCC Compiler
-\begin_inset LatexCommand \label{sec:Testing-the-SDCC}
+\begin_inset LatexCommand label
+name "sec:Testing-the-SDCC"
 
 \end_inset
 
@@ -4868,7 +5286,7 @@ Testing the SDCC Compiler
 \begin_layout Standard
 The first thing you should do after installing your SDCC compiler is to
  see if it runs.
- Type
+ Type 
 \family sans
 \series bold
 "sdcc -
@@ -4885,7 +5303,8 @@ status collapsed
 \end_inset
 
 -version"
-\begin_inset LatexCommand \index{version}
+\begin_inset LatexCommand index
+name "version"
 
 \end_inset
 
@@ -4893,6 +5312,7 @@ status collapsed
 \family default
 \series default
  at the prompt, and the program should run and output its version like:
 \newline
 
 \family typewriter
@@ -4908,8 +5328,9 @@ If it doesn't run, or gives a message about not finding sdcc program, then
 \series medium
 see
 \series default
-section
-\begin_inset LatexCommand \ref{sub:Install-Trouble-shooting}
+ section 
+\begin_inset LatexCommand ref
+reference "sub:Install-Trouble-shooting"
 
 \end_inset
 
@@ -4928,7 +5349,7 @@ Install trouble-shooting for suggestions
 \series medium
 SDCC
 \series default
-is commonly installed as described in section
+ is commonly installed as described in section 
 \begin_inset Quotes sld
 \end_inset
 
@@ -4945,7 +5366,7 @@ Install and search paths
 Make sure the compiler works on a very simple example.
  Type in the following test.c program using your favorite
 \series default
-ASCII
+ ASCII 
 \series medium
 editor:
 \end_layout
@@ -4972,10 +5393,15 @@ test=0;
 
 \series medium
 Compile this using the following command:
+\series default
 \family sans
 \series bold
 "sdcc -c test.c".
+
 \family default
+\series default
 \series medium
 If all goes well, the compiler will generate a test.asm and test.rel file.
  Congratulations, you've just compiled your first program with SDCC.
@@ -4990,6 +5416,8 @@ If all goes well, the compiler will generate a test.asm and test.rel file.
 \series medium
 The next step is to try it with the linker.
  Type in
+\series default
 \family sans
 \series bold
 "sdcc test.c
@@ -5000,19 +5428,28 @@ The next step is to try it with the linker.
 .
  If all goes well the compiler will link with the libraries and produce
  a test.ihx output file.
- If this step fails(no test.ihx, and the linker generates warnings), then
- the problem is most likely that
+ If this step fails
 \series default
-SDCC
 \series medium
- cannot find the
+(no test.ihx, and the linker generates warnings), then the problem is most
+ likely that
 \series default
-/
+ SDCC 
 \series medium
-usr/local/share/sdcc/lib directory(see
+cannot find the
 \series default
-section
-\begin_inset LatexCommand \ref{sub:Install-Trouble-shooting}
+ /
+\series medium
+usr/local/share/sdcc/lib directory
+\series default
+\series medium
+(see
+\series default
+ section 
+\begin_inset LatexCommand ref
+reference "sub:Install-Trouble-shooting"
 
 \end_inset
 
@@ -5029,13 +5466,13 @@ Install trouble-shooting for suggestions).
 \series medium
 The final test is to ensure
 \series default
-SDCC
+ SDCC 
 \series medium
- can use the
+can use the
 \series default
-standard
+ standard 
 \series medium
- header files and libraries.
+header files and libraries.
  Edit test.c and change it to the following:
 \end_layout
 
@@ -5063,6 +5500,8 @@ strcpy(str1, "testing");
 
 \series medium
 Compile this by typing
+\series default
 \family sans
 \series bold
 "sdcc test.c"
@@ -5073,12 +5512,17 @@ Compile this by typing
  such as not finding the string.h file.
  If it cannot find the string.h file, then the problem is that
 \series default
-SDCC
+ SDCC 
 \series medium
- cannot find the /usr/local/share/sdcc/include directory(see the
+cannot find the /usr/local/share/sdcc/include directory
 \series default
-section
-\begin_inset LatexCommand \ref{sub:Install-Trouble-shooting}
+\series medium
+(see the
+\series default
+ section 
+\begin_inset LatexCommand ref
+reference "sub:Install-Trouble-shooting"
 
 \end_inset
 
@@ -5088,7 +5532,7 @@ section
 Install trouble-shooting section for suggestions).
 
 \series default
- Use option
+ Use option 
 \series bold
 -
 \begin_inset ERT
@@ -5106,7 +5550,8 @@ status collapsed
 -print-search-dirs
 \series default
 
-\begin_inset LatexCommand \index{-\/-print-search-dirs}
+\begin_inset LatexCommand index
+name "-\\/-print-search-dirs"
 
 \end_inset
 
@@ -5115,12 +5560,14 @@ status collapsed
 
 \begin_layout Section
 Install Trouble-shooting
-\begin_inset LatexCommand \label{sub:Install-Trouble-shooting}
+\begin_inset LatexCommand label
+name "sub:Install-Trouble-shooting"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Install trouble-shooting}
+\begin_inset LatexCommand index
+name "Install trouble-shooting"
 
 \end_inset
 
@@ -5168,7 +5615,7 @@ If anything goes wrong, you can review the log files to locate the problem.
 \end_layout
 
 \begin_layout Subsection
-What the
+What the 
 \begin_inset Quotes sld
 \end_inset
 
@@ -5180,7 +5627,7 @@ What the
 \end_layout
 
 \begin_layout Standard
-The
+The 
 \begin_inset Quotes sld
 \end_inset
 
@@ -5195,7 +5642,7 @@ The
 \end_layout
 
 \begin_layout Subsection
-What the
+What the 
 \begin_inset Quotes sld
 \end_inset
 
@@ -5212,7 +5659,7 @@ This runs the GNU make tool, which automatically compiles all the source
 \end_layout
 
 \begin_layout Subsection
-What the
+What the 
 \begin_inset Quotes sld
 \end_inset
 
@@ -5226,14 +5673,16 @@ make install
 \begin_layout Standard
 This will install the compiler, other executables libraries and include
  files into the appropriate directories.
- See sections
-\begin_inset LatexCommand \ref{sub:Install-paths}
+ See sections 
+\begin_inset LatexCommand ref
+reference "sub:Install-paths"
 
 \end_inset
 
 ,\InsetSpace ~
 
-\begin_inset LatexCommand \ref{sub:Search-Paths}
+\begin_inset LatexCommand ref
+reference "sub:Search-Paths"
 
 \end_inset
 
@@ -5264,9 +5713,9 @@ You
  At the time of this writing, we find the following programs for gcc-builds:
 \newline
 
 \newline
-In
- <installdir>/bin:
+In <installdir>/bin:
 \end_layout
 
 \begin_layout Itemize
@@ -5286,7 +5735,7 @@ as-z80
 \series bold
 ,
 \series default
-as-gbz80 - The Z80 and GameBoy Z80 assemblers.
+ as-gbz80 - The Z80 and GameBoy Z80 assemblers.
 \end_layout
 
 \begin_layout Itemize
@@ -5298,7 +5747,7 @@ link-z80
 \series bold
 ,
 \series default
-link-gbz80 - The Z80 and GameBoy Z80 linkers.
+ link-gbz80 - The Z80 and GameBoy Z80 linkers.
 \end_layout
 
 \begin_layout Itemize
@@ -5358,17 +5807,20 @@ sdcpp - The C-Preprocessor
 
 \begin_layout Standard
 The preprocessor
-\begin_inset LatexCommand \index{sdcpp (preprocessor)}
+\begin_inset LatexCommand index
+name "sdcpp (preprocessor)"
 
 \end_inset
 
  is a modified version of the GNU cpp
-\begin_inset LatexCommand \index{cpp|see{sdcpp}}
+\begin_inset LatexCommand index
+name "cpp|see{sdcpp}"
 
 \end_inset
 
- preprocessor
-\begin_inset LatexCommand \url{http://gcc.gnu.org/}
+ preprocessor 
+\begin_inset LatexCommand url
+target "http://gcc.gnu.org/"
 
 \end_inset
 
@@ -5402,14 +5854,16 @@ s51 - The Simulator
 
 \begin_layout Standard
 S51
-\begin_inset LatexCommand \index{s51}
+\begin_inset LatexCommand index
+name "s51"
 
 \end_inset
 
  is a free open source simulator developed by Daniel Drotos.
  The simulator is built as part of the build process.
- For more information visit Daniel's web site at:
-\begin_inset LatexCommand \url{http://mazsola.iit.uni-miskolc.hu/~drdani/embedded/s51}
+ For more information visit Daniel's web site at: 
+\begin_inset LatexCommand url
+target "http://mazsola.iit.uni-miskolc.hu/~drdani/embedded/s51"
 
 \end_inset
 
@@ -5424,19 +5878,22 @@ sdcdb - Source Level Debugger
 
 \begin_layout Standard
 SDCDB
-\begin_inset LatexCommand \index{SDCDB (debugger)}
+\begin_inset LatexCommand index
+name "SDCDB (debugger)"
 
 \end_inset
 
  is the companion source level debugger.
- More about SDCDB in section
-\begin_inset LatexCommand \ref{cha:Debugging-with-SDCDB}
+ More about SDCDB in section 
+\begin_inset LatexCommand ref
+reference "cha:Debugging-with-SDCDB"
 
 \end_inset
 
 .
  The current version of the debugger uses Daniel's Simulator S51
-\begin_inset LatexCommand \index{s51}
+\begin_inset LatexCommand index
+name "s51"
 
 \end_inset
 
@@ -5457,7 +5914,7 @@ Single Source File Projects
 
 \begin_layout Standard
 For single source file 8051 projects the process is very simple.
- Compile your programs with the following command
+ Compile your programs with the following command 
 \family sans
 \series bold
 "sdcc sourcefile.c".
@@ -5470,12 +5927,14 @@ For single source file 8051 projects the process is very simple.
 
 \begin_layout Itemize
 sourcefile.asm
-\begin_inset LatexCommand \index{<file>.asm}
+\begin_inset LatexCommand index
+name "<file>.asm"
 
 \end_inset
 
  - Assembler source
-\begin_inset LatexCommand \index{Assembler source}
+\begin_inset LatexCommand index
+name "Assembler source"
 
 \end_inset
 
@@ -5484,12 +5943,14 @@ sourcefile.asm
 
 \begin_layout Itemize
 sourcefile.lst
-\begin_inset LatexCommand \index{<file>.lst}
+\begin_inset LatexCommand index
+name "<file>.lst"
 
 \end_inset
 
  - Assembler listing
-\begin_inset LatexCommand \index{Assembler listing}
+\begin_inset LatexCommand index
+name "Assembler listing"
 
 \end_inset
 
@@ -5498,12 +5959,14 @@ sourcefile.lst
 
 \begin_layout Itemize
 sourcefile.rst
-\begin_inset LatexCommand \index{<file>.rst}
+\begin_inset LatexCommand index
+name "<file>.rst"
 
 \end_inset
 
  - Assembler listing
-\begin_inset LatexCommand \index{Assembler listing}
+\begin_inset LatexCommand index
+name "Assembler listing"
 
 \end_inset
 
@@ -5512,12 +5975,14 @@ sourcefile.rst
 
 \begin_layout Itemize
 sourcefile.sym
-\begin_inset LatexCommand \index{<file>.sym}
+\begin_inset LatexCommand index
+name "<file>.sym"
 
 \end_inset
 
  - symbol listing
-\begin_inset LatexCommand \index{Symbol listing}
+\begin_inset LatexCommand index
+name "Symbol listing"
 
 \end_inset
 
@@ -5526,17 +5991,20 @@ sourcefile.sym
 
 \begin_layout Itemize
 sourcefile.rel
-\begin_inset LatexCommand \index{<file>.rel}
+\begin_inset LatexCommand index
+name "<file>.rel"
 
 \end_inset
 
  or sourcefile.o
-\begin_inset LatexCommand \index{<file>.o}
+\begin_inset LatexCommand index
+name "<file>.o"
 
 \end_inset
 
  - Object file
-\begin_inset LatexCommand \index{Object file}
+\begin_inset LatexCommand index
+name "Object file"
 
 \end_inset
 
@@ -5545,12 +6013,14 @@ sourcefile.rel
 
 \begin_layout Itemize
 sourcefile.map
-\begin_inset LatexCommand \index{<file>.map}
+\begin_inset LatexCommand index
+name "<file>.map"
 
 \end_inset
 
  - The memory map
-\begin_inset LatexCommand \index{Memory map}
+\begin_inset LatexCommand index
+name "Memory map"
 
 \end_inset
 
@@ -5559,7 +6029,8 @@ sourcefile.map
 
 \begin_layout Itemize
 sourcefile.mem
-\begin_inset LatexCommand \index{<file>.mem}
+\begin_inset LatexCommand index
+name "<file>.mem"
 
 \end_inset
 
@@ -5568,17 +6039,20 @@ sourcefile.mem
 
 \begin_layout Itemize
 sourcefile.ihx
-\begin_inset LatexCommand \index{<file>.ihx}
+\begin_inset LatexCommand index
+name "<file>.ihx"
 
 \end_inset
 
  - The load module in Intel hex format
-\begin_inset LatexCommand \index{Intel hex format}
+\begin_inset LatexCommand index
+name "Intel hex format"
 
 \end_inset
 
  (you can select the Motorola S19 format
-\begin_inset LatexCommand \index{Motorola S19 format}
+\begin_inset LatexCommand index
+name "Motorola S19 format"
 
 \end_inset
 
@@ -5596,30 +6070,33 @@ status collapsed
 \end_inset
 
 -out-fmt-s19
-\begin_inset LatexCommand \index{-\/-out-fmt-s19}
+\begin_inset LatexCommand index
+name "-\\/-out-fmt-s19"
 
 \end_inset
 
 .
- If you need another format you might want to use
+ If you need another format you might want to use 
 \family sans
 \shape italic
 objdump
 \family default
 \shape default
 
-\begin_inset LatexCommand \index{objdump (tool)}
+\begin_inset LatexCommand index
+name "objdump (tool)"
 
 \end_inset
 
- or
+ or 
 \family sans
 \shape italic
- srecord
+srecord
 \family default
 \shape default
 
-\begin_inset LatexCommand \index{srecord (bin, hex, ... tool)}
+\begin_inset LatexCommand index
+name "srecord (bin, hex, ... tool)"
 
 \end_inset
 
@@ -5633,14 +6110,16 @@ hyperlinks needed
 
 \end_inset
 
- - see also section
-\begin_inset LatexCommand \vref{sub:Postprocessing-the-Intel}
+ - see also section 
+\begin_inset LatexCommand vref
+reference "sub:Postprocessing-the-Intel"
 
 \end_inset
 
 ).
  Both formats are documented in the documentation of srecord
-\begin_inset LatexCommand \index{srecord (bin, hex, ... tool)}
+\begin_inset LatexCommand index
+name "srecord (bin, hex, ... tool)"
 
 \end_inset
 
@@ -5649,7 +6128,8 @@ hyperlinks needed
 
 \begin_layout Itemize
 sourcefile.adb
-\begin_inset LatexCommand \index{<file>.adb}
+\begin_inset LatexCommand index
+name "<file>.adb"
 
 \end_inset
 
@@ -5668,16 +6148,18 @@ status collapsed
 \end_inset
 
 -debug
-\begin_inset LatexCommand \index{-\/-debug}
+\begin_inset LatexCommand index
+name "-\\/-debug"
 
 \end_inset
 
-)
+) 
 \end_layout
 
 \begin_layout Itemize
 sourcefile.cdb
-\begin_inset LatexCommand \index{<file>.cdb}
+\begin_inset LatexCommand index
+name "<file>.cdb"
 
 \end_inset
 
@@ -5701,17 +6183,20 @@ status collapsed
 \begin_layout Itemize
 sourcefile.
  - (no extension)
-\begin_inset LatexCommand \index{<file> (no extension)}
+\begin_inset LatexCommand index
+name "<file> (no extension)"
 
 \end_inset
 
  An optional AOMF or AOMF51
-\begin_inset LatexCommand \index{AOMF, AOMF51}
+\begin_inset LatexCommand index
+name "AOMF, AOMF51"
 
 \end_inset
 
-
-\begin_inset LatexCommand \label{OMF file}
+\begin_inset LatexCommand label
+name "OMF file"
 
 \end_inset
 
@@ -5729,25 +6214,26 @@ status collapsed
 \end_inset
 
 -debug).
- The (Intel)
+ The (Intel) 
 \emph on
- a
+a
 \emph default
-bsolute
+bsolute 
 \emph on
 o
 \emph default
-bject
+bject 
 \emph on
 m
 \emph default
-odule
+odule 
 \emph on
 f
 \emph default
 ormat is a subformat of the OMF51 format and is commonly used by third party
  tools (debuggers
-\begin_inset LatexCommand \index{Debugger}
+\begin_inset LatexCommand index
+name "Debugger"
 
 \end_inset
 
@@ -5756,7 +6242,8 @@ ormat is a subformat of the OMF51 format and is commonly used by third party
 
 \begin_layout Itemize
 sourcefile.dump*
-\begin_inset LatexCommand \index{<file>.dump*}
+\begin_inset LatexCommand index
+name "<file>.dump*"
 
 \end_inset
 
@@ -5773,14 +6260,16 @@ status collapsed
 
 \end_inset
 
--dumpall) (see section
-\begin_inset LatexCommand \ref{sub:Intermediate-Dump-Options}
+-dumpall) (see section 
+\begin_inset LatexCommand ref
+reference "sub:Intermediate-Dump-Options"
 
 \end_inset
 
 \InsetSpace ~
- and section
-\begin_inset LatexCommand \ref{sub:The-anatomy-of}
+ and section 
+\begin_inset LatexCommand ref
+reference "sub:The-anatomy-of"
 
 \end_inset
 
@@ -5798,12 +6287,14 @@ Anatomy of the compiler
 
 \begin_layout Subsection
 Postprocessing the Intel Hex
-\begin_inset LatexCommand \index{Intel hex format}
+\begin_inset LatexCommand index
+name "Intel hex format"
 
 \end_inset
 
  file
-\begin_inset LatexCommand \label{sub:Postprocessing-the-Intel}
+\begin_inset LatexCommand label
+name "sub:Postprocessing-the-Intel"
 
 \end_inset
 
@@ -5812,52 +6303,58 @@ Postprocessing the Intel Hex
 
 \begin_layout Standard
 In most cases this won't be needed but the Intel Hex file
-\begin_inset LatexCommand \index{<file>.ihx}
+\begin_inset LatexCommand index
+name "<file>.ihx"
 
 \end_inset
 
  which is generated by SDCC might include lines of varying length and the
  addresses within the file are not guaranteed to be strictly ascending.
  If your toolchain or a bootloader does not like this you can use the tool
 \family typewriter
 packihx
 \family default
 
-\begin_inset LatexCommand \index{packihx (tool)}
+\begin_inset LatexCommand index
+name "packihx (tool)"
 
 \end_inset
 
- which is part of the SDCC distribution:
+ which is part of the SDCC distribution: 
 \newline
 
 \newline
-
 \family sans
 \series bold
- packihx sourcefile.ihx >sourcefile.hex
+packihx sourcefile.ihx >sourcefile.hex
 \family default
 \series default
 
 \newline
 
 \newline
-The separately available
+The separately available 
 \emph on
- srecord
+srecord
 \emph default
 
-\begin_inset LatexCommand \index{srecord (bin, hex, ... tool)}
+\begin_inset LatexCommand index
+name "srecord (bin, hex, ... tool)"
 
 \end_inset
 
  package additionally allows to set undefined locations to a predefined
  value, to insert checksums
-\begin_inset LatexCommand \index{checksum}
+\begin_inset LatexCommand index
+name "checksum"
 
 \end_inset
 
  of various flavours (crc, add, xor) and to perform other manipulations
  (convert, split, crop, offset, ...).
 \newline
 
 \newline
@@ -5881,18 +6378,19 @@ status open
 
 \begin_layout Standard
 the command backfills
-\begin_inset LatexCommand \index{backfill unused memory}
+\begin_inset LatexCommand index
+name "backfill unused memory"
 
 \end_inset
 
  unused memory with 0x12 and the overall 16 bit sum of the complete 64 kByte
  block is zero.
  If the program counter on an mcs51 runs wild the backfill pattern 0x12
- will be interpreted as an
+ will be interpreted as an 
 \family typewriter
 lcall
 \family default
- to address
+ to address 
 \family typewriter
 0x1212
 \family default
@@ -5925,8 +6423,9 @@ tive 0xfffe 0x02 0x02\InsetSpace ~
 
 \family default
 \series default
-The srecord package is available at
-\begin_inset LatexCommand \url{http://sf.net/projects/srecord}
+The srecord package is available at 
+\begin_inset LatexCommand url
+target "http://sf.net/projects/srecord"
 
 \end_inset
 
@@ -5958,6 +6457,10 @@ n.c (contains more functions and the function main)
 
 \size default
 The first two files will need to be compiled separately with the commands:
+\size footnotesize
+\size default
+
 \newline
 
 \newline
@@ -5985,16 +6488,17 @@ foo2.c
 \newline
 
 \newline
-Then compile the source file containing the
+Then compile the source file containing the 
 \emph on
 main()
 \emph default
  function and link
-\begin_inset LatexCommand \index{Linker}
+\begin_inset LatexCommand index
+name "Linker"
 
 \end_inset
 
- the files together with the following command:
+ the files together with the following command: 
 \newline
 
 \newline
@@ -6008,7 +6512,8 @@ foo2.rel
 \family default
 \series default
 
-\begin_inset LatexCommand \index{<file>.rel}
+\begin_inset LatexCommand index
+name "<file>.rel"
 
 \end_inset
 
@@ -6016,11 +6521,11 @@ foo2.rel
 \newline
 
 \newline
-Alternatively,
+Alternatively, 
 \emph on
 foomain.c
 \emph default
-can be separately compiled as well:
+ can be separately compiled as well: 
 \family sans
 \series bold
 
@@ -6038,22 +6543,23 @@ sdcc foomain.rel foo1.rel foo2.rel
 
 \family default
 \series default
-The file containing the
+The file containing the 
 \emph on
 main()
 \emph default
- function
+ function 
 \noun on
 must
 \noun default
- be the
+ be the 
 \noun on
 first
 \noun default
  file specified in the command line, since the linkage editor processes
  file in the order they are presented to it.
  The linker is invoked from SDCC using a script file with extension .lnk
-\begin_inset LatexCommand \index{<file>.lnk}
+\begin_inset LatexCommand index
+name "<file>.lnk"
 
 \end_inset
 
@@ -6064,7 +6570,8 @@ first
 
 \begin_layout Subsection
 Projects with Additional Libraries
-\begin_inset LatexCommand \index{Libraries}
+\begin_inset LatexCommand index
+name "Libraries"
 
 \end_inset
 
@@ -6074,10 +6581,11 @@ Projects with Additional Libraries
 \begin_layout Standard
 Some reusable routines may be compiled into a library, see the documentation
  for the assembler and linkage editor (which are in <installdir>/share/sdcc/doc)
- for how to create a
+ for how to create a 
 \emph on
 .lib
-\begin_inset LatexCommand \index{<file>.lib}
+\begin_inset LatexCommand index
+name "<file>.lib"
 
 \end_inset
 
@@ -6087,15 +6595,15 @@ Some reusable routines may be compiled into a library, see the documentation
  Libraries created in this manner can be included in the command line.
  Make sure you include the -L <library-path> option to tell the linker where
  to look for these files if they are not in the current directory.
- Here is an example, assuming you have the source file
+ Here is an example, assuming you have the source file 
 \emph on
 foomain.c
 \emph default
- and a library
+ and a library 
 \emph on
- foolib.lib
+foolib.lib
 \emph default
- in the directory
+ in the directory 
 \emph on
 mylib
 \emph default
@@ -6113,9 +6621,9 @@ sdcc foomain.c foolib.lib -L mylib
 
 \family default
 \series default
-Note here that
+Note here that 
 \emph on
- mylib
+mylib
 \emph default
  must be an absolute path name.
 \newline
@@ -6124,12 +6632,13 @@ Note here that
 The most efficient way to use libraries is
  to keep separate modules in separate source files.
  The lib file now should name all the modules.rel
-\begin_inset LatexCommand \index{<file>.rel}
+\begin_inset LatexCommand index
+name "<file>.rel"
 
 \end_inset
 
  files.
- For an example see the standard library file
+ For an example see the standard library file 
 \emph on
 libsdcc.lib
 \emph default
@@ -6138,7 +6647,8 @@ libsdcc.lib
 
 \begin_layout Subsection
 Using sdcclib to Create and Manage Libraries
-\begin_inset LatexCommand \index{sdcclib}
+\begin_inset LatexCommand index
+name "sdcclib"
 
 \end_inset
 
@@ -6163,7 +6673,8 @@ Alternatively, instead of having a .rel file for each entry on the library
 \family sans
 \series bold
 sdcclib -?
-\begin_inset LatexCommand \index{sdcclib}
+\begin_inset LatexCommand index
+name "sdcclib"
 
 \end_inset
 
@@ -6232,7 +6743,8 @@ This will create files _divsint.rel, _divuint.rel, _modsint.rel, _moduint.rel,
 sdcclib libint.lib _divsint.rel
 \family default
 
-\begin_inset LatexCommand \index{sdcclib}
+\begin_inset LatexCommand index
+name "sdcclib"
 
 \end_inset
 
@@ -6410,7 +6922,8 @@ To see what modules and symbols are included in the library, options -s
 sdcclib -s libint.lib
 \family default
 
-\begin_inset LatexCommand \index{sdcclib}
+\begin_inset LatexCommand index
+name "sdcclib"
 
 \end_inset
 
@@ -6552,7 +7065,8 @@ status collapsed
 \end_inset
 
 -debug
-\begin_inset LatexCommand \index{-\/-debug}
+\begin_inset LatexCommand index
+name "-\\/-debug"
 
 \end_inset
 
@@ -6560,8 +7074,8 @@ status collapsed
  file as well.
  The library files created with sdcclib are plain text files, so they can
  be viewed with a text editor.
- It is not recomended to modify a library file created with sdcclib using
- a text editor, as there are file indexes numbers located accross the file
+ It is not recommended to modify a library file created with sdcclib using
+ a text editor, as there are file indexes numbers located across the file
  used by the linker to quickly locate the required module to link.
  Once a .rel file (as well as a .adb file) is added to a library using sdcclib,
  it can be safely deleted, since all the information required for linking
@@ -6576,12 +7090,14 @@ status collapsed
 
 \begin_layout Section
 Command Line Options
-\begin_inset LatexCommand \index{Command Line Options}
+\begin_inset LatexCommand index
+name "Command Line Options"
 
 \end_inset
 
 
-\begin_inset LatexCommand \label{sec:Command-Line-Options}
+\begin_inset LatexCommand label
+name "sec:Command-Line-Options"
 
 \end_inset
 
@@ -6590,12 +7106,14 @@ Command Line Options
 
 \begin_layout Subsection
 Processor Selection Options
-\begin_inset LatexCommand \index{Options processor selection}
+\begin_inset LatexCommand index
+name "Options processor selection"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Processor selection options}
+\begin_inset LatexCommand index
+name "Processor selection options"
 
 \end_inset
 
@@ -6607,14 +7125,16 @@ Processor Selection Options
 
 \series bold
 -mmcs51
-\begin_inset LatexCommand \index{-mmcs51}
+\begin_inset LatexCommand index
+name "-mmcs51"
 
 \end_inset
 
 
 \series default
  Generate code for the Intel MCS51
-\begin_inset LatexCommand \index{MCS51}
+\begin_inset LatexCommand index
+name "MCS51"
 
 \end_inset
 
@@ -6627,14 +7147,16 @@ Processor Selection Options
 
 \series bold
 -mds390
-\begin_inset LatexCommand \index{-mds390}
+\begin_inset LatexCommand index
+name "-mds390"
 
 \end_inset
 
 
 \series default
  Generate code for the Dallas DS80C390
-\begin_inset LatexCommand \index{DS80C390}
+\begin_inset LatexCommand index
+name "DS80C390"
 
 \end_inset
 
@@ -6646,14 +7168,16 @@ Processor Selection Options
 
 \series bold
 -mds400
-\begin_inset LatexCommand \index{-mds400}
+\begin_inset LatexCommand index
+name "-mds400"
 
 \end_inset
 
 
 \series default
  Generate code for the Dallas DS80C400
-\begin_inset LatexCommand \index{DS80C400}
+\begin_inset LatexCommand index
+name "DS80C400"
 
 \end_inset
 
@@ -6665,14 +7189,16 @@ Processor Selection Options
 
 \series bold
 -mhc08
-\begin_inset LatexCommand \index{-mhc08}
+\begin_inset LatexCommand index
+name "-mhc08"
 
 \end_inset
 
 
 \series default
  Generate code for the Freescale/Motorola HC08
-\begin_inset LatexCommand \index{HC08}
+\begin_inset LatexCommand index
+name "HC08"
 
 \end_inset
 
@@ -6684,14 +7210,16 @@ Processor Selection Options
 
 \series bold
 -mz80
-\begin_inset LatexCommand \index{-mz80}
+\begin_inset LatexCommand index
+name "-mz80"
 
 \end_inset
 
 
 \series default
  Generate code for the Zilog Z80
-\begin_inset LatexCommand \index{Z80}
+\begin_inset LatexCommand index
+name "Z80"
 
 \end_inset
 
@@ -6703,14 +7231,16 @@ Processor Selection Options
 
 \series bold
 -mgbz80
-\begin_inset LatexCommand \index{-mgbz80}
+\begin_inset LatexCommand index
+name "-mgbz80"
 
 \end_inset
 
 
 \series default
  Generate code for the GameBoy Z80
-\begin_inset LatexCommand \index{gbz80 (GameBoy Z80)}
+\begin_inset LatexCommand index
+name "gbz80 (GameBoy Z80)"
 
 \end_inset
 
@@ -6722,25 +7252,29 @@ Processor Selection Options
 
 \series bold
 -mavr
-\begin_inset LatexCommand \index{-mavr}
+\begin_inset LatexCommand index
+name "-mavr"
 
 \end_inset
 
 
 \series default
  Generate code for the Atmel AVR
-\begin_inset LatexCommand \index{AVR}
+\begin_inset LatexCommand index
+name "AVR"
 
 \end_inset
 
  processor (Not maintained, not complete).
- AVR users should probably have a look at winavr
-\begin_inset LatexCommand \url{http://sourceforge.net/projects/winavr}
+ AVR users should probably have a look at winavr 
+\begin_inset LatexCommand url
+target "http://sourceforge.net/projects/winavr"
 
 \end_inset
 
- or
-\begin_inset LatexCommand \url{http://www.avrfreaks.net/index.php?name=PNphpBB2&file=index}
+ or 
+\begin_inset LatexCommand url
+target "http://www.avrfreaks.net/index.php?name=PNphpBB2&file=index"
 
 \end_inset
 
@@ -6767,14 +7301,16 @@ I think it is fair to direct users there for now.
 
 \series bold
 -mpic14
-\begin_inset LatexCommand \index{-mpic14}
+\begin_inset LatexCommand index
+name "-mpic14"
 
 \end_inset
 
 
 \series default
  Generate code for the Microchip PIC 14
-\begin_inset LatexCommand \index{PIC14}
+\begin_inset LatexCommand index
+name "PIC14"
 
 \end_inset
 
@@ -6800,14 +7336,16 @@ p16f627 p16f628 p16f84 p16f873 p16f877?
 
 \series bold
 -mpic16
-\begin_inset LatexCommand \index{-mpic16}
+\begin_inset LatexCommand index
+name "-mpic16"
 
 \end_inset
 
 
 \series default
  Generate code for the Microchip PIC 16
-\begin_inset LatexCommand \index{PIC16}
+\begin_inset LatexCommand index
+name "PIC16"
 
 \end_inset
 
@@ -6822,7 +7360,8 @@ p16f627 p16f628 p16f84 p16f873 p16f877?
 -mtlcs900h
 \series default
  Generate code for the Toshiba TLCS-900H
-\begin_inset LatexCommand \index{TLCS-900H}
+\begin_inset LatexCommand index
+name "TLCS-900H"
 
 \end_inset
 
@@ -6834,14 +7373,16 @@ p16f627 p16f628 p16f84 p16f873 p16f877?
 
 \series bold
 -mxa51
-\begin_inset LatexCommand \index{-mxa51}
+\begin_inset LatexCommand index
+name "-mxa51"
 
 \end_inset
 
 
 \series default
  Generate code for the Phillips XA51
-\begin_inset LatexCommand \index{XA51}
+\begin_inset LatexCommand index
+name "XA51"
 
 \end_inset
 
@@ -6857,17 +7398,20 @@ p16f627 p16f628 p16f84 p16f873 p16f877?
 
 \begin_layout Subsection
 Preprocessor Options
-\begin_inset LatexCommand \index{Options preprocessor}
+\begin_inset LatexCommand index
+name "Options preprocessor"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Preprocessor options}
+\begin_inset LatexCommand index
+name "Preprocessor options"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{sdcpp (preprocessor)}
+\begin_inset LatexCommand index
+name "sdcpp (preprocessor)"
 
 \end_inset
 
@@ -6879,13 +7423,14 @@ Preprocessor Options
 
 \series bold
 -I<path>
-\begin_inset LatexCommand \index{-I<path>}
+\begin_inset LatexCommand index
+name "-I<path>"
 
 \end_inset
 
 
 \series default
- The additional location where the preprocessor will look for <..h> or
+ The additional location where the preprocessor will look for <..h> or 
 \begin_inset Quotes eld
 \end_inset
 
@@ -6901,7 +7446,8 @@ Preprocessor Options
 
 \series bold
 -D<macro[=value]>
-\begin_inset LatexCommand \index{-D<macro[=value]>}
+\begin_inset LatexCommand index
+name "-D<macro[=value]>"
 
 \end_inset
 
@@ -6916,7 +7462,8 @@ Preprocessor Options
 
 \series bold
 -M
-\begin_inset LatexCommand \index{-M}
+\begin_inset LatexCommand index
+name "-M"
 
 \end_inset
 
@@ -6933,7 +7480,8 @@ Preprocessor Options
  The list of rules is printed on standard output instead of the preprocessed
  C program.
  `-M' implies `-E
-\begin_inset LatexCommand \index{-E}
+\begin_inset LatexCommand index
+name "-E"
 
 \end_inset
 
@@ -6945,7 +7493,8 @@ Preprocessor Options
 
 \series bold
 -C
-\begin_inset LatexCommand \index{-C}
+\begin_inset LatexCommand index
+name "-C"
 
 \end_inset
 
@@ -6960,14 +7509,18 @@ Preprocessor Options
 
 \series bold
 -MM
-\begin_inset LatexCommand \index{-MM}
+\begin_inset LatexCommand index
+name "-MM"
 
 \end_inset
 
 
 \series default
+\size large
+\size default
 Like `-M' but the output mentions only the user header files included with
- `#include
+ `#include 
 \begin_inset Quotes eld
 \end_inset
 
@@ -6980,7 +7533,8 @@ file"'.
 
 \series bold
 -Aquestion(answer)
-\begin_inset LatexCommand \index{-Aquestion(answer)}
+\begin_inset LatexCommand index
+name "-Aquestion(answer)"
 
 \end_inset
 
@@ -6997,7 +7551,8 @@ file"'.
 
 \series bold
 -Umacro
-\begin_inset LatexCommand \index{-Umacro}
+\begin_inset LatexCommand index
+name "-Umacro"
 
 \end_inset
 
@@ -7013,7 +7568,8 @@ file"'.
 
 \series bold
 -dM
-\begin_inset LatexCommand \index{-dM}
+\begin_inset LatexCommand index
+name "-dM"
 
 \end_inset
 
@@ -7029,7 +7585,8 @@ file"'.
 
 \series bold
 -dD
-\begin_inset LatexCommand \index{-dD}
+\begin_inset LatexCommand index
+name "-dD"
 
 \end_inset
 
@@ -7044,12 +7601,16 @@ file"'.
 
 \series bold
 -dN
-\begin_inset LatexCommand \index{-dN}
+\begin_inset LatexCommand index
+name "-dN"
 
 \end_inset
 
 
 \series default
+\size large
+\size default
 Like `-dD' except that the macro arguments and contents are omitted.
  Only `#define name' is included in the output.
 \end_layout
@@ -7059,12 +7620,14 @@ Like `-dD' except that the macro arguments and contents are omitted.
 
 \series bold
 -pedantic-parse-number
-\begin_inset LatexCommand \index{pedantic}
+\begin_inset LatexCommand index
+name "pedantic"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{-pedantic-parse-number}
+\begin_inset LatexCommand index
+name "-pedantic-parse-number"
 
 \end_inset
 
@@ -7072,27 +7635,31 @@ Like `-dD' except that the macro arguments and contents are omitted.
 \size large
 \bar under
 
-\begin_inset LatexCommand \label{lyx:-pedantic-parse-number}
+\begin_inset LatexCommand label
+name "lyx:-pedantic-parse-number"
 
 \end_inset
 
 
 \series default
-\size default
 \bar default
+\size default
 Pedantic parse numbers so that situations like 0xfe-LO_B(3) are parsed properly
  and the macro LO_B(3) gets expanded.
- See also #pragma pedantic_parse_number
-\begin_inset LatexCommand \vpageref{ite:pedantic_parse_number}
+ See also #pragma pedantic_parse_number 
+\begin_inset LatexCommand vpageref
+reference "ite:pedantic_parse_number"
 
 \end_inset
 
  in section
-\begin_inset LatexCommand \ref{sec:Pragmas}
+\begin_inset LatexCommand ref
+reference "sec:Pragmas"
 
 \end_inset
 
-
 \emph on
 Note: this functionality is not in conformance with C99 standard!
 \end_layout
@@ -7105,27 +7672,30 @@ Note: this functionality is not in conformance with C99 standard!
 preprocessorOption[,preprocessorOption]
 \series default
 
-\begin_inset LatexCommand \index{-Wp preprocessorOption[,preprocessorOption]}
+\begin_inset LatexCommand index
+name "-Wp preprocessorOption[,preprocessorOption]"
 
 \end_inset
 
 ...
- Pass the preprocessorOption to the preprocessor
+ Pass the preprocessorOption to the preprocessor 
 \family typewriter
 sdcpp
 \family default
 
-\begin_inset LatexCommand \index{sdcpp (preprocessor)}
+\begin_inset LatexCommand index
+name "sdcpp (preprocessor)"
 
 \end_inset
 
 .
- SDCC uses an adapted version of the preprocessor
+ SDCC uses an adapted version of the preprocessor 
 \emph on
 cpp
 \emph default
  of the GNU Compiler Collection
-\begin_inset LatexCommand \index{gcc (GNU Compiler Collection)}
+\begin_inset LatexCommand index
+name "gcc (GNU Compiler Collection)"
 
 \end_inset
 
@@ -7133,8 +7703,9 @@ cpp
 \emph on
 gcc
 \emph default
-
-\begin_inset LatexCommand \url{http://gcc.gnu.org/}
+\begin_inset LatexCommand url
+target "http://gcc.gnu.org/"
 
 \end_inset
 
@@ -7142,8 +7713,9 @@ gcc
 4.1.1\InsetSpace ~
 CPP\InsetSpace ~
 Manual
- at
-\begin_inset LatexCommand \htmlurl{http://www.gnu.org/software/gcc/onlinedocs/}
+ at 
+\begin_inset LatexCommand htmlurl
+target "http://www.gnu.org/software/gcc/onlinedocs/"
 
 \end_inset
 
@@ -7159,12 +7731,14 @@ Manual
 
 \begin_layout Subsection
 Linker Options
-\begin_inset LatexCommand \index{Options linker}
+\begin_inset LatexCommand index
+name "Options linker"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Linker options}
+\begin_inset LatexCommand index
+name "Linker options"
 
 \end_inset
 
@@ -7194,12 +7768,14 @@ status collapsed
 
 \series bold
 -lib-path
-\begin_inset LatexCommand \index{-\/-lib-path <path>}
+\begin_inset LatexCommand index
+name "-\\/-lib-path <path>"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{-L -\/-lib-path}
+\begin_inset LatexCommand index
+name "-L -\\/-lib-path"
 
 \end_inset
 
@@ -7208,7 +7784,8 @@ status collapsed
 \InsetSpace ~
 <absolute path to additional libraries> This option is passed to the linkage
  editor's additional libraries
-\begin_inset LatexCommand \index{Libraries}
+\begin_inset LatexCommand index
+name "Libraries"
 
 \end_inset
 
@@ -7238,13 +7815,15 @@ status collapsed
 -xram-loc
 \series default
 
-\begin_inset LatexCommand \index{-\/-xram-loc <Value>}
+\begin_inset LatexCommand index
+name "-\\/-xram-loc <Value>"
 
 \end_inset
 
 \InsetSpace ~
 <Value> The start location of the external ram
-\begin_inset LatexCommand \index{xdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "xdata (mcs51, ds390 storage class)"
 
 \end_inset
 
@@ -7298,19 +7877,22 @@ status collapsed
 -code-loc
 \series default
 
-\begin_inset LatexCommand \index{-\/-code-loc <Value>}
+\begin_inset LatexCommand index
+name "-\\/-code-loc <Value>"
 
 \end_inset
 
 \InsetSpace ~
 <Value> The start location of the code
-\begin_inset LatexCommand \index{code}
+\begin_inset LatexCommand index
+name "code"
 
 \end_inset
 
  segment, default value 0.
  Note when this option is used the interrupt vector table
-\begin_inset LatexCommand \index{interrupt vector table}
+\begin_inset LatexCommand index
+name "interrupt vector table"
 
 \end_inset
 
@@ -7364,13 +7946,15 @@ status collapsed
 -stack-loc
 \series default
 
-\begin_inset LatexCommand \index{-\/-stack-loc <Value>}
+\begin_inset LatexCommand index
+name "-\\/-stack-loc <Value>"
 
 \end_inset
 
 \InsetSpace ~
 <Value> By default the stack
-\begin_inset LatexCommand \index{stack}
+\begin_inset LatexCommand index
+name "stack"
 
 \end_inset
 
@@ -7410,7 +7994,7 @@ status collapsed
  The provided value should not overlap any other memory areas such as used
  register banks or the data segment and with enough space for the current
  application.
- The
+ The 
 \series bold
 -
 \begin_inset ERT
@@ -7429,12 +8013,13 @@ status collapsed
 \series default
 \InsetSpace ~
 
-\begin_inset LatexCommand \index{-\/-pack-iram}
+\begin_inset LatexCommand index
+name "-\\/-pack-iram"
 
 \end_inset
 
  option (which is now a default setting) will override this setting, so
- you should also specify the
+ you should also specify the 
 \series bold
 -
 \begin_inset ERT
@@ -7453,7 +8038,8 @@ status collapsed
 \series default
 \InsetSpace ~
 
-\begin_inset LatexCommand \index{-\/-no-pack-iram}
+\begin_inset LatexCommand index
+name "-\\/-no-pack-iram"
 
 \end_inset
 
@@ -7480,18 +8066,21 @@ status collapsed
 -xstack-loc
 \series default
 
-\begin_inset LatexCommand \index{-\/-xstack-loc <Value>}
+\begin_inset LatexCommand index
+name "-\\/-xstack-loc <Value>"
 
 \end_inset
 
 \InsetSpace ~
 <Value> By default the external stack
-\begin_inset LatexCommand \index{xstack}
+\begin_inset LatexCommand index
+name "xstack"
 
 \end_inset
 
  is placed after the pdata
-\begin_inset LatexCommand \index{pdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "pdata (mcs51, ds390 storage class)"
 
 \end_inset
 
@@ -7550,13 +8139,15 @@ status collapsed
 -data-loc
 \series default
 
-\begin_inset LatexCommand \index{-\/-data-loc <Value>}
+\begin_inset LatexCommand index
+name "-\\/-data-loc <Value>"
 
 \end_inset
 
 \InsetSpace ~
 <Value> The start location of the internal ram data
-\begin_inset LatexCommand \index{data (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "data (mcs51, ds390 storage class)"
 
 \end_inset
 
@@ -7629,13 +8220,15 @@ status collapsed
 -idata-loc
 \series default
 
-\begin_inset LatexCommand \index{-\/-idata-loc <Value>}
+\begin_inset LatexCommand index
+name "-\\/-idata-loc <Value>"
 
 \end_inset
 
 \InsetSpace ~
 <Value> The start location of the indirectly addressable internal ram
-\begin_inset LatexCommand \index{idata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "idata (mcs51, ds390 storage class)"
 
 \end_inset
 
@@ -7691,12 +8284,13 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value> The start location of the bit
-\begin_inset LatexCommand \index{bit}
+\begin_inset LatexCommand index
+name "bit"
 
 \end_inset
 
  addressable internal ram of the 8051.
- This is
+ This is 
 \emph on
 not
 \emph default
@@ -7723,20 +8317,23 @@ status collapsed
 \end_inset
 
 -out-fmt-ihx
-\begin_inset LatexCommand \index{-\/-out-fmt-ihx}
+\begin_inset LatexCommand index
+name "-\\/-out-fmt-ihx"
 
 \end_inset
 
-
 \series default
 The linker output (final object code) is in Intel Hex format.
-\begin_inset LatexCommand \index{Intel hex format}
+\begin_inset LatexCommand index
+name "Intel hex format"
 
 \end_inset
 
  This is the default option.
  The format itself is documented in the documentation of srecord
-\begin_inset LatexCommand \index{srecord (bin, hex, ... tool)}
+\begin_inset LatexCommand index
+name "srecord (bin, hex, ... tool)"
 
 \end_inset
 
@@ -7761,14 +8358,16 @@ status collapsed
 \end_inset
 
 -out-fmt-s19
-\begin_inset LatexCommand \index{-\/-out-fmt-s19}
+\begin_inset LatexCommand index
+name "-\\/-out-fmt-s19"
 
 \end_inset
 
-
 \series default
 The linker output (final object code) is in Motorola S19 format
-\begin_inset LatexCommand \index{Motorola S19 format}
+\begin_inset LatexCommand index
+name "Motorola S19 format"
 
 \end_inset
 
@@ -7794,25 +8393,29 @@ status collapsed
 \end_inset
 
 -out-fmt-elf
-\begin_inset LatexCommand \index{-\/-out-fmt-s19}
+\begin_inset LatexCommand index
+name "-\\/-out-fmt-s19"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{HC08!Options!-\/-out-fmt-elf}
+\begin_inset LatexCommand index
+name "HC08!Options!-\\/-out-fmt-elf"
 
 \end_inset
 
-
 \series default
 The linker output (final object code) is in ELF format
-\begin_inset LatexCommand \index{ELF format}
+\begin_inset LatexCommand index
+name "ELF format"
 
 \end_inset
 
 .
  (Currently only supported for the HC08
-\begin_inset LatexCommand \index{HC08}
+\begin_inset LatexCommand index
+name "HC08"
 
 \end_inset
 
@@ -7827,13 +8430,20 @@ The linker output (final object code) is in ELF format
 linkOption[,linkOption]
 \series default
 
-\begin_inset LatexCommand \index{-Wl linkOption[,linkOption]}
+\begin_inset LatexCommand index
+name "-Wl linkOption[,linkOption]"
+
+\end_inset
+
+
+\begin_inset LatexCommand label
+name "lyx:-Wl option"
 
 \end_inset
 
 ...
  Pass the linkOption to the linker.
- If a bootloader is used an option like
+ If a bootloader is used an option like 
 \begin_inset Quotes sld
 \end_inset
 
@@ -7843,8 +8453,11 @@ linkOption[,linkOption]
 \end_inset
 
  would be typical to set the start of the code segment.
- See also #pragma constseg and #pragma codeseg in section
-\begin_inset LatexCommand \ref{sec:Pragmas}
+ Either use the double quotes around this option or use no space (e.g.
+ -Wl-bCSEG=0x1000).
+ See also #pragma constseg and #pragma codeseg in section 
+\begin_inset LatexCommand ref
+reference "sec:Pragmas"
 
 \end_inset
 
@@ -7861,12 +8474,14 @@ linkOption[,linkOption]
 
 \begin_layout Subsection
 MCS51 Options
-\begin_inset LatexCommand \index{Options MCS51}
+\begin_inset LatexCommand index
+name "Options MCS51"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{MCS51 options}
+\begin_inset LatexCommand index
+name "MCS51 options"
 
 \end_inset
 
@@ -7891,12 +8506,16 @@ status collapsed
 \end_inset
 
 -model-small
-\begin_inset LatexCommand \index{-\/-model-small}
+\begin_inset LatexCommand index
+name "-\\/-model-small"
 
 \end_inset
 
 
 \series default
+\size large
+\size default
 Generate code for Small Model programs, see section Memory Models for more
  details.
  This is the default model.
@@ -7920,7 +8539,8 @@ status collapsed
 \end_inset
 
 -model-medium
-\begin_inset LatexCommand \index{-\/-model-medium}
+\begin_inset LatexCommand index
+name "-\\/-model-medium"
 
 \end_inset
 
@@ -7951,7 +8571,8 @@ status collapsed
 \end_inset
 
 -model-large
-\begin_inset LatexCommand \index{-\/-model-large}
+\begin_inset LatexCommand index
+name "-\\/-model-large"
 
 \end_inset
 
@@ -7982,21 +8603,24 @@ status collapsed
 \end_inset
 
 -xstack
-\begin_inset LatexCommand \index{-\/-xstack}
+\begin_inset LatexCommand index
+name "-\\/-xstack"
 
 \end_inset
 
 
 \series default
  Uses a pseudo stack in the pdata
-\begin_inset LatexCommand \index{pdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "pdata (mcs51, ds390 storage class)"
 
 \end_inset
 
  area (usually the first 256 bytes in the external ram) for allocating variables
  and passing parameters.
- See section
-\begin_inset LatexCommand \ref{sub:External-Stack}
+ See section 
+\begin_inset LatexCommand ref
+reference "sub:External-Stack"
 
 \end_inset
 
@@ -8025,7 +8649,8 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value>
-\begin_inset LatexCommand \index{-\/-iram-size <Value>}
+\begin_inset LatexCommand index
+name "-\\/-iram-size <Value>"
 
 \end_inset
 
@@ -8054,7 +8679,8 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value>
-\begin_inset LatexCommand \index{-\/-xram-size <Value>}
+\begin_inset LatexCommand index
+name "-\\/-xram-size <Value>"
 
 \end_inset
 
@@ -8083,7 +8709,8 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value>
-\begin_inset LatexCommand \index{-\/-code-size <Value>}
+\begin_inset LatexCommand index
+name "-\\/-code-size <Value>"
 
 \end_inset
 
@@ -8112,7 +8739,8 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value>
-\begin_inset LatexCommand \index{-\/-stack-size <Value>}
+\begin_inset LatexCommand index
+name "-\\/-stack-size <Value>"
 
 \end_inset
 
@@ -8140,7 +8768,8 @@ status collapsed
 \series default
 \InsetSpace ~
 
-\begin_inset LatexCommand \index{-\/-pack-iram}
+\begin_inset LatexCommand index
+name "-\\/-pack-iram"
 
 \end_inset
 
@@ -8170,7 +8799,8 @@ status collapsed
 \series default
 \InsetSpace ~
 
-\begin_inset LatexCommand \index{-\/-no-pack-iram}
+\begin_inset LatexCommand index
+name "-\\/-no-pack-iram"
 
 \end_inset
 
@@ -8198,7 +8828,8 @@ status collapsed
 \series default
 \InsetSpace ~
 
-\begin_inset LatexCommand \index{-\/-acall-ajmp}
+\begin_inset LatexCommand index
+name "-\\/-acall-ajmp"
 
 \end_inset
 
@@ -8218,12 +8849,14 @@ status collapsed
 
 \begin_layout Subsection
 DS390 / DS400 Options
-\begin_inset LatexCommand \index{Options DS390}
+\begin_inset LatexCommand index
+name "Options DS390"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{DS390}
+\begin_inset LatexCommand index
+name "DS390"
 
 \end_inset
 
@@ -8250,13 +8883,18 @@ status collapsed
 -model-flat24
 \series default
 
-\begin_inset LatexCommand \index{DS390!Options!-\/-model-flat24}
+\begin_inset LatexCommand index
+name "DS390!Options!-\\/-model-flat24"
 
 \end_inset
 
+
+\size large
+\size default
 Generate 24-bit flat mode code.
  This is the one and only that the ds390 code generator supports right now
- and is default when using
+ and is default when using 
 \emph on
 -mds390
 \emph default
@@ -8282,7 +8920,8 @@ status collapsed
 \end_inset
 
 -protect-sp-update
-\begin_inset LatexCommand \index{DS390!Options!-\/-protect-sp-update}
+\begin_inset LatexCommand index
+name "DS390!Options!-\\/-protect-sp-update"
 
 \end_inset
 
@@ -8311,13 +8950,14 @@ status collapsed
 -stack-10bit
 \series default
 
-\begin_inset LatexCommand \index{DS390!Options!-\/-stack-10bit}
+\begin_inset LatexCommand index
+name "DS390!Options!-\\/-stack-10bit"
 
 \end_inset
 
  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
- and is default when using
+ and is default when using 
 \emph on
 -mds390
 \emph default
@@ -8334,7 +8974,7 @@ status collapsed
  stack mode.
  It is important to ensure that the processor is in this mode before calling
  any re-entrant functions compiled with this option.
- In principle, this should work with the
+ In principle, this should work with the 
 \emph on
 -
 \begin_inset ERT
@@ -8350,14 +8990,15 @@ status collapsed
 \end_inset
 
 -stack-auto
-\begin_inset LatexCommand \index{-\/-stack-auto}
+\begin_inset LatexCommand index
+name "-\\/-stack-auto"
 
 \end_inset
 
 
 \emph default
  option, but that has not been tested.
- It is incompatible with the
+ It is incompatible with the 
 \emph on
 -
 \begin_inset ERT
@@ -8373,7 +9014,8 @@ status collapsed
 \end_inset
 
 -xstack
-\begin_inset LatexCommand \index{-\/-xstack}
+\begin_inset LatexCommand index
+name "-\\/-xstack"
 
 \end_inset
 
@@ -8381,7 +9023,7 @@ status collapsed
 \emph default
  option.
  It also only makes sense if the processor is in 24 bit contiguous addressing
- mode (see the
+ mode (see the 
 \emph on
 -
 \begin_inset ERT
@@ -8447,7 +9089,8 @@ status collapsed
 \end_inset
 
 -stack-probe
-\begin_inset LatexCommand \index{DS390!Options!-\/-stack-probe}
+\begin_inset LatexCommand index
+name "DS390!Options!-\\/-stack-probe"
 
 \end_inset
 
@@ -8474,13 +9117,15 @@ status open
 \end_inset
 
 -tini-libid
-\begin_inset LatexCommand \index{DS390!Options!-\/-tini-libid}
+\begin_inset LatexCommand index
+name "DS390!Options!-\\/-tini-libid"
 
 \end_inset
 
 
 \series default
  <nnnn> LibraryID used in -mTININative.
 \end_layout
 
 \begin_layout List
@@ -8501,13 +9146,15 @@ status collapsed
 \end_inset
 
 -use-accelerator
-\begin_inset LatexCommand \index{DS390!Options!-\/-use-accelerator}
+\begin_inset LatexCommand index
+name "DS390!Options!-\\/-use-accelerator"
 
 \end_inset
 
 
 \series default
  generate code for DS390 Arithmetic Accelerator.
 \end_layout
 
 \begin_layout Standard
@@ -8519,12 +9166,14 @@ status collapsed
 
 \begin_layout Subsection
 Z80 Options
-\begin_inset LatexCommand \index{Options Z80}
+\begin_inset LatexCommand index
+name "Options Z80"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Z80}
+\begin_inset LatexCommand index
+name "Z80"
 
 \end_inset
 
@@ -8551,10 +9200,15 @@ status collapsed
 -callee-saves-bc
 \series default
 
-\begin_inset LatexCommand \index{Z80!Options!-\/-callee-saves-bc}
+\begin_inset LatexCommand index
+name "Z80!Options!-\\/-callee-saves-bc"
 
 \end_inset
 
+
+\size large
+\size default
 Force a called function to always save BC.
 \end_layout
 
@@ -8578,7 +9232,8 @@ status collapsed
 -no-std-crt0
 \series default
 
-\begin_inset LatexCommand \index{Z80!Options!-\/-no-std-crt0}
+\begin_inset LatexCommand index
+name "Z80!Options!-\\/-no-std-crt0"
 
 \end_inset
 
@@ -8606,7 +9261,8 @@ status collapsed
 -portmode=
 \series default
 <Value>
-\begin_inset LatexCommand \index{Z80!Options!-\/-portmode=<Value>}
+\begin_inset LatexCommand index
+name "Z80!Options!-\\/-portmode=<Value>"
 
 \end_inset
 
@@ -8633,7 +9289,8 @@ status collapsed
 -asm=
 \series default
 <Value>
-\begin_inset LatexCommand \index{Z80!Options!-\/-asm=<Value>}
+\begin_inset LatexCommand index
+name "Z80!Options!-\\/-asm=<Value>"
 
 \end_inset
 
@@ -8661,7 +9318,8 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value>
-\begin_inset LatexCommand \index{Z80!Options!-\/-codeseg <Value>}
+\begin_inset LatexCommand index
+name "Z80!Options!-\\/-codeseg <Value>"
 
 \end_inset
 
@@ -8689,7 +9347,8 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value>
-\begin_inset LatexCommand \index{Z80!Options!-\/-constseg <Value>}
+\begin_inset LatexCommand index
+name "Z80!Options!-\\/-constseg <Value>"
 
 \end_inset
 
@@ -8706,12 +9365,14 @@ status collapsed
 
 \begin_layout Subsection
 GBZ80 Options
-\begin_inset LatexCommand \index{Options GBZ80}
+\begin_inset LatexCommand index
+name "Options GBZ80"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{GBZ80}
+\begin_inset LatexCommand index
+name "GBZ80"
 
 \end_inset
 
@@ -8738,22 +9399,57 @@ status collapsed
 -callee-saves-bc
 \series default
 
-\begin_inset LatexCommand \index{GBZ80!Options!-\/-callee-saves-bc}
+\begin_inset LatexCommand index
+name "GBZ80!Options!-\\/-callee-saves-bc"
 
 \end_inset
 
+
+\size large
+\size default
 Force a called function to always save BC.
 \end_layout
 
 \begin_layout List
 \labelwidthstring 00.00.0000
 
+\series bold
+-
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+/
+\end_layout
+
+\end_inset
+
+-no-std-crt0
+\series default
+
+\begin_inset LatexCommand index
+name "Z80!Options!-\\/-no-std-crt0"
+
+\end_inset
+
+ When linking, skip the standard crt0.o object file.
+ You must provide your own crt0.o for your system when linking.
+\end_layout
+
+\begin_layout List
+\labelwidthstring 00.00.0000
+
 \series bold
 -bo
 \series default
 \InsetSpace ~
 <Num>
-\begin_inset LatexCommand \index{GBZ80!Options!-bo <Num>}
+\begin_inset LatexCommand index
+name "GBZ80!Options!-bo <Num>"
 
 \end_inset
 
@@ -8768,7 +9464,8 @@ Force a called function to always save BC.
 \series default
 \InsetSpace ~
 <Num>
-\begin_inset LatexCommand \index{GBZ80!Options!-ba <Num>}
+\begin_inset LatexCommand index
+name "GBZ80!Options!-ba <Num>"
 
 \end_inset
 
@@ -8796,7 +9493,8 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value>
-\begin_inset LatexCommand \index{GBZ80!Options!-\/-codeseg <Value>}
+\begin_inset LatexCommand index
+name "GBZ80!Options!-\\/-codeseg <Value>"
 
 \end_inset
 
@@ -8824,7 +9522,8 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value>
-\begin_inset LatexCommand \index{GBZ80!Options!-\/-constseg <Value>}
+\begin_inset LatexCommand index
+name "GBZ80!Options!-\\/-constseg <Value>"
 
 \end_inset
 
@@ -8840,12 +9539,14 @@ status collapsed
 
 \begin_layout Subsection
 Optimization Options
-\begin_inset LatexCommand \index{Options optimization}
+\begin_inset LatexCommand index
+name "Options optimization"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Optimization options}
+\begin_inset LatexCommand index
+name "Optimization options"
 
 \end_inset
 
@@ -8870,7 +9571,8 @@ status collapsed
 \end_inset
 
 -nogcse
-\begin_inset LatexCommand \index{-\/-nogcse}
+\begin_inset LatexCommand index
+name "-\\/-nogcse"
 
 \end_inset
 
@@ -8882,12 +9584,13 @@ status collapsed
 \emph on
 s
 \emph default
-pill
+pill 
 \emph on
 loc
 \emph default
 ations, sloc
-\begin_inset LatexCommand \index{sloc (spill location)}
+\begin_inset LatexCommand index
+name "sloc (spill location)"
 
 \end_inset
 
@@ -8896,12 +9599,14 @@ ations, sloc
  will indicate the number of extra bytes it allocated.
  It is recommended that this option NOT be used, #pragma\InsetSpace ~
 nogcse
-\begin_inset LatexCommand \index{\#pragma nogcse}
+\begin_inset LatexCommand index
+name "\\#pragma nogcse"
 
 \end_inset
 
  can be used to turn off global subexpression elimination
-\begin_inset LatexCommand \index{Subexpression elimination}
+\begin_inset LatexCommand index
+name "Subexpression elimination"
 
 \end_inset
 
@@ -8926,7 +9631,8 @@ status collapsed
 \end_inset
 
 -noinvariant
-\begin_inset LatexCommand \index{-\/-noinvariant}
+\begin_inset LatexCommand index
+name "-\\/-noinvariant"
 
 \end_inset
 
@@ -8935,15 +9641,17 @@ status collapsed
  Will not do loop invariant optimizations, this may be turned off for reasons
  explained for the previous option.
  For more details of loop optimizations performed see Loop Invariants in
- section
-\begin_inset LatexCommand \ref{sub:Loop-Optimizations}
+ section 
+\begin_inset LatexCommand ref
+reference "sub:Loop-Optimizations"
 
 \end_inset
 
 .
  It is recommended that this option NOT be used, #pragma\InsetSpace ~
 noinvariant
-\begin_inset LatexCommand \index{\#pragma noinvariant}
+\begin_inset LatexCommand index
+name "\\#pragma noinvariant"
 
 \end_inset
 
@@ -8968,7 +9676,8 @@ status collapsed
 \end_inset
 
 -noinduction
-\begin_inset LatexCommand \index{-\/-noinduction}
+\begin_inset LatexCommand index
+name "-\\/-noinduction"
 
 \end_inset
 
@@ -8978,7 +9687,8 @@ status collapsed
  for more details.
  It is recommended that this option is NOT used, #pragma\InsetSpace ~
 noinduction
-\begin_inset LatexCommand \index{\#pragma noinduction}
+\begin_inset LatexCommand index
+name "\\#pragma noinduction"
 
 \end_inset
 
@@ -9003,20 +9713,26 @@ status collapsed
 \end_inset
 
 -nojtbound
-\begin_inset LatexCommand \index{-\/-nojtbound}
+\begin_inset LatexCommand index
+name "-\\/-nojtbound"
 
 \end_inset
 
 
+\size large
 \series default
+\size default
  Will not generate boundary condition check when switch statements
-\begin_inset LatexCommand \index{switch statement}
+\begin_inset LatexCommand index
+name "switch statement"
 
 \end_inset
 
  are implemented using jump-tables.
- See section
-\begin_inset LatexCommand \ref{sub:'switch'-Statements}
+ See section 
+\begin_inset LatexCommand ref
+reference "sub:'switch'-Statements"
 
 \end_inset
 
@@ -9024,7 +9740,8 @@ status collapsed
 Switch Statements for more details.
  It is recommended that this option is NOT used, #pragma\InsetSpace ~
 nojtbound
-\begin_inset LatexCommand \index{\#pragma nojtbound}
+\begin_inset LatexCommand index
+name "\\#pragma nojtbound"
 
 \end_inset
 
@@ -9050,14 +9767,19 @@ status collapsed
 \end_inset
 
 -noloopreverse
-\begin_inset LatexCommand \index{-\/-noloopreverse}
+\begin_inset LatexCommand index
+name "-\\/-noloopreverse"
 
 \end_inset
 
 
 \series default
-Will not do loop reversal
-\begin_inset LatexCommand \index{Loop reversing}
+\size large
+\size default
+Will not do loop reversal 
+\begin_inset LatexCommand index
+name "Loop reversing"
 
 \end_inset
 
@@ -9083,8 +9805,9 @@ status collapsed
 \series bold
 nolabelopt
 \series default
-
-\begin_inset LatexCommand \index{-\/-nolabelopt }
+\begin_inset LatexCommand index
+name "-\\/-nolabelopt "
 
 \end_inset
 
@@ -9109,7 +9832,8 @@ status collapsed
 \end_inset
 
 -no-xinit-opt
-\begin_inset LatexCommand \index{-\/-no-xinit-opt}
+\begin_inset LatexCommand index
+name "-\\/-no-xinit-opt"
 
 \end_inset
 
@@ -9117,7 +9841,8 @@ status collapsed
 \series default
  Will not memcpy initialized data from code space into xdata space.
  This saves a few bytes in code space if you don't have initialized data
-\begin_inset LatexCommand \index{Variable initialization}
+\begin_inset LatexCommand index
+name "Variable initialization"
 
 \end_inset
 
@@ -9142,7 +9867,8 @@ status collapsed
 \end_inset
 
 -nooverlay
-\begin_inset LatexCommand \index{-\/-nooverlay}
+\begin_inset LatexCommand index
+name "-\\/-nooverlay"
 
 \end_inset
 
@@ -9170,7 +9896,8 @@ status collapsed
 \end_inset
 
 -no-peep
-\begin_inset LatexCommand \index{-\/-no-peep}
+\begin_inset LatexCommand index
+name "-\\/-no-peep"
 
 \end_inset
 
@@ -9199,15 +9926,17 @@ status collapsed
 -peep-file
 \series default
 
-\begin_inset LatexCommand \index{-\/-peep-file}
+\begin_inset LatexCommand index
+name "-\\/-peep-file"
 
 \end_inset
 
 \InsetSpace ~
 <filename> This option can be used to use additional rules to be used by
  the peep hole optimizer.
- See section
-\begin_inset LatexCommand \ref{sub:Peephole-Optimizer}
+ See section 
+\begin_inset LatexCommand ref
+reference "sub:Peephole-Optimizer"
 
 \end_inset
 
@@ -9233,7 +9962,8 @@ status collapsed
 \end_inset
 
 -peep-asm
-\begin_inset LatexCommand \index{-\/-peep-asm}
+\begin_inset LatexCommand index
+name "-\\/-peep-asm"
 
 \end_inset
 
@@ -9242,7 +9972,8 @@ status collapsed
  Pass the inline assembler code through the peep hole optimizer.
  This can cause unexpected changes to inline assembler code, please go through
  the peephole optimizer
-\begin_inset LatexCommand \index{Peephole optimizer}
+\begin_inset LatexCommand index
+name "Peephole optimizer"
 
 \end_inset
 
@@ -9268,7 +9999,8 @@ status collapsed
 \end_inset
 
 -opt-code-speed
-\begin_inset LatexCommand \index{-\/-opt-code-speed}
+\begin_inset LatexCommand index
+name "-\\/-opt-code-speed"
 
 \end_inset
 
@@ -9296,7 +10028,8 @@ status collapsed
 \end_inset
 
 -opt-code-size
-\begin_inset LatexCommand \index{-\/-opt-code-size}
+\begin_inset LatexCommand index
+name "-\\/-opt-code-size"
 
 \end_inset
 
@@ -9315,7 +10048,8 @@ status collapsed
 
 \begin_layout Subsection
 Other Options
-\begin_inset LatexCommand \index{Options other}
+\begin_inset LatexCommand index
+name "Options other"
 
 \end_inset
 
@@ -9341,12 +10075,14 @@ status collapsed
 \end_inset
 
 -compile-only
-\begin_inset LatexCommand \index{-\/-compile-only}
+\begin_inset LatexCommand index
+name "-\\/-compile-only"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{-c -\/-compile-only}
+\begin_inset LatexCommand index
+name "-c -\\/-compile-only"
 
 \end_inset
 
@@ -9377,7 +10113,8 @@ status collapsed
 
 \series bold
 -c1mode
-\begin_inset LatexCommand \index{-\/-c1mode}
+\begin_inset LatexCommand index
+name "-\\/-c1mode"
 
 \end_inset
 
@@ -9392,7 +10129,8 @@ status collapsed
 
 \series bold
 -E
-\begin_inset LatexCommand \index{-E}
+\begin_inset LatexCommand index
+name "-E"
 
 \end_inset
 
@@ -9409,21 +10147,23 @@ status collapsed
 \series bold
 -o\InsetSpace ~
 <path/file>
-\begin_inset LatexCommand \index{-o <path/file>}
+\begin_inset LatexCommand index
+name "-o <path/file>"
 
 \end_inset
 
 
 \series default
-The output path where everything will be placed or the file name used for
+ The output path where everything will be placed or the file name used for
  all generated output files.
  If the parameter is a path, it must have a trailing slash (or backslash
- for the Windows binaries) to be recognized as a path.Note for Windows users:
- if the path contains spaces, it should be surrounded by quotes.
+ for the Windows binaries) to be recognized as a path.
+ Note for Windows users: if the path contains spaces, it should be surrounded
+ by quotes.
  The trailing backslash should be doubled in order to prevent escaping the
- final quote, for example:
+ final quote, for example: 
 \emph on
--o
+-o 
 \begin_inset Quotes sld
 \end_inset
 
@@ -9443,9 +10183,9 @@ output 1
 
 
 \emph default
- or put after the final quote, for example:
+ or put after the final quote, for example: 
 \emph on
--o
+-o 
 \begin_inset Quotes sld
 \end_inset
 
@@ -9465,8 +10205,9 @@ output 1
 \emph default
 .
  The path using slashes for directory delimiters can be used too, for example:
 \emph on
--o
+-o 
 \begin_inset Quotes sld
 \end_inset
 
@@ -9497,30 +10238,37 @@ status collapsed
 \end_inset
 
 -stack-auto
-\begin_inset LatexCommand \index{-\/-stack-auto}
+\begin_inset LatexCommand index
+name "-\\/-stack-auto"
 
 \end_inset
 
 
 \series default
-All functions in the source file will be compiled as
+\size large
+\size default
+All functions in the source file will be compiled as 
 \emph on
 reentrant
 \emph default
 
-\begin_inset LatexCommand \index{reentrant}
+\begin_inset LatexCommand index
+name "reentrant"
 
 \end_inset
 
 , i.e.
  the parameters and local variables will be allocated on the stack
-\begin_inset LatexCommand \index{stack}
+\begin_inset LatexCommand index
+name "stack"
 
 \end_inset
 
 .
- See section
-\begin_inset LatexCommand \ref{sec:Parameters-and-Local-Variables}
+ See section 
+\begin_inset LatexCommand ref
+reference "sec:Parameters-and-Local-Variables"
 
 \end_inset
 
@@ -9562,6 +10310,7 @@ status open
 
 \series default
 -float-reent.
 \end_layout
 
 \begin_layout List
@@ -9582,12 +10331,14 @@ status collapsed
 \end_inset
 
 -callee-saves
-\begin_inset LatexCommand \index{-\/-callee-saves}
+\begin_inset LatexCommand index
+name "-\\/-callee-saves"
 
 \end_inset
 
-
-\begin_inset LatexCommand \label{lyx:--callee-saves-function1[,function2][,function3]...}
+\begin_inset LatexCommand label
+name "lyx:--callee-saves-function1[,function2][,function3]..."
 
 \end_inset
 
@@ -9603,7 +10354,8 @@ function1[,function2][,function3]....
  code will be generated at the entry and exit (function prologue
 \series bold
 
-\begin_inset LatexCommand \index{function prologue}
+\begin_inset LatexCommand index
+name "function prologue"
 
 \end_inset
 
@@ -9612,7 +10364,8 @@ function1[,function2][,function3]....
  and epilogue
 \series bold
 
-\begin_inset LatexCommand \index{function epilogue}
+\begin_inset LatexCommand index
+name "function epilogue"
 
 \end_inset
 
@@ -9642,13 +10395,15 @@ status collapsed
 
 -callee-saves option string.
  Also see #pragma\InsetSpace ~
-callee_saves
-\begin_inset LatexCommand \index{\#pragma callee\_saves}
+callee_saves 
+\begin_inset LatexCommand index
+name "\\#pragma callee\\_saves"
 
 \end_inset
 
-
-\begin_inset LatexCommand \vpageref{ite:callee_saves-function1[,function2[,function3...]]--}
+\begin_inset LatexCommand vpageref
+reference "ite:callee_saves-function1[,function2[,function3...]]--"
 
 \end_inset
 
@@ -9673,13 +10428,14 @@ status collapsed
 \end_inset
 
 -all-callee-saves
-\begin_inset LatexCommand \index{-\/-all-callee-saves}
+\begin_inset LatexCommand index
+name "-\\/-all-callee-saves"
 
 \end_inset
 
 
 \series default
-Function of-
+ Function of -
 \begin_inset ERT
 status collapsed
 
@@ -9713,18 +10469,20 @@ status collapsed
 \end_inset
 
 -debug
-\begin_inset LatexCommand \index{-\/-debug}
+\begin_inset LatexCommand index
+name "-\\/-debug"
 
 \end_inset
 
-
 \series default
 When this option is used the compiler will generate debug information.
  The debug information collected in a file with .cdb extension can be used
  with the SDCDB.
  For more information see documentation for SDCDB.
  Another file with no extension contains debug information in AOMF or AOMF51
-\begin_inset LatexCommand \index{AOMF, AOMF51}
+\begin_inset LatexCommand index
+name "AOMF, AOMF51"
 
 \end_inset
 
@@ -9736,12 +10494,16 @@ When this option is used the compiler will generate debug information.
 
 \series bold
 -S
-\begin_inset LatexCommand \index{-S}
+\begin_inset LatexCommand index
+name "-S"
 
 \end_inset
 
 
 \series default
+\size large
+\size default
 Stop after the stage of compilation proper; do not assemble.
  The output is an assembler code file for the input file specified.
 \end_layout
@@ -9764,7 +10526,8 @@ status collapsed
 \end_inset
 
 -int-long-reent
-\begin_inset LatexCommand \index{-\/-int-long-reent}
+\begin_inset LatexCommand index
+name "-\\/-int-long-reent"
 
 \end_inset
 
@@ -9793,24 +10556,26 @@ status collapsed
 \end_inset
 
 -cyclomatic
-\begin_inset LatexCommand \index{-\/-cyclomatic}
+\begin_inset LatexCommand index
+name "-\\/-cyclomatic"
 
 \end_inset
 
-
 \series default
 This option will cause the compiler to generate an information message for
  each function in the source file.
- The message contains some
+ The message contains some 
 \emph on
 important
 \emph default
  information about the function.
  The number of edges and nodes the compiler detected in the control flow
- graph of the function, and most importantly the
+ graph of the function, and most importantly the 
 \emph on
 cyclomatic complexity
-\begin_inset LatexCommand \index{Cyclomatic complexity}
+\begin_inset LatexCommand index
+name "Cyclomatic complexity"
 
 \end_inset
 
@@ -9837,14 +10602,16 @@ status collapsed
 \end_inset
 
 -float-reent
-\begin_inset LatexCommand \index{-\/-float-reent}
+\begin_inset LatexCommand index
+name "-\\/-float-reent"
 
 \end_inset
 
 
 \series default
  Floating point library is compiled as reentrant
-\begin_inset LatexCommand \index{reentrant}
+\begin_inset LatexCommand index
+name "reentrant"
 
 \end_inset
 
@@ -9870,24 +10637,25 @@ status collapsed
 \end_inset
 
 -funsigned-char
-\begin_inset LatexCommand \index{-\/-funsigned-char}
+\begin_inset LatexCommand index
+name "-\\/-funsigned-char"
 
 \end_inset
 
 
 \series default
- The default signedness for every type is
+ The default signedness for every type is 
 \family typewriter
- signed
+signed
 \family default
 .
- In some embedded environments the default signedness of
+ In some embedded environments the default signedness of 
 \family typewriter
- char
+char
 \family default
- is
+ is 
 \family typewriter
- unsigned
+unsigned
 \family default
 .
  To set the signess for characters to unsigned, use the option -
@@ -9931,7 +10699,8 @@ status collapsed
 \end_inset
 
 -main-return
-\begin_inset LatexCommand \index{-\/-main-return}
+\begin_inset LatexCommand index
+name "-\\/-main-return"
 
 \end_inset
 
@@ -9942,7 +10711,8 @@ status collapsed
  This option results in slightly smaller code and saves two bytes of stack
  space.
  The return from the 'main'
-\begin_inset LatexCommand \index{main return}
+\begin_inset LatexCommand index
+name "main return"
 
 \end_inset
 
@@ -9973,7 +10743,8 @@ status collapsed
 \end_inset
 
 -nostdinc
-\begin_inset LatexCommand \index{-\/-nostdinc}
+\begin_inset LatexCommand index
+name "-\\/-nostdinc"
 
 \end_inset
 
@@ -10001,14 +10772,16 @@ status collapsed
 \end_inset
 
 -nostdlib
-\begin_inset LatexCommand \index{-\/-nostdlib}
+\begin_inset LatexCommand index
+name "-\\/-nostdlib"
 
 \end_inset
 
 
 \series default
  This will prevent the compiler from passing on the default library
-\begin_inset LatexCommand \index{Libraries}
+\begin_inset LatexCommand index
+name "Libraries"
 
 \end_inset
 
@@ -10033,7 +10806,8 @@ status collapsed
 \end_inset
 
 -verbose
-\begin_inset LatexCommand \index{-\/-verbose}
+\begin_inset LatexCommand index
+name "-\\/-verbose"
 
 \end_inset
 
@@ -10047,7 +10821,8 @@ status collapsed
 
 \series bold
 -V
-\begin_inset LatexCommand \index{-V}
+\begin_inset LatexCommand index
+name "-V"
 
 \end_inset
 
@@ -10074,7 +10849,8 @@ status collapsed
 \end_inset
 
 -no-c-code-in-asm
-\begin_inset LatexCommand \index{-\/-no-c-code-in-asm}
+\begin_inset LatexCommand index
+name "-\\/-no-c-code-in-asm"
 
 \end_inset
 
@@ -10102,7 +10878,8 @@ status collapsed
 \end_inset
 
 -fverbose-asm
-\begin_inset LatexCommand \index{-\/-no-gen-comments}
+\begin_inset LatexCommand index
+name "-\\/-no-gen-comments"
 
 \end_inset
 
@@ -10129,7 +10906,8 @@ status collapsed
 \end_inset
 
 -no-peep-comments
-\begin_inset LatexCommand \index{-\/-no-peep-comments}
+\begin_inset LatexCommand index
+name "-\\/-no-peep-comments"
 
 \end_inset
 
@@ -10173,7 +10951,8 @@ status collapsed
 \end_inset
 
 -i-code-in-asm
-\begin_inset LatexCommand \index{-\/-i-code-in-asm}
+\begin_inset LatexCommand index
+name "-\\/-i-code-in-asm"
 
 \end_inset
 
@@ -10201,30 +10980,35 @@ status collapsed
 \end_inset
 
 -less-pedantic
-\begin_inset LatexCommand \index{pedantic}
+\begin_inset LatexCommand index
+name "pedantic"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{-\/-less-pedantic}
+\begin_inset LatexCommand index
+name "-\\/-less-pedantic"
 
 \end_inset
 
 
 \series default
 
-\begin_inset LatexCommand \label{lyx:--less-pedantic}
+\begin_inset LatexCommand label
+name "lyx:--less-pedantic"
 
 \end_inset
 
  Disable some of the more pedantic warnings
-\begin_inset LatexCommand \index{Warnings}
+\begin_inset LatexCommand index
+name "Warnings"
 
 \end_inset
 
 .
- For more details, see the less_pedantic pragma
-\begin_inset LatexCommand \vpageref{ite:less_pedantic}
+ For more details, see the less_pedantic pragma 
+\begin_inset LatexCommand vpageref
+reference "ite:less_pedantic"
 
 \end_inset
 
@@ -10250,7 +11034,8 @@ status collapsed
 
 -disable-warning\InsetSpace ~
 <nnnn>
-\begin_inset LatexCommand \index{-\/-disable-warning}
+\begin_inset LatexCommand index
+name "-\\/-disable-warning"
 
 \end_inset
 
@@ -10277,7 +11062,8 @@ status collapsed
 \end_inset
 
 -Werror
-\begin_inset LatexCommand \index{-\/-Werror}
+\begin_inset LatexCommand index
+name "-\\/-Werror"
 
 \end_inset
 
@@ -10304,7 +11090,8 @@ status collapsed
 \end_inset
 
 -print-search-dirs
-\begin_inset LatexCommand \index{-\/-print-search-dirs}
+\begin_inset LatexCommand index
+name "-\\/-print-search-dirs"
 
 \end_inset
 
@@ -10331,7 +11118,8 @@ status collapsed
 \end_inset
 
 -vc
-\begin_inset LatexCommand \index{-\/-vc}
+\begin_inset LatexCommand index
+name "-\\/-vc"
 
 \end_inset
 
@@ -10339,13 +11127,15 @@ status collapsed
 \series default
  Display errors and warnings using MSVC style, so you can use SDCC with
  the visual studio IDE
-\begin_inset LatexCommand \index{IDE}
+\begin_inset LatexCommand index
+name "IDE"
 
 \end_inset
 
 .
  With SDCC both offering a GCC-like (the default) and a MSVC-like
-\begin_inset LatexCommand \index{MSVC output style}
+\begin_inset LatexCommand index
+name "MSVC output style"
 
 \end_inset
 
@@ -10371,7 +11161,8 @@ status collapsed
 \end_inset
 
 -use-stdout
-\begin_inset LatexCommand \index{-\/-use-stdout}
+\begin_inset LatexCommand index
+name "-\\/-use-stdout"
 
 \end_inset
 
@@ -10388,18 +11179,21 @@ status collapsed
 asmOption[,asmOption]
 \series default
 
-\begin_inset LatexCommand \index{-Wa asmOption[,asmOption]}
+\begin_inset LatexCommand index
+name "-Wa asmOption[,asmOption]"
 
 \end_inset
 
 ...
  Pass the asmOption to the assembler
-\begin_inset LatexCommand \index{Options assembler}
+\begin_inset LatexCommand index
+name "Options assembler"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Assembler options}
+\begin_inset LatexCommand index
+name "Assembler options"
 
 \end_inset
 
@@ -10425,7 +11219,8 @@ status collapsed
 \end_inset
 
 -std-sdcc89
-\begin_inset LatexCommand \index{-\/-std-sdcc89}
+\begin_inset LatexCommand index
+name "-\\/-std-sdcc89"
 
 \end_inset
 
@@ -10453,7 +11248,8 @@ status collapsed
 \end_inset
 
 -std-c89
-\begin_inset LatexCommand \index{-\/-std-c89}
+\begin_inset LatexCommand index
+name "-\\/-std-c89"
 
 \end_inset
 
@@ -10481,7 +11277,8 @@ status collapsed
 \end_inset
 
 -std-sdcc99
-\begin_inset LatexCommand \index{-\/-std-sdcc99}
+\begin_inset LatexCommand index
+name "-\\/-std-sdcc99"
 
 \end_inset
 
@@ -10509,7 +11306,8 @@ status collapsed
 \end_inset
 
 -std-c99
-\begin_inset LatexCommand \index{-\/-std-sdcc99}
+\begin_inset LatexCommand index
+name "-\\/-std-sdcc99"
 
 \end_inset
 
@@ -10539,13 +11337,21 @@ status collapsed
 -codeseg
 \series default
 
-\begin_inset LatexCommand \index{-\/-codeseg <Value>}
+\begin_inset LatexCommand index
+name "-\\/-codeseg <Value>"
+
+\end_inset
+
+
+\begin_inset LatexCommand label
+name "lyx:-codeseg"
 
 \end_inset
 
 \InsetSpace ~
 <Name> The name to be used for the code
-\begin_inset LatexCommand \index{code}
+\begin_inset LatexCommand index
+name "code"
 
 \end_inset
 
@@ -10577,13 +11383,15 @@ status collapsed
 -constseg
 \series default
 
-\begin_inset LatexCommand \index{-\/-constseg <Value>}
+\begin_inset LatexCommand index
+name "-\\/-constseg <Value>"
 
 \end_inset
 
 \InsetSpace ~
 <Name> The name to be used for the const
-\begin_inset LatexCommand \index{const}
+\begin_inset LatexCommand index
+name "const"
 
 \end_inset
 
@@ -10613,7 +11421,8 @@ status collapsed
 \end_inset
 
 -fdollars-in-identifiers
-\begin_inset LatexCommand \index{-\/-fdollars-in-identifiers}
+\begin_inset LatexCommand index
+name "-\\/-fdollars-in-identifiers"
 
 \end_inset
 
@@ -10642,52 +11451,59 @@ status collapsed
 -more-pedantic
 \series default
 
-\begin_inset LatexCommand \index{-\/-more-pedantic}
+\begin_inset LatexCommand index
+name "-\\/-more-pedantic"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{pedantic}
+\begin_inset LatexCommand index
+name "pedantic"
 
 \end_inset
 
- Actually this is
+ Actually this is 
 \series bold
 \emph on
 not
 \series default
 \emph default
- a SDCC compiler option but if you want
+ a SDCC compiler option but if you want 
 \emph on
 more
 \emph default
  warnings you can use a separate tool dedicated to syntax checking like
  splint
-\begin_inset LatexCommand \label{lyx:more-pedantic-SPLINT}
+\begin_inset LatexCommand label
+name "lyx:more-pedantic-SPLINT"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{lint (syntax checking tool)}
+\begin_inset LatexCommand index
+name "lint (syntax checking tool)"
 
 \end_inset
 
-
-\begin_inset LatexCommand \url{http://www.splint.org}
+\begin_inset LatexCommand url
+target "http://www.splint.org"
 
 \end_inset
 
 .
  To make your source files parseable by splint you will have to include
 \family sans
 lint.h
 \family default
 
-\begin_inset LatexCommand \index{splint (syntax checking tool)}
+\begin_inset LatexCommand index
+name "splint (syntax checking tool)"
 
 \end_inset
 
- in your source file and add brackets around extended keywords (like
+ in your source file and add brackets around extended keywords (like 
 \family sans
 
 \begin_inset Quotes sld
@@ -10708,7 +11524,7 @@ __at\InsetSpace ~
 
 
 \family default
- and
+ and 
 \family sans
 
 \begin_inset Quotes sld
@@ -10722,15 +11538,17 @@ __interrupt\InsetSpace ~
 
 \family default
 ).
 \newline
-Splint has an excellent on line manual at
-\begin_inset LatexCommand \url{http://www.splint.org/manual/}
+Splint has an excellent on line manual at 
+\begin_inset LatexCommand url
+target "http://www.splint.org/manual/"
 
 \end_inset
 
  and it's capabilities go beyond pure syntax checking.
  You'll need to tell splint the location of SDCC's include files so a typical
- command line could look like this:
+ command line could look like this: 
 \newline
 
 \family sans
@@ -10761,18 +11579,21 @@ status collapsed
 -short-is-8bits
 \series default
 
-\begin_inset LatexCommand \index{-\/-short-is-8bits}
+\begin_inset LatexCommand index
+name "-\\/-short-is-8bits"
 
 \end_inset
 
 
-\begin_inset LatexCommand \label{lyx:--short-is-8bits}
+\begin_inset LatexCommand label
+name "lyx:--short-is-8bits"
 
 \end_inset
 
  Treat short as 8-bit (for backward compatibility with older versions of
- compiler - see section
-\begin_inset LatexCommand \ref{sec:Compatibility-with-previous}
+ compiler - see section 
+\begin_inset LatexCommand ref
+reference "sec:Compatibility-with-previous"
 
 \end_inset
 
@@ -10788,17 +11609,20 @@ status collapsed
 
 \begin_layout Subsection
 Intermediate Dump Options
-\begin_inset LatexCommand \label{sub:Intermediate-Dump-Options}
+\begin_inset LatexCommand label
+name "sub:Intermediate-Dump-Options"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Options intermediate dump}
+\begin_inset LatexCommand index
+name "Options intermediate dump"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Intermediate dump options}
+\begin_inset LatexCommand index
+name "Intermediate dump options"
 
 \end_inset
 
@@ -10809,18 +11633,20 @@ Intermediate Dump Options
 The following options are provided for the purpose of retargetting and debugging
  the compiler.
  They provide a means to dump the intermediate code (iCode
-\begin_inset LatexCommand \index{iCode}
+\begin_inset LatexCommand index
+name "iCode"
 
 \end_inset
 
 ) generated by the compiler in human readable form at various stages of
  the compilation process.
- More on iCodes see chapter
-\begin_inset LatexCommand \ref{sub:The-anatomy-of}
+ More on iCodes see chapter 
+\begin_inset LatexCommand ref
+reference "sub:The-anatomy-of"
 
 \end_inset
 
-
 \begin_inset Quotes srd
 \end_inset
 
@@ -10849,21 +11675,23 @@ status collapsed
 \end_inset
 
 -dumpraw
-\begin_inset LatexCommand \index{-\/-dumpraw}
+\begin_inset LatexCommand index
+name "-\\/-dumpraw"
 
 \end_inset
 
 
 \series default
  This option will cause the compiler to dump the intermediate code into
- a file of named
+ a file of named 
 \emph on
 <source filename>.dumpraw
 \emph default
  just after the intermediate code has been generated for a function, i.e.
  before any optimizations are done.
  The basic blocks
-\begin_inset LatexCommand \index{Basic blocks}
+\begin_inset LatexCommand index
+name "Basic blocks"
 
 \end_inset
 
@@ -10889,18 +11717,20 @@ status collapsed
 \end_inset
 
 -dumpgcse
-\begin_inset LatexCommand \index{-\/-dumpgcse}
+\begin_inset LatexCommand index
+name "-\\/-dumpgcse"
 
 \end_inset
 
 
 \series default
  Will create a dump of iCodes, after global subexpression elimination
-\begin_inset LatexCommand \index{Global subexpression elimination}
+\begin_inset LatexCommand index
+name "Global subexpression elimination"
 
 \end_inset
 
-, into a file named
+, into a file named 
 \emph on
 <source filename>.dumpgcse.
 \end_layout
@@ -10923,18 +11753,20 @@ status collapsed
 \end_inset
 
 -dumpdeadcode
-\begin_inset LatexCommand \index{-\/-dumpdeadcode}
+\begin_inset LatexCommand index
+name "-\\/-dumpdeadcode"
 
 \end_inset
 
 
 \series default
  Will create a dump of iCodes, after deadcode elimination
-\begin_inset LatexCommand \index{Dead-code elimination}
+\begin_inset LatexCommand index
+name "Dead-code elimination"
 
 \end_inset
 
-, into a file named
+, into a file named 
 \emph on
 <source filename>.dumpdeadcode.
 \end_layout
@@ -10957,18 +11789,23 @@ status collapsed
 \end_inset
 
 -dumploop
-\begin_inset LatexCommand \index{-\/-dumploop}
+\begin_inset LatexCommand index
+name "-\\/-dumploop"
 
 \end_inset
 
 
 \series default
+\size large
+\size default
 Will create a dump of iCodes, after loop optimizations
-\begin_inset LatexCommand \index{Loop optimization}
+\begin_inset LatexCommand index
+name "Loop optimization"
 
 \end_inset
 
-, into a file named
+, into a file named 
 \emph on
 <source filename>.dumploop.
 \end_layout
@@ -10991,18 +11828,23 @@ status collapsed
 \end_inset
 
 -dumprange
-\begin_inset LatexCommand \index{-\/-dumprange}
+\begin_inset LatexCommand index
+name "-\\/-dumprange"
 
 \end_inset
 
 
 \series default
+\size large
+\size default
 Will create a dump of iCodes, after live range analysis
-\begin_inset LatexCommand \index{Live range analysis}
+\begin_inset LatexCommand index
+name "Live range analysis"
 
 \end_inset
 
-, into a file named
+, into a file named 
 \emph on
 <source filename>.dumprange.
 \end_layout
@@ -11025,14 +11867,16 @@ status collapsed
 \end_inset
 
 -dumlrange
-\begin_inset LatexCommand \index{-\/-dumlrange}
+\begin_inset LatexCommand index
+name "-\\/-dumlrange"
 
 \end_inset
 
 
 \series default
  Will dump the life ranges
-\begin_inset LatexCommand \index{Live range analysis}
+\begin_inset LatexCommand index
+name "Live range analysis"
 
 \end_inset
 
@@ -11057,18 +11901,20 @@ status collapsed
 \end_inset
 
 -dumpregassign
-\begin_inset LatexCommand \index{-\/-dumpregassign}
+\begin_inset LatexCommand index
+name "-\\/-dumpregassign"
 
 \end_inset
 
-
 \series default
 Will create a dump of iCodes, after register assignment
-\begin_inset LatexCommand \index{Register assignment}
+\begin_inset LatexCommand index
+name "Register assignment"
 
 \end_inset
 
-, into a file named
+, into a file named 
 \emph on
 <source filename>.dumprassgn.
 \end_layout
@@ -11091,7 +11937,8 @@ status collapsed
 \end_inset
 
 -dumplrange
-\begin_inset LatexCommand \index{-\/-dumplrange}
+\begin_inset LatexCommand index
+name "-\\/-dumplrange"
 
 \end_inset
 
@@ -11118,12 +11965,16 @@ status collapsed
 \end_inset
 
 -dumpall
-\begin_inset LatexCommand \index{-\/-dumpall}
+\begin_inset LatexCommand index
+name "-\\/-dumpall"
 
 \end_inset
 
 
+\size large
 \series default
+\size default
 Will cause all the above mentioned dumps to be created.
 \end_layout
 
@@ -11139,7 +11990,7 @@ Redirecting output on Windows Shells
 \end_layout
 
 \begin_layout Standard
-By default SDCC writes its error messages to
+By default SDCC writes its error messages to 
 \begin_inset Quotes sld
 \end_inset
 
@@ -11148,7 +11999,7 @@ standard error
 \end_inset
 
 .
- To force all messages to
+ To force all messages to 
 \begin_inset Quotes sld
 \end_inset
 
@@ -11156,7 +12007,7 @@ standard output
 \begin_inset Quotes srd
 \end_inset
 
- use
+ use 
 \series bold
 -
 \series default
@@ -11180,7 +12031,8 @@ status collapsed
 -
 \series default
 use-stdout
-\begin_inset LatexCommand \index{-\/-use-stdout}
+\begin_inset LatexCommand index
+name "-\\/-use-stdout"
 
 \end_inset
 
@@ -11205,7 +12057,8 @@ status collapsed
 
 \emph default
 -vc
-\begin_inset LatexCommand \index{-\/-vc}
+\begin_inset LatexCommand index
+name "-\\/-vc"
 
 \end_inset
 
@@ -11271,7 +12124,8 @@ status collapsed
 
 \begin_layout Section
 Environment variables
-\begin_inset LatexCommand \index{Environment variables}
+\begin_inset LatexCommand index
+name "Environment variables"
 
 \end_inset
 
@@ -11287,14 +12141,16 @@ SDCC recognizes the following environment variables:
 
 \series bold
 SDCC_LEAVE_SIGNALS
-\begin_inset LatexCommand \index{SDCC\_LEAVE\_SIGNALS}
+\begin_inset LatexCommand index
+name "SDCC\\_LEAVE\\_SIGNALS"
 
 \end_inset
 
 
 \series default
  SDCC installs a signal handler
-\begin_inset LatexCommand \index{signal handler}
+\begin_inset LatexCommand index
+name "signal handler"
 
 \end_inset
 
@@ -11310,7 +12166,8 @@ SDCC_LEAVE_SIGNALS
 TMP,\InsetSpace ~
 TEMP,\InsetSpace ~
 TMPDIR
-\begin_inset LatexCommand \index{TMP, TEMP, TMPDIR}
+\begin_inset LatexCommand index
+name "TMP, TEMP, TMPDIR"
 
 \end_inset
 
@@ -11328,14 +12185,16 @@ TMPDIR
 
 \series bold
 SDCC_HOME
-\begin_inset LatexCommand \index{SDCC\_HOME}
+\begin_inset LatexCommand index
+name "SDCC\\_HOME"
 
 \end_inset
 
 
 \series default
- Path, see section
-\begin_inset LatexCommand \ref{sub:Install-paths}
+ Path, see section 
+\begin_inset LatexCommand ref
+reference "sub:Install-paths"
 
 \end_inset
 
@@ -11356,14 +12215,16 @@ SDCC_HOME
 
 \series bold
 SDCC_INCLUDE
-\begin_inset LatexCommand \index{SDCC\_INCLUDE}
+\begin_inset LatexCommand index
+name "SDCC\\_INCLUDE"
 
 \end_inset
 
 
 \series default
- Path, see section
-\begin_inset LatexCommand \ref{sub:Search-Paths}
+ Path, see section 
+\begin_inset LatexCommand ref
+reference "sub:Search-Paths"
 
 \end_inset
 
@@ -11384,14 +12245,16 @@ Search Paths
 
 \series bold
 SDCC_LIB
-\begin_inset LatexCommand \index{SDCC\_LIB}
+\begin_inset LatexCommand index
+name "SDCC\\_LIB"
 
 \end_inset
 
 
 \series default
- Path, see section
-\begin_inset LatexCommand \ref{sub:Search-Paths}
+ Path, see section 
+\begin_inset LatexCommand ref
+reference "sub:Search-Paths"
 
 \end_inset
 
@@ -11423,7 +12286,8 @@ Storage Class Language Extensions
 
 \begin_layout Subsection
 MCS51/DS390 Storage Class
-\begin_inset LatexCommand \index{Storage class}
+\begin_inset LatexCommand index
+name "Storage class"
 
 \end_inset
 
@@ -11437,22 +12301,26 @@ In addition to the ANSI storage classes SDCC allows the following MCS51
 
 \begin_layout Subsubsection
 data
-\begin_inset LatexCommand \index{data (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "data (mcs51, ds390 storage class)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_data (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "\\_\\_data (mcs51, ds390 storage class)"
 
 \end_inset
 
  / near
-\begin_inset LatexCommand \index{near (storage class)}
+\begin_inset LatexCommand index
+name "near (storage class)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_near (storage class)}
+\begin_inset LatexCommand index
+name "\\_\\_near (storage class)"
 
 \end_inset
 
@@ -11460,7 +12328,7 @@ data
 \end_layout
 
 \begin_layout Standard
-This is the
+This is the 
 \series bold
 default
 \series default
@@ -11468,15 +12336,15 @@ default
 \emph on
 data
 \emph default
- and
+ and 
 \emph on
 near
 \emph default
- or the more ANSI-C compliant forms
+ or the more ANSI-C compliant forms 
 \emph on
 __data
 \emph default
- and
+ and 
 \emph on
 __near
 \emph default
@@ -11508,22 +12376,26 @@ _test_data,#0x01
 
 \begin_layout Subsubsection
 xdata
-\begin_inset LatexCommand \index{xdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "xdata (mcs51, ds390 storage class)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_xdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "\\_\\_xdata (mcs51, ds390 storage class)"
 
 \end_inset
 
  / far
-\begin_inset LatexCommand \index{far (storage class)}
+\begin_inset LatexCommand index
+name "far (storage class)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_far (storage class)}
+\begin_inset LatexCommand index
+name "\\_\\_far (storage class)"
 
 \end_inset
 
@@ -11533,7 +12405,7 @@ xdata
 \begin_layout Standard
 Variables declared with this storage class will be placed in the external
  RAM.
- This is the
+ This is the 
 \series bold
 default
 \series default
@@ -11558,7 +12430,7 @@ Writing 0x01 to this variable generates the assembly code:
 \InsetSpace ~
 mov\InsetSpace ~
 \InsetSpace ~
-dptr,#_test_xdata
+dptr,#_test_xdata 
 \newline
 74\InsetSpace ~
 01\InsetSpace ~
@@ -11569,7 +12441,7 @@ dptr,#_test_xdata
 \InsetSpace ~
 mov\InsetSpace ~
 \InsetSpace ~
-a,#0x01
+a,#0x01 
 \newline
 F0\InsetSpace ~
 \InsetSpace ~
@@ -11581,17 +12453,19 @@ F0\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 movx\InsetSpace ~
-@dptr,a
+@dptr,a 
 \end_layout
 
 \begin_layout Subsubsection
 idata
-\begin_inset LatexCommand \index{idata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "idata (mcs51, ds390 storage class)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_idata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "\\_\\_idata (mcs51, ds390 storage class)"
 
 \end_inset
 
@@ -11646,7 +12520,8 @@ Please note, the first 128 byte of idata physically access the same RAM
  The original 8051 had 128 byte idata memory, nowadays most devices have
  256 byte idata memory.
  The stack
-\begin_inset LatexCommand \index{stack}
+\begin_inset LatexCommand index
+name "stack"
 
 \end_inset
 
@@ -11655,12 +12530,14 @@ Please note, the first 128 byte of idata physically access the same RAM
 
 \begin_layout Subsubsection
 pdata
-\begin_inset LatexCommand \index{pdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "pdata (mcs51, ds390 storage class)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_pdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "\\_\\_pdata (mcs51, ds390 storage class)"
 
 \end_inset
 
@@ -11674,19 +12551,21 @@ Paged xdata access is just as straightforward as using the other addressing
  256 bytes.
  The following example writes 0x01 to the pdata variable.
  Please note, pdata access physically accesses xdata memory.
- The high byte of the address is determined by port P2
-\begin_inset LatexCommand \index{P2 (mcs51 sfr)}
+ The high byte of the address is determined by port P2 
+\begin_inset LatexCommand index
+name "P2 (mcs51 sfr)"
 
 \end_inset
 
 (or in case of some 8051 variants by a separate Special Function Register,
- see section
-\begin_inset LatexCommand \ref{sub:MCS51-variants}
+ see section 
+\begin_inset LatexCommand ref
+reference "sub:MCS51-variants"
 
 \end_inset
 
 ).
- This is the
+ This is the 
 \series bold
 default
 \series default
@@ -11720,7 +12599,7 @@ mov r0,#_test_pdata
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-mov a,#0x01
+mov a,#0x01 
 \newline
 F2\InsetSpace ~
 \InsetSpace ~
@@ -11749,7 +12628,8 @@ status collapsed
 \end_inset
 
 -xstack
-\begin_inset LatexCommand \index{-\/-xstack}
+\begin_inset LatexCommand index
+name "-\\/-xstack"
 
 \end_inset
 
@@ -11759,12 +12639,14 @@ status collapsed
 
 \begin_layout Subsubsection
 code
-\begin_inset LatexCommand \index{code}
+\begin_inset LatexCommand index
+name "code"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_code}
+\begin_inset LatexCommand index
+name "\\_\\_code"
 
 \end_inset
 
@@ -11814,7 +12696,7 @@ clr a
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-movc a,@a+dptr
+movc a,@a+dptr 
 \end_layout
 
 \begin_layout Standard
@@ -11828,7 +12710,7 @@ char
 \begin_layout Verse
 
 \family typewriter
-__code char test_array[] = {'c','h','e','a','p'};
+__code char test_array[] = {'c','h','e','a','p'}; 
 \end_layout
 
 \begin_layout Standard
@@ -11845,7 +12727,7 @@ E5*00\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-mov a,_index
+mov a,_index 
 \end_layout
 
 \begin_layout Verse
@@ -11869,17 +12751,19 @@ mov dptr,#_test_array
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-movc a,@a+dptr
+movc a,@a+dptr 
 \end_layout
 
 \begin_layout Subsubsection
 bit
-\begin_inset LatexCommand \index{bit}
+\begin_inset LatexCommand index
+name "bit"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_bit}
+\begin_inset LatexCommand index
+name "\\_\\_bit"
 
 \end_inset
 
@@ -11919,10 +12803,12 @@ _test_bit
 \begin_layout Standard
 The bit addressable memory consists of 128 bits which are located from 0x20
  to 0x2f in data memory.
 \newline
-Apart from this 8051 specific storage class most
- architectures support ANSI-C bitfields
-\begin_inset LatexCommand \index{bitfields}
+Apart from this 8051 specific storage class most architectures support
+ ANSI-C bitfields
+\begin_inset LatexCommand index
+name "bitfields"
 
 \end_inset
 
@@ -11944,42 +12830,50 @@ Not really meant as examples, but nevertheless showing what bitfields are
 
 \begin_layout Subsubsection
 sfr
-\begin_inset LatexCommand \index{sfr}
+\begin_inset LatexCommand index
+name "sfr"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_sfr}
+\begin_inset LatexCommand index
+name "\\_\\_sfr"
 
 \end_inset
 
  / sfr16
-\begin_inset LatexCommand \index{sfr16}
+\begin_inset LatexCommand index
+name "sfr16"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_sfr16}
+\begin_inset LatexCommand index
+name "\\_\\_sfr16"
 
 \end_inset
 
  / sfr32
-\begin_inset LatexCommand \index{sfr32}
+\begin_inset LatexCommand index
+name "sfr32"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_sfr32}
+\begin_inset LatexCommand index
+name "\\_\\_sfr32"
 
 \end_inset
 
  / sbit
-\begin_inset LatexCommand \index{\_\_sbit}
+\begin_inset LatexCommand index
+name "\\_\\_sbit"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{sbit}
+\begin_inset LatexCommand index
+name "sbit"
 
 \end_inset
 
@@ -11987,27 +12881,28 @@ sfr
 \end_layout
 
 \begin_layout Standard
-Like the bit keyword,
+Like the bit keyword, 
 \emph on
 sfr / sfr16 / sfr32 / sbit
 \emph default
-signify both a data-type and storage class, they are used to describe the
+ signify both a data-type and storage class, they are used to describe the
 \emph on
 s
 \emph default
-pecial
+pecial 
 \emph on
 f
 \emph default
-unction
+unction 
 \emph on
 r
 \emph default
-egisters and
+egisters and 
 \emph on
 s
 \emph default
-pecial
+pecial 
 \emph on
 bit
 \emph default
@@ -12018,12 +12913,14 @@ bit
 
 \family typewriter
 __sfr __at
-\begin_inset LatexCommand \index{at}
+\begin_inset LatexCommand index
+name "at"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_at}
+\begin_inset LatexCommand index
+name "\\_\\_at"
 
 \end_inset
 
@@ -12046,23 +12943,27 @@ __sfr16 __at (0x8C8A)
 
 \newline
 __sbit __at
-\begin_inset LatexCommand \index{at}
+\begin_inset LatexCommand index
+name "at"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_at}
+\begin_inset LatexCommand index
+name "\\_\\_at"
 
 \end_inset
 
  (0xd7) CY;\InsetSpace ~
  /* CY (Carry Flag
-\begin_inset LatexCommand \index{Flags}
+\begin_inset LatexCommand index
+name "Flags"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Carry flag}
+\begin_inset LatexCommand index
+name "Carry flag"
 
 \end_inset
 
@@ -12071,19 +12972,19 @@ __sbit __at
 
 \begin_layout Standard
 Special function registers which are located on an address dividable by
- 8 are bit-addressable, an
+ 8 are bit-addressable, an 
 \emph on
- sbit
+sbit
 \emph default
  addresses a specific bit within these sfr.
 \newline
 16 Bit and 32 bit special function
  register combinations which require a certain access order are better not
- declared using
+ declared using 
 \emph on
 sfr16
 \emph default
- or
+ or 
 \emph on
 sfr32.
 
@@ -12097,22 +12998,22 @@ sfr32.
 \begin_layout Standard
 Please note, if you use a header file which was written for another compiler
  then the sfr / sfr16 / sfr32 / sbit Storage Class extensions will most
- likely be
+ likely be 
 \emph on
 not
 \emph default
-compatible.
- Specifically the syntax
+ compatible.
+ Specifically the syntax 
 \family typewriter
 \InsetSpace ~
 sfr P0 = 0x80;\InsetSpace ~
 
 \family default
- is compiled
+ is compiled 
 \emph on
 without warning
 \emph default
- by SDCC to an assignment of 0x80 to a variable called P0
+ by SDCC to an assignment of 0x80 to a variable called P0 
 \family typewriter
 
 \begin_inset Marginal
@@ -12128,28 +13029,36 @@ status collapsed
 \end_inset
 
 .
+
 \family default
+\series bold
 Nevertheless it is possible to write header files
-\begin_inset LatexCommand \index{Header files}
+\begin_inset LatexCommand index
+name "Header files"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Include files}
+\begin_inset LatexCommand index
+name "Include files"
 
 \end_inset
 
- which can be shared among different compilers (see section
-\begin_inset LatexCommand \ref{sec:Porting-code-to-other-compilers}
+ which can be shared among different compilers (see section 
+\begin_inset LatexCommand ref
+reference "sec:Porting-code-to-other-compilers"
 
 \end_inset
 
 ).
 \end_layout
 
 \begin_layout Subsubsection
 Pointers
-\begin_inset LatexCommand \index{Pointer}
+\begin_inset LatexCommand index
+name "Pointer"
 
 \end_inset
 
@@ -12159,7 +13068,8 @@ Pointers
 \begin_layout Standard
 SDCC allows (via language extensions) pointers to explicitly point to any
  of the memory spaces
-\begin_inset LatexCommand \index{Memory model}
+\begin_inset LatexCommand index
+name "Memory model"
 
 \end_inset
 
@@ -12177,21 +13087,21 @@ Pointer
 
 \family typewriter
 /* pointer physically in internal ram pointing to object in external ram
- */
+ */ 
 \newline
 __xdata unsigned char * __data p;
 \newline
 
 \newline
 /* pointer physically in external ram
- pointing to object in internal ram */
+ pointing to object in internal ram */ 
 \newline
 __data unsigned char * __xdata p;
 \newline
 
 \newline
 /*
- pointer physically in code rom pointing to data in xdata space */
+ pointer physically in code rom pointing to data in xdata space */ 
 \newline
 __xdata
  unsigned char * __code p;
@@ -12199,7 +13109,7 @@ __xdata
 
 \newline
 /* pointer physically in code space pointing to
- data in code space */
+ data in code space */ 
 \newline
 __code unsigned char * __code p;
 \newline
@@ -12221,7 +13131,8 @@ unsigned char * p;
 \newline
 /*
  the following is a function pointer
-\begin_inset LatexCommand \index{function pointer}
+\begin_inset LatexCommand index
+name "function pointer"
 
 \end_inset
 
@@ -12232,15 +13143,16 @@ char (* __data fp)(void);
 
 \begin_layout Standard
 Well you get the idea.
 \newline
 
 \newline
-All unqualified pointers are treated as 3-byte (4-byte
- for the ds390)
+All unqualified pointers are treated as 3-byte (4-byte for the ds390) 
 \emph on
 generic
 \emph default
  pointers.
 \size small
 
 \newline
@@ -12248,25 +13160,27 @@ generic
 \newline
 
 \size default
-The highest order byte of the
+The highest order byte of the 
 \emph on
 generic
 \emph default
  pointers contains the data space information.
  Assembler support routines are called whenever data is stored or retrieved
- using
+ using 
 \emph on
 generic
 \emph default
  pointers.
  These are useful for developing reusable library
-\begin_inset LatexCommand \index{Libraries}
+\begin_inset LatexCommand index
+name "Libraries"
 
 \end_inset
 
  routines.
  Explicitly specifying the pointer
-\begin_inset LatexCommand \index{pointer}
+\begin_inset LatexCommand index
+name "pointer"
 
 \end_inset
 
@@ -12275,7 +13189,8 @@ generic
 
 \begin_layout Subsubsection
 Notes on MCS51 memory
-\begin_inset LatexCommand \index{MCS51 memory}
+\begin_inset LatexCommand index
+name "MCS51 memory"
 
 \end_inset
 
@@ -12289,15 +13204,16 @@ The 8051 family of microcontrollers have a minimum of 128 bytes of internal
 
 \newline
 - Bytes 00-1F - 32 bytes to hold
- up to 4 banks of the registers R0 to R7,
+ up to 4 banks of the registers R0 to R7, 
 \newline
 - Bytes 20-2F - 16 bytes to hold
  128 bit
-\begin_inset LatexCommand \index{bit}
+\begin_inset LatexCommand index
+name "bit"
 
 \end_inset
 
- variables and,
+ variables and, 
 \newline
 - Bytes 30-7F - 80 bytes for general purpose use.
 \newline
@@ -12311,12 +13227,14 @@ Additionally some members of the MCS51 family may have up to 128 bytes of
 idata
 \emph default
 
-\begin_inset LatexCommand \index{idata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "idata (mcs51, ds390 storage class)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_idata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "\\_\\_idata (mcs51, ds390 storage class)"
 
 \end_inset
 
@@ -12326,12 +13244,14 @@ idata
 xdata
 \emph default
 
-\begin_inset LatexCommand \index{xdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "xdata (mcs51, ds390 storage class)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_xdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "\\_\\_xdata (mcs51, ds390 storage class)"
 
 \end_inset
 
@@ -12341,24 +13261,27 @@ xdata
 data
 \emph default
 
-\begin_inset LatexCommand \index{data (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "data (mcs51, ds390 storage class)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_data (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "\\_\\_data (mcs51, ds390 storage class)"
 
 \end_inset
 
 ).
- Sometimes this built in
+ Sometimes this built in 
 \emph on
 xdata
 \emph default
  memory has to be activated before using it (you can probably find this
  information on the datasheet of the microcontroller your are using, see
- also section
-\begin_inset LatexCommand \ref{sub:Startup-Code}
+ also section 
+\begin_inset LatexCommand ref
+reference "sub:Startup-Code"
 
 \end_inset
 
@@ -12368,32 +13291,41 @@ Startup-Code).
 
 \begin_layout Standard
 Normally SDCC will only use the first bank
-\begin_inset LatexCommand \index{register bank (mcs51, ds390)}
+\begin_inset LatexCommand index
+name "register bank (mcs51, ds390)"
 
 \end_inset
 
  of registers (register bank 0), but it is possible to specify that other
- banks of registers (keyword
+ banks of registers (keyword 
 \emph on
 using
-\begin_inset LatexCommand \index{using (mcs51, ds390 register bank)}
+\emph default
+\emph on
+
+\begin_inset LatexCommand index
+name "using (mcs51, ds390 register bank)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_using (mcs51, ds390 register bank)}
+\begin_inset LatexCommand index
+name "\\_\\_using (mcs51, ds390 register bank)"
 
 \end_inset
 
 
 \emph default
 ) should be used for example in interrupt
-\begin_inset LatexCommand \index{interrupt}
+\begin_inset LatexCommand index
+name "interrupt"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_interrupt}
+\begin_inset LatexCommand index
+name "\\_\\_interrupt"
 
 \end_inset
 
@@ -12401,14 +13333,15 @@ using
  By default, the compiler will place the stack after the last byte of allocated
  memory for variables.
  For example, if the first 2 banks of registers are used, and only four
- bytes are used for
+ bytes are used for 
 \emph on
 data
 \emph default
  variables, it will position the base of the internal stack at address 20
  (0x14).
  This implies that as the stack
-\begin_inset LatexCommand \index{stack}
+\begin_inset LatexCommand index
+name "stack"
 
 \end_inset
 
@@ -12417,7 +13350,7 @@ data
  If any bit variables are used, the data variables will be placed in unused
  register banks and after the byte holding the last bit variable.
  For example, if register banks 0 and 1 are used, and there are 9 bit variables
- (two bytes used),
+ (two bytes used), 
 \emph on
 data
 \emph default
@@ -12437,11 +13370,12 @@ status collapsed
 \end_inset
 
 -data-loc
-\begin_inset LatexCommand \index{-\/-data-loc <Value>}
+\begin_inset LatexCommand index
+name "-\\/-data-loc <Value>"
 
 \end_inset
 
- to specify the start address of the
+ to specify the start address of the 
 \emph on
 data
 \emph default
@@ -12459,7 +13393,8 @@ status collapsed
 \end_inset
 
 -iram-size
-\begin_inset LatexCommand \index{-\/-iram-size <Value>}
+\begin_inset LatexCommand index
+name "-\\/-iram-size <Value>"
 
 \end_inset
 
@@ -12472,6 +13407,7 @@ data
 idata
 \emph default
 ).
 \newline
 
 \end_layout
@@ -12493,7 +13429,8 @@ status collapsed
 \end_inset
 
 -stack-loc
-\begin_inset LatexCommand \index{-\/-stack-loc <Value>}
+\begin_inset LatexCommand index
+name "-\\/-stack-loc <Value>"
 
 \end_inset
 
@@ -12519,7 +13456,8 @@ status collapsed
 \end_inset
 
 -xdata-loc
-\begin_inset LatexCommand \index{-\/-xdata-loc<Value>}
+\begin_inset LatexCommand index
+name "-\\/-xdata-loc<Value>"
 
 \end_inset
 
@@ -12541,7 +13479,8 @@ status collapsed
 \end_inset
 
 -xram-size
-\begin_inset LatexCommand \index{-\/-xram-size <Value>}
+\begin_inset LatexCommand index
+name "-\\/-xram-size <Value>"
 
 \end_inset
 
@@ -12560,7 +13499,8 @@ status collapsed
 \end_inset
 
 -code-loc
-\begin_inset LatexCommand \index{-\/-code-loc <Value>}
+\begin_inset LatexCommand index
+name "-\\/-code-loc <Value>"
 
 \end_inset
 
@@ -12578,7 +13518,8 @@ status collapsed
 \end_inset
 
 -code-size
-\begin_inset LatexCommand \index{-\/-code-size <Value>}
+\begin_inset LatexCommand index
+name "-\\/-code-size <Value>"
 
 \end_inset
 
@@ -12590,13 +13531,15 @@ status collapsed
 \begin_layout Standard
 The linker generates two files with memory allocation information.
  The first, with extension .map
-\begin_inset LatexCommand \index{<file>.map}
+\begin_inset LatexCommand index
+name "<file>.map"
 
 \end_inset
 
  shows all the variables and segments.
  The second with extension .mem
-\begin_inset LatexCommand \index{<file>.mem}
+\begin_inset LatexCommand index
+name "<file>.mem"
 
 \end_inset
 
@@ -12615,7 +13558,8 @@ The linker generates two files with memory allocation information.
 
 \begin_layout Subsection
 Z80/Z180 Storage Class
-\begin_inset LatexCommand \index{Z80!Storage class}
+\begin_inset LatexCommand index
+name "Z80!Storage class"
 
 \end_inset
 
@@ -12624,12 +13568,14 @@ Z80/Z180 Storage Class
 
 \begin_layout Subsubsection
 sfr
-\begin_inset LatexCommand \index{sfr}
+\begin_inset LatexCommand index
+name "sfr"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_sfr}
+\begin_inset LatexCommand index
+name "\\_\\_sfr"
 
 \end_inset
 
@@ -12638,11 +13584,12 @@ sfr
 
 \begin_layout Standard
 The Z80
-\begin_inset LatexCommand \index{Z80}
+\begin_inset LatexCommand index
+name "Z80"
 
 \end_inset
 
- family has separate address spaces for memory and
+ family has separate address spaces for memory and 
 \emph on
 i
 \emph default
 \emph default
 utput memory.
  I/O memory
-\begin_inset LatexCommand \index{I/O memory (Z80, Z180)}
+\begin_inset LatexCommand index
+name "I/O memory (Z80, Z180)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Z80!I/O memory}
+\begin_inset LatexCommand index
+name "Z80!I/O memory"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Z180!I/O memory}
+\begin_inset LatexCommand index
+name "Z180!I/O memory"
 
 \end_inset
 
@@ -12675,6 +13625,7 @@ utput memory.
 sfr at 0x78 IoPort;\InsetSpace ~
 \InsetSpace ~
 /* define a var in I/O space at 78h called IoPort */
 \end_layout
 
 \begin_layout Standard
@@ -12698,17 +13649,19 @@ D3 78\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-out (_IoPort),a
+out (_IoPort),a 
 \end_layout
 
 \begin_layout Subsubsection
 banked sfr
-\begin_inset LatexCommand \index{sfr}
+\begin_inset LatexCommand index
+name "sfr"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_sfr}
+\begin_inset LatexCommand index
+name "\\_\\_sfr"
 
 \end_inset
 
@@ -12716,7 +13669,7 @@ banked sfr
 \end_layout
 
 \begin_layout Standard
-The keyword
+The keyword 
 \emph on
 banked
 \emph default
@@ -12727,16 +13680,18 @@ banked
 
 \family typewriter
 sfr banked at
-\begin_inset LatexCommand \index{at}
+\begin_inset LatexCommand index
+name "at"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_at}
+\begin_inset LatexCommand index
+name "\\_\\_at"
 
 \end_inset
 
- 0x123 IoPort;
+ 0x123 IoPort; 
 \end_layout
 
 \begin_layout Standard
@@ -12757,7 +13712,7 @@ ld bc,#_IoPort
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-ld a,#0x01
+ld a,#0x01 
 \newline
 ED 79\InsetSpace ~
 \InsetSpace ~
@@ -12765,27 +13720,31 @@ ED 79\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-out (c),a
+out (c),a 
 \end_layout
 
 \begin_layout Subsubsection
 sfr
-\begin_inset LatexCommand \index{sfr}
+\begin_inset LatexCommand index
+name "sfr"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_sfr}
+\begin_inset LatexCommand index
+name "\\_\\_sfr"
 
 \end_inset
 
  (in0/out0 to 8 bit addresses on Z180
-\begin_inset LatexCommand \index{Z180}
+\begin_inset LatexCommand index
+name "Z180"
 
 \end_inset
 
 /HD64180
-\begin_inset LatexCommand \index{HD64180 (see Z180)}
+\begin_inset LatexCommand index
+name "HD64180 (see Z180)"
 
 \end_inset
 
@@ -12807,22 +13766,24 @@ status collapsed
 \end_inset
 
 -portmode
-\begin_inset LatexCommand \index{Z180!Options!-\/-portmode}
+\begin_inset LatexCommand index
+name "Z180!Options!-\\/-portmode"
 
 \end_inset
 
 =180 (80) and a compiler #pragma\InsetSpace ~
 portmode
-\begin_inset LatexCommand \index{Z180!Pragmas!\#pragma portmode}
+\begin_inset LatexCommand index
+name "Z180!Pragmas!\\#pragma portmode"
 
 \end_inset
 
  z180 (z80) is used to turn on (off) the Z180/HD64180 port addressing instructio
-ns
+ns 
 \family typewriter
 in0/out0
 \family default
- instead of
+ instead of 
 \family typewriter
 in/out
 \family default
@@ -12836,7 +13797,8 @@ in/out
 
 \begin_layout Subsection
 HC08 Storage Class
-\begin_inset LatexCommand \index{HC08!Storage class}
+\begin_inset LatexCommand index
+name "HC08!Storage class"
 
 \end_inset
 
@@ -12845,23 +13807,26 @@ HC08 Storage Class
 
 \begin_layout Subsubsection
 data
-\begin_inset LatexCommand \index{data (hc08 storage class)}
+\begin_inset LatexCommand index
+name "data (hc08 storage class)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_data (hc08 storage class)}
+\begin_inset LatexCommand index
+name "\\_\\_data (hc08 storage class)"
 
 \end_inset
 
-
 \end_layout
 
 \begin_layout Standard
 The data storage class declares a variable that resides in the first 256
  bytes of memory (the direct page).
  The HC08
-\begin_inset LatexCommand \index{HC08}
+\begin_inset LatexCommand index
+name "HC08"
 
 \end_inset
 
@@ -12870,22 +13835,51 @@ The data storage class declares a variable that resides in the first 256
 
 \begin_layout Subsubsection
 xdata
-\begin_inset LatexCommand \index{xdata (hc08 storage class)}
+\begin_inset LatexCommand index
+name "xdata (hc08 storage class)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_xdata (hc08 storage class)}
+\begin_inset LatexCommand index
+name "\\_\\_xdata (hc08 storage class)"
 
 \end_inset
 
-
 \end_layout
 
 \begin_layout Standard
 The xdata storage class declares a variable that can reside anywhere in
  memory.
  This is the default if no storage class is specified.
+\begin_inset VSpace bigskip
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Other SDCC language extensions
+\begin_inset LatexCommand index
+name "Other SDCC language extensions"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Subsection
+Binary constants
+\end_layout
+
+\begin_layout Standard
+SDCC supports the use of binary constants, such as 0b01100010.
+ This feature is only enabled when the compiler is invoked using --std-sdccxx.
+\end_layout
+
+\begin_layout Standard
 \begin_inset VSpace bigskip
 \end_inset
 
@@ -12894,7 +13888,8 @@ The xdata storage class declares a variable that can reside anywhere in
 
 \begin_layout Section
 Absolute Addressing
-\begin_inset LatexCommand \index{Absolute addressing}
+\begin_inset LatexCommand index
+name "Absolute addressing"
 
 \end_inset
 
@@ -12902,15 +13897,17 @@ Absolute Addressing
 \end_layout
 
 \begin_layout Standard
-Data items can be assigned an absolute address with the
+Data items can be assigned an absolute address with the 
 \emph on
 at
-\begin_inset LatexCommand \index{at}
+\begin_inset LatexCommand index
+name "at"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_at}
+\begin_inset LatexCommand index
+name "\\_\\_at"
 
 \end_inset
 
 
 \family typewriter
 xdata
-\begin_inset LatexCommand \index{xdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "xdata (mcs51, ds390 storage class)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_xdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "\\_\\_xdata (mcs51, ds390 storage class)"
 
 \end_inset
 
  at
-\begin_inset LatexCommand \index{at}
+\begin_inset LatexCommand index
+name "at"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_at}
+\begin_inset LatexCommand index
+name "\\_\\_at"
 
 \end_inset
 
@@ -12958,7 +13959,7 @@ __xdata __at (0x7ffe) unsigned int chksum;
 \begin_layout Standard
 In the above example the variable chksum will be located at 0x7ffe and 0x7fff
  of the external ram.
- The compiler does
+ The compiler does 
 \emph on
 not
 \emph default
@@ -12979,17 +13980,20 @@ status collapsed
  Thus it is left to the programmer to make sure there are no overlaps with
  other variables that are declared without the absolute address.
  The assembler listing file (.lst
-\begin_inset LatexCommand \index{<file>.lst}
+\begin_inset LatexCommand index
+name "<file>.lst"
 
 \end_inset
 
 ) and the linker output files (.rst
-\begin_inset LatexCommand \index{<file>.rst}
+\begin_inset LatexCommand index
+name "<file>.rst"
 
 \end_inset
 
 ) and (.map
-\begin_inset LatexCommand \index{<file>.map}
+\begin_inset LatexCommand index
+name "<file>.map"
 
 \end_inset
 
@@ -12998,7 +14002,8 @@ status collapsed
 
 \begin_layout Standard
 If however you provide an initializer
-\begin_inset LatexCommand \index{Variable initialization}
+\begin_inset LatexCommand index
+name "Variable initialization"
 
 \end_inset
 
@@ -13010,7 +14015,7 @@ If however you provide an initializer
 \begin_layout Verse
 
 \family typewriter
-__code __at (0x7ff0) char Id[5] =
+__code __at (0x7ff0) char Id[5] = 
 \begin_inset Quotes sld
 \end_inset
 
@@ -13027,7 +14032,7 @@ In the above example the variable Id will be located from 0x7ff0 to 0x7ff4
 \end_layout
 
 \begin_layout Standard
-In case of memory mapped I/O devices the keyword
+In case of memory mapped I/O devices the keyword 
 \emph on
 volatile
 \emph default
@@ -13038,17 +14043,20 @@ volatile
 
 \family typewriter
 volatile
-\begin_inset LatexCommand \index{volatile}
+\begin_inset LatexCommand index
+name "volatile"
 
 \end_inset
 
  __xdata
-\begin_inset LatexCommand \index{xdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "xdata (mcs51, ds390 storage class)"
 
 \end_inset
 
  __at
-\begin_inset LatexCommand \index{at}
+\begin_inset LatexCommand index
+name "at"
 
 \end_inset
 
@@ -13061,7 +14069,8 @@ r) array
 \family typewriter
 \size footnotesize
 
-\begin_inset LatexCommand \index{Aligned array}
+\begin_inset LatexCommand index
+name "Aligned array"
 
 \end_inset
 
@@ -13069,12 +14078,14 @@ r) array
 \family default
 \size default
  starts at a block (256 byte) boundary
-\begin_inset LatexCommand \index{block boundary}
+\begin_inset LatexCommand index
+name "block boundary"
 
 \end_inset
 
- (section
-\begin_inset LatexCommand \ref{sub:A-Step-by Assembler Introduction}
+ (section 
+\begin_inset LatexCommand ref
+reference "sub:A-Step-by Assembler Introduction"
 
 \end_inset
 
@@ -13088,12 +14099,14 @@ Absolute addresses can be specified for variables in all
 
 \family typewriter
 __bit
-\begin_inset LatexCommand \index{bit}
+\begin_inset LatexCommand index
+name "bit"
 
 \end_inset
 
  __at
-\begin_inset LatexCommand \index{at}
+\begin_inset LatexCommand index
+name "at"
 
 \end_inset
 
@@ -13115,7 +14128,8 @@ le space.
 
 \family typewriter
 extern volatile
-\begin_inset LatexCommand \index{volatile}
+\begin_inset LatexCommand index
+name "volatile"
 
 \end_inset
 
@@ -13153,21 +14167,21 @@ If needed adapt polarity of clock,
 */
 \newline
 unsigned char spi_io(unsigned char out_byte)
 \newline
-{
+{ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-un
-signed char i=8;
+unsigned char i=8;
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-do {
+do { 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -13177,7 +14191,7 @@ do {
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-MOSI = out_byte & 0x80;
+MOSI = out_byte & 0x80; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -13197,7 +14211,8 @@ out_byte <<= 1;
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-MCLK = 1;
+MCLK =
+ 1; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -13207,8 +14222,7 @@ MCLK = 1;
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-/* _asm
- nop _endasm; */\InsetSpace ~
+/* _asm nop _endasm; */\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -13226,7 +14240,7 @@ MCLK = 1;
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-if(MISO)
+if(MISO) 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -13240,7 +14254,8 @@ if(MISO)
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-out_byte += 1;
+out_byte +=
+ 1; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -13250,20 +14265,19 @@ out_byte += 1;
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-MCLK = 0;
+MCLK = 0; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-}
- while(--i);
+} while(--i);
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-return out_byte;
+return out_byte; 
 \newline
 }
 \end_layout
@@ -13276,12 +14290,14 @@ Then, someplace in the code for the first hardware you would use
 
 \family typewriter
 __bit __at
-\begin_inset LatexCommand \index{at}
+\begin_inset LatexCommand index
+name "at"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_at}
+\begin_inset LatexCommand index
+name "\\_\\_at"
 
 \end_inset
 
@@ -13326,7 +14342,8 @@ __bit __at (0x91) MISO;\InsetSpace ~
  I/O port 1, bit 1 */
 \newline
 __bit
-\begin_inset LatexCommand \index{bit}
+\begin_inset LatexCommand index
+name "bit"
 
 \end_inset
 
@@ -13350,22 +14367,26 @@ and you can use the same hardware dependent routine without changes, as
 
 \begin_layout Section
 Parameters
-\begin_inset LatexCommand \index{Parameters}
+\begin_inset LatexCommand index
+name "Parameters"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{function parameter}
+\begin_inset LatexCommand index
+name "function parameter"
 
 \end_inset
 
  & Local Variables
-\begin_inset LatexCommand \index{local variables}
+\begin_inset LatexCommand index
+name "local variables"
 
 \end_inset
 
 
-\begin_inset LatexCommand \label{sec:Parameters-and-Local-Variables}
+\begin_inset LatexCommand label
+name "sec:Parameters-and-Local-Variables"
 
 \end_inset
 
@@ -13377,32 +14398,36 @@ Automatic (local) variables and parameters to functions can either be placed
  on the stack or in data-space.
  The default action of the compiler is to place these variables in the internal
  RAM (for small model) or external RAM (for medium or large model).
- This in fact makes them similar to
+ This in fact makes them similar to 
 \emph on
 static
-\begin_inset LatexCommand \index{static}
+\begin_inset LatexCommand index
+name "static"
 
 \end_inset
 
 
 \emph default
  so by default functions are non-reentrant
-\begin_inset LatexCommand \index{reentrant}
+\begin_inset LatexCommand index
+name "reentrant"
 
 \end_inset
 
 .
 \newline
 
 \newline
 They can be placed on the stack
-\begin_inset LatexCommand \index{stack}
+\begin_inset LatexCommand index
+name "stack"
 
 \end_inset
 
- by using the
+ by using the 
 \emph on
- -
+-
 \begin_inset ERT
 status collapsed
 
@@ -13416,26 +14441,29 @@ status collapsed
 \end_inset
 
 -stack-auto
-\begin_inset LatexCommand \index{-\/-stack-auto}
+\begin_inset LatexCommand index
+name "-\\/-stack-auto"
 
 \end_inset
 
 
 \emph default
- option, by using
+ option, by using 
 \emph on
 #pragma\InsetSpace ~
 stackauto
 \emph default
 
-\begin_inset LatexCommand \index{\#pragma stackauto}
+\begin_inset LatexCommand index
+name "\\#pragma stackauto"
 
 \end_inset
 
- or by using the
+ or by using the 
 \emph on
 reentrant
-\begin_inset LatexCommand \index{reentrant}
+\begin_inset LatexCommand index
+name "reentrant"
 
 \end_inset
 
@@ -13447,27 +14475,28 @@ reentrant
 \begin_layout Verse
 
 \family typewriter
-unsigned char foo(char i) __reentrant
+unsigned char foo(char i) __reentrant 
 \newline
-{
+{ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 ...
 \newline
 }
 \end_layout
 
 \begin_layout Standard
-Since stack space on 8051 is limited, the
+Since stack space on 8051 is limited, the 
 \emph on
 reentrant
 \emph default
-keyword or the
+ keyword or the 
 \emph on
- -
+-
 \begin_inset ERT
 status collapsed
 
@@ -13484,12 +14513,13 @@ status collapsed
 \emph default
  option should be used sparingly.
  Note that the reentrant keyword just means that the parameters & local
- variables will be allocated to the stack, it
+ variables will be allocated to the stack, it 
 \emph on
 does not
 \emph default
  mean that the function is register bank
-\begin_inset LatexCommand \index{register bank (mcs51, ds390)}
+\begin_inset LatexCommand index
+name "register bank (mcs51, ds390)"
 
 \end_inset
 
@@ -13498,22 +14528,24 @@ does not
 
 \newline
 Local variables
-\begin_inset LatexCommand \index{local variables}
+\begin_inset LatexCommand index
+name "local variables"
 
 \end_inset
 
  can be assigned storage classes and absolute
-\begin_inset LatexCommand \index{Absolute addressing}
+\begin_inset LatexCommand index
+name "Absolute addressing"
 
 \end_inset
 
- addresses, e.g.:
+ addresses, e.g.: 
 \end_layout
 
 \begin_layout Verse
 
 \family typewriter
-unsigned char foo()
+unsigned char foo() 
 \newline
 {
 \newline
@@ -13534,7 +14566,8 @@ __bit bvar;
 \InsetSpace ~
 \InsetSpace ~
 __data __at
-\begin_inset LatexCommand \index{at}
+\begin_inset LatexCommand index
+name "at"
 
 \end_inset
 
@@ -13545,25 +14578,26 @@ __data __at
 \InsetSpace ~
 \InsetSpace ~
 ...
 \newline
 }
 \end_layout
 
 \begin_layout Standard
-In the above example the variable
+In the above example the variable 
 \emph on
 i
 \emph default
- will be allocated in the external ram,
+ will be allocated in the external ram, 
 \emph on
 bvar
 \emph default
- in bit addressable space and
+ in bit addressable space and 
 \emph on
- j
+j
 \emph default
  in internal ram.
- When compiled with
+ When compiled with 
 \emph on
 -
 \begin_inset ERT
@@ -13580,7 +14614,7 @@ status collapsed
 
 -stack-auto
 \emph default
- or when a function is declared as
+ or when a function is declared as 
 \emph on
 reentrant
 \emph default
@@ -13589,12 +14623,14 @@ reentrant
 
 \begin_layout Standard
 Parameters
-\begin_inset LatexCommand \index{function parameter}
+\begin_inset LatexCommand index
+name "function parameter"
 
 \end_inset
 
  however are not allowed any storage class
-\begin_inset LatexCommand \index{Storage class}
+\begin_inset LatexCommand index
+name "Storage class"
 
 \end_inset
 
@@ -13607,7 +14643,8 @@ It is however allowed to use bit parameters in reentrant functions and also
  non-static local bit variables are supported.
  Efficient use is limited to 8 semi-bitregisters in bit space.
  They are pushed and popped to stack
-\begin_inset LatexCommand \index{stack}
+\begin_inset LatexCommand index
+name "stack"
 
 \end_inset
 
@@ -13616,12 +14653,14 @@ It is however allowed to use bit parameters in reentrant functions and also
 
 \begin_layout Section
 Overlaying
-\begin_inset LatexCommand \label{sub:Overlaying}
+\begin_inset LatexCommand label
+name "sub:Overlaying"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Overlaying}
+\begin_inset LatexCommand index
+name "Overlaying"
 
 \end_inset
 
@@ -13630,23 +14669,26 @@ Overlaying
 
 \begin_layout Standard
 For non-reentrant
-\begin_inset LatexCommand \index{reentrant}
+\begin_inset LatexCommand index
+name "reentrant"
 
 \end_inset
 
  functions SDCC will try to reduce internal ram space usage by overlaying
  parameters and local variables of a function (if possible).
  Parameters and local variables
-\begin_inset LatexCommand \index{local variables}
+\begin_inset LatexCommand index
+name "local variables"
 
 \end_inset
 
  of a function will be allocated to an overlayable segment if the function
- has
+ has 
 \emph on
 no other function calls and the function is non-reentrant and the memory
  model
-\begin_inset LatexCommand \index{Memory model}
+\begin_inset LatexCommand index
+name "Memory model"
 
 \end_inset
 
@@ -13654,11 +14696,12 @@ no other function calls and the function is non-reentrant and the memory
 
 \emph default
  If an explicit storage class
-\begin_inset LatexCommand \index{Storage class}
+\begin_inset LatexCommand index
+name "Storage class"
 
 \end_inset
 
- is specified for a local variable, it will NOT be overlayed.
+ is specified for a local variable, it will NOT be overlaid.
 \end_layout
 
 \begin_layout Standard
@@ -13678,7 +14721,8 @@ status collapsed
 
  should be preceded by a #pragma\InsetSpace ~
 nooverlay
-\begin_inset LatexCommand \index{\#pragma nooverlay}
+\begin_inset LatexCommand index
+name "\\#pragma nooverlay"
 
 \end_inset
 
@@ -13697,32 +14741,35 @@ nooverlay should be used.
 \begin_layout Standard
 Parameters and local variables of functions that contain 16 or 32 bit multiplica
 tion
-\begin_inset LatexCommand \index{Multiplication}
+\begin_inset LatexCommand index
+name "Multiplication"
 
 \end_inset
 
  or division
-\begin_inset LatexCommand \index{Division}
+\begin_inset LatexCommand index
+name "Division"
 
 \end_inset
 
- will NOT be overlayed since these are implemented using external functions,
+ will NOT be overlaid since these are implemented using external functions,
  e.g.:
 \end_layout
 
 \begin_layout Verse
 
 \family typewriter
-#pragma save
+#pragma save 
 \newline
 #pragma nooverlay
-\begin_inset LatexCommand \index{\#pragma nooverlay}
+\begin_inset LatexCommand index
+name "\\#pragma nooverlay"
 
 \end_inset
 
-
 \newline
-void set_error(unsigned char errcd)
+void set_error(unsigned char errcd) 
 \newline
 {
 \newline
@@ -13732,15 +14779,16 @@ void set_error(unsigned char errcd)
 \InsetSpace ~
 P3 = errcd;
 \newline
-}
+} 
 \newline
-#pragma restore
+#pragma restore 
 \newline
 
 \newline
-void some_isr
- () __interrupt
-\begin_inset LatexCommand \index{interrupt}
+void
+ some_isr () __interrupt
+\begin_inset LatexCommand index
+name "interrupt"
 
 \end_inset
 
@@ -13765,16 +14813,17 @@ set_error(10);
 \InsetSpace ~
 \InsetSpace ~
 ...
 \newline
 }
 \end_layout
 
 \begin_layout Standard
-In the above example the parameter
+In the above example the parameter 
 \emph on
 errcd
 \emph default
- for the function
+ for the function 
 \emph on
 set_error
 \emph default
@@ -13784,7 +14833,7 @@ nooverlay was
  from an interrupt service routine.
  The #pragma\InsetSpace ~
 nooverlay ensures that the parameters and local variables for
- the function are NOT overlayed.
+ the function are NOT overlaid.
 \begin_inset VSpace bigskip
 \end_inset
 
@@ -13793,7 +14842,8 @@ nooverlay ensures that the parameters and local variables for
 
 \begin_layout Section
 Interrupt Service Routines
-\begin_inset LatexCommand \label{sub:Interrupt-Service-Routines}
+\begin_inset LatexCommand label
+name "sub:Interrupt-Service-Routines"
 
 \end_inset
 
@@ -13805,15 +14855,15 @@ General Information
 \end_layout
 
 \begin_layout Standard
-SDCC allows
+SDCC allows 
 \emph on
 i
 \emph default
-nterrupt
+nterrupt 
 \emph on
 s
 \emph default
-ervice
+ervice 
 \emph on
 r
 \emph default
@@ -13823,29 +14873,32 @@ outines to be coded in C, with some extended keywords.
 \begin_layout Verse
 
 \family typewriter
-void timer_isr (void) __interrupt (1) __using (1)
+void timer_isr (void) __interrupt (1) __using (1) 
 \newline
-{
+{ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 ...
 \newline
 }
 \end_layout
 
 \begin_layout Standard
-The optional number following the
+The optional number following the 
 \emph on
 interrupt
-\begin_inset LatexCommand \index{interrupt}
+\begin_inset LatexCommand index
+name "interrupt"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_interrupt}
+\begin_inset LatexCommand index
+name "\\_\\_interrupt"
 
 \end_inset
 
@@ -13854,27 +14907,30 @@ interrupt
  keyword is the interrupt number this routine will service.
  When present, the compiler will insert a call to this routine in the interrupt
  vector table
-\begin_inset LatexCommand \index{interrupt vector table}
+\begin_inset LatexCommand index
+name "interrupt vector table"
 
 \end_inset
 
  for the interrupt number specified.
  If you have multiple source files in your project, interrupt service routines
  can be present in any of them, but a prototype of the isr MUST be present
- or included in the file that contains the function
+ or included in the file that contains the function 
 \emph on
 main
 \emph default
 .
- The optional (8051 specific) keyword
+ The optional (8051 specific) keyword 
 \emph on
 using
-\begin_inset LatexCommand \index{using (mcs51, ds390 register bank)}
+\begin_inset LatexCommand index
+name "using (mcs51, ds390 register bank)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_using (mcs51, ds390 register bank)}
+\begin_inset LatexCommand index
+name "\\_\\_using (mcs51, ds390 register bank)"
 
 \end_inset
 
@@ -13882,35 +14938,38 @@ using
 \emph default
  can be used to tell the compiler to use the specified register bank when
  generating code for this function.
 \newline
-Interrupt service routines open the door
- for some very interesting bugs:
+Interrupt service routines open the door for some very interesting bugs:
 \end_layout
 
 \begin_layout Subsubsection
-\begin_inset LatexCommand \label{sub:Common-interrupt-pitfall-volatile}
+\begin_inset LatexCommand label
+name "sub:Common-interrupt-pitfall-volatile"
 
 \end_inset
 
-Common interrupt pitfall: variable not declared
+Common interrupt pitfall: variable not declared 
 \emph on
 volatile
 \end_layout
 
 \begin_layout Standard
 If an interrupt service routine changes variables which are accessed by
- other functions these variables have to be declared
+ other functions these variables have to be declared 
 \emph on
 volatile
 \emph default
 
-\begin_inset LatexCommand \index{volatile}
+\begin_inset LatexCommand index
+name "volatile"
 
 \end_inset
 
 .
- See
-\begin_inset LatexCommand \url{http://en.wikipedia.org/wiki/Volatile_variable}
+ See 
+\begin_inset LatexCommand url
+target "http://en.wikipedia.org/wiki/Volatile_variable"
 
 \end_inset
 
@@ -13918,20 +14977,22 @@ volatile
 \end_layout
 
 \begin_layout Subsubsection
-\begin_inset LatexCommand \label{sub:Common-interrupt-pitfall-non-atomic}
+\begin_inset LatexCommand label
+name "sub:Common-interrupt-pitfall-non-atomic"
 
 \end_inset
 
-Common interrupt pitfall:
+Common interrupt pitfall: 
 \emph on
 non-atomic access
 \end_layout
 
 \begin_layout Standard
-If the access to these variables is not
+If the access to these variables is not 
 \emph on
 atomic
-\begin_inset LatexCommand \index{atomic}
+\begin_inset LatexCommand index
+name "atomic"
 
 \end_inset
 
@@ -13941,13 +15002,13 @@ atomic
  the processor needs more than one instruction for the access and could
  be interrupted while accessing the variable) the interrupt must be disabled
  during the access to avoid inconsistent data.
 \newline
-Access to 16 or 32 bit variables
- is obviously not atomic on 8 bit CPUs and should be protected by disabling
- interrupts.
+Access to 16 or 32 bit variables is obviously not atomic on 8 bit CPUs
+ and should be protected by disabling interrupts.
  You're not automatically on the safe side if you use 8 bit variables though.
  We need an example here: f.e.
- on the 8051 the harmless looking
+ on the 8051 the harmless looking 
 \begin_inset Quotes srd
 \end_inset
 
@@ -13961,12 +15022,12 @@ flags\InsetSpace ~
 \begin_inset Quotes sld
 \end_inset
 
- is not atomic if
+ is not atomic if 
 \family typewriter
 flags
 \family default
  resides in xdata.
- Setting
+ Setting 
 \begin_inset Quotes srd
 \end_inset
 
@@ -13982,6 +15043,7 @@ flags\InsetSpace ~
 
  from within an interrupt routine might get lost if the interrupt occurs
  at the wrong time.
 \begin_inset Quotes sld
 \end_inset
 
@@ -13995,7 +15057,7 @@ counter\InsetSpace ~
 \begin_inset Quotes srd
 \end_inset
 
- is not atomic on the 8051 even if
+ is not atomic on the 8051 even if 
 \family typewriter
 counter
 \family default
@@ -14003,14 +15065,16 @@ counter
 \newline
 Bugs like these are hard to reproduce and can
  cause a lot of trouble.
 \end_layout
 
 \begin_layout Subsubsection
-\begin_inset LatexCommand \label{sub:Common-interrupt-pitfall-stack-overflow}
+\begin_inset LatexCommand label
+name "sub:Common-interrupt-pitfall-stack-overflow"
 
 \end_inset
 
-Common interrupt pitfall:
+Common interrupt pitfall: 
 \emph on
 stack overflow
 \end_layout
@@ -14018,23 +15082,25 @@ stack overflow
 \begin_layout Standard
 The return address and the registers used in the interrupt service routine
  are saved on the stack
-\begin_inset LatexCommand \index{stack}
+\begin_inset LatexCommand index
+name "stack"
 
 \end_inset
 
  so there must be sufficient stack space.
  If there isn't variables or registers (or even the return address itself)
  will be corrupted.
- This
+ This 
 \emph on
 stack overflow
 \emph default
 
-\begin_inset LatexCommand \index{stack overflow}
+\begin_inset LatexCommand index
+name "stack overflow"
 
 \end_inset
 
- is most likely to happen if the interrupt occurs during the
+ is most likely to happen if the interrupt occurs during the 
 \begin_inset Quotes sld
 \end_inset
 
@@ -14047,42 +15113,47 @@ deepest
 \end_layout
 
 \begin_layout Subsubsection
-\begin_inset LatexCommand \label{sub:Common-interrupt-pitfall-non-reentrant}
+\begin_inset LatexCommand label
+name "sub:Common-interrupt-pitfall-non-reentrant"
 
 \end_inset
 
-Common interrupt pitfall:
+Common interrupt pitfall: 
 \emph on
 use of non-reentrant functions
 \end_layout
 
 \begin_layout Standard
 A special note here, int (16 bit) and long (32 bit) integer division
-\begin_inset LatexCommand \index{Division}
+\begin_inset LatexCommand index
+name "Division"
 
 \end_inset
 
 , multiplication
-\begin_inset LatexCommand \index{Multiplication}
+\begin_inset LatexCommand index
+name "Multiplication"
 
 \end_inset
 
  & modulus
-\begin_inset LatexCommand \index{Modulus}
+\begin_inset LatexCommand index
+name "Modulus"
 
 \end_inset
 
  and floating-point
-\begin_inset LatexCommand \index{Floating point support}
+\begin_inset LatexCommand index
+name "Floating point support"
 
 \end_inset
 
  operations are implemented using external support routines.
  If an interrupt service routine needs to do any of these operations then
  the support routines (as mentioned in a following section) will have to
- be recompiled using the
+ be recompiled using the 
 \emph on
- -
+-
 \begin_inset ERT
 status collapsed
 
@@ -14096,13 +15167,14 @@ status collapsed
 \end_inset
 
 -stack-auto
-\begin_inset LatexCommand \index{-\/-stack-auto}
+\begin_inset LatexCommand index
+name "-\\/-stack-auto"
 
 \end_inset
 
 
 \emph default
- option and the source file will need to be compiled using the
+ option and the source file will need to be compiled using the 
 \emph on
 -
 \begin_inset ERT
@@ -14120,14 +15192,17 @@ status collapsed
 -int-long-reent
 \emph default
 
-\begin_inset LatexCommand \index{-\/-int-long-reent}
+\begin_inset LatexCommand index
+name "-\\/-int-long-reent"
 
 \end_inset
 
  compiler option.
 \newline
 Note, the type promotion
-\begin_inset LatexCommand \index{type promotion}
+\begin_inset LatexCommand index
+name "type promotion"
 
 \end_inset
 
@@ -14146,12 +15221,17 @@ status collapsed
 
  without the programmer being aware of it.
  See f.e.
- the cast
+ the cast 
 \family typewriter
+\series bold
 (unsigned char)(tail-1)
 \family default
- within the if clause in section
-\begin_inset LatexCommand \ref{sub:A-Step-by Assembler Introduction}
+\series default
+\series bold
+within the if clause in section 
+\begin_inset LatexCommand ref
+reference "sub:A-Step-by Assembler Introduction"
 
 \end_inset
 
@@ -14164,7 +15244,8 @@ Calling other functions from an interrupt service routine is not recommended,
  Note that when some function is called from an interrupt service routine
  it should be preceded by a #pragma\InsetSpace ~
 nooverlay
-\begin_inset LatexCommand \index{\#pragma nooverlay}
+\begin_inset LatexCommand index
+name "\\#pragma nooverlay"
 
 \end_inset
 
@@ -14173,20 +15254,22 @@ nooverlay
  while the interrupt service routine might be active.
  They also must not be called from low priority interrupt service routines
  while a high priority interrupt service routine might be active.
- You could use semaphores or make the function
+ You could use semaphores or make the function 
 \emph on
- critical
+critical
 \emph default
  if all parameters are passed in registers.
 \newline
- Also see section
-\begin_inset LatexCommand \ref{sub:Overlaying}
+ Also see section 
+\begin_inset LatexCommand ref
+reference "sub:Overlaying"
 
 \end_inset
 
 \InsetSpace ~
-about Overlaying and section
-\begin_inset LatexCommand \ref{sub:Functions-using-private-banks}
+about Overlaying and section 
+\begin_inset LatexCommand ref
+reference "sub:Functions-using-private-banks"
 
 \end_inset
 
@@ -14204,14 +15287,16 @@ MCS51/DS390 Interrupt Service Routines
 
 \begin_layout Standard
 Interrupt
-\begin_inset LatexCommand \index{interrupt}
+\begin_inset LatexCommand index
+name "interrupt"
 
 \end_inset
 
  numbers and the corresponding address & descriptions for the Standard 8051/8052
  are listed below.
- SDCC will automatically adjust the
-\begin_inset LatexCommand \index{interrupt vector table}
+ SDCC will automatically adjust the 
+\begin_inset LatexCommand index
+name "interrupt vector table"
 
 \end_inset
 
 \end_layout
 
 \begin_layout Standard
-If the interrupt service routine is defined without
+If the interrupt service routine is defined without 
 \emph on
 using
-\begin_inset LatexCommand \index{using (mcs51, ds390 register bank)}
+\begin_inset LatexCommand index
+name "using (mcs51, ds390 register bank)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_using (mcs51, ds390 register bank)}
+\begin_inset LatexCommand index
+name "\\_\\_using (mcs51, ds390 register bank)"
 
 \end_inset
 
@@ -14527,14 +15614,15 @@ using
 
 \begin_layout Standard
 If the interrupt service routine is defined to be using a specific register
- bank then only
+ bank then only 
 \emph on
 a, b, dptr
 \emph default
  & psw are saved and restored, if such an interrupt service routine calls
  another function (using another register bank) then the entire register
  bank of the called function will be saved on the stack
-\begin_inset LatexCommand \index{stack}
+\begin_inset LatexCommand index
+name "stack"
 
 \end_inset
 
@@ -14548,7 +15636,8 @@ a, b, dptr
 
 \begin_layout Subsection
 HC08
-\begin_inset LatexCommand \index{HC08}
+\begin_inset LatexCommand index
+name "HC08"
 
 \end_inset
 
@@ -14557,7 +15646,8 @@ HC08
 
 \begin_layout Standard
 Since the number of interrupts
-\begin_inset LatexCommand \index{HC08!interrupt}
+\begin_inset LatexCommand index
+name "HC08!interrupt"
 
 \end_inset
 
@@ -14567,8 +15657,9 @@ Since the number of interrupts
  For example, interrupt 1 will use the interrupt vector at 0xfffc, interrupt
  2 will use the interrupt vector at 0xfffa, and so on.
  However, interrupt 0 (the reset vector at 0xfffe) is not redefinable in
- this way; instead see section
-\begin_inset LatexCommand \ref{sub:Startup-Code}
+ this way; instead see section 
+\begin_inset LatexCommand ref
+reference "sub:Startup-Code"
 
 \end_inset
 
@@ -14585,12 +15676,14 @@ Z80 Interrupt Service Routines
 
 \begin_layout Standard
 The Z80
-\begin_inset LatexCommand \index{Z80}
+\begin_inset LatexCommand index
+name "Z80"
 
 \end_inset
 
  uses several different methods for determining the correct interrupt
-\begin_inset LatexCommand \index{Z80!interrupt}
+\begin_inset LatexCommand index
+name "Z80!interrupt"
 
 \end_inset
 
@@ -14603,7 +15696,7 @@ The Z80
 By default, SDCC generates code for a maskable interrupt, which uses a RETI
  instruction to return from the interrupt.
  To write an interrupt handler for the non-maskable interrupt, which needs
- a RETN instruction instead, add the
+ a RETN instruction instead, add the 
 \emph on
 critical
 \emph default
@@ -14615,20 +15708,21 @@ critical
 \family typewriter
 void nmi_isr (void) critical interrupt
 \newline
-{
+{ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 ...
 \newline
 }
 \end_layout
 
 \begin_layout Standard
 However if you need to create a non-interruptable interrupt service routine
- you would also require the
+ you would also require the 
 \emph on
 critical
 \emph default
@@ -14651,20 +15745,22 @@ Critical Functions and Critical Statements
 
 \begin_layout Standard
 A special keyword may be associated with a block or a function declaring
- it as
+ it as 
 \emph on
 critical
 \emph default
 .
  SDCC will generate code to disable all interrupts
-\begin_inset LatexCommand \index{interrupt}
+\begin_inset LatexCommand index
+name "interrupt"
 
 \end_inset
 
  upon entry to a critical function and restore the interrupt enable to the
  previous state before returning.
  Nesting critical functions will need one additional byte on the stack
-\begin_inset LatexCommand \index{stack}
+\begin_inset LatexCommand index
+name "stack"
 
 \end_inset
 
@@ -14675,42 +15771,46 @@ critical
 
 \family typewriter
 int foo () __critical
-\begin_inset LatexCommand \index{critical}
+\begin_inset LatexCommand index
+name "critical"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_critical}
+\begin_inset LatexCommand index
+name "\\_\\_critical"
 
 \end_inset
 
-
 \newline
-{
+{ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 ...
 \newline
 }
 \end_layout
 
 \begin_layout Standard
-The critical attribute maybe used with other attributes like
+The critical attribute maybe used with other attributes like 
 \emph on
 reentrant.
 \emph default
 
 \newline
-The keyword
+The keyword 
 \emph on
 critical
 \emph default
@@ -14733,7 +15833,8 @@ Enabling and Disabling Interrupts directly
 
 \begin_layout Standard
 Interrupts
-\begin_inset LatexCommand \index{interrupt}
+\begin_inset LatexCommand index
+name "interrupt"
 
 \end_inset
 
@@ -14877,14 +15978,16 @@ EA = EA_SAVE;
 \end_layout
 
 \begin_layout Standard
-On other architectures which have seperate opcodes for enabling and disabling
+On other architectures which have separate opcodes for enabling and disabling
  interrupts you might want to make use of defines with inline assembly
-\begin_inset LatexCommand \index{Assembler routines}
+\begin_inset LatexCommand index
+name "Assembler routines"
 
 \end_inset
 
  (HC08
-\begin_inset LatexCommand \index{HC08!interrupt}
+\begin_inset LatexCommand index
+name "HC08!interrupt"
 
 \end_inset
 
@@ -14895,7 +15998,8 @@ On other architectures which have seperate opcodes for enabling and disabling
 
 \family typewriter
 #define CLI _asm
-\begin_inset LatexCommand \index{\_asm}
+\begin_inset LatexCommand index
+name "\\_asm"
 
 \end_inset
 
@@ -14904,11 +16008,12 @@ On other architectures which have seperate opcodes for enabling and disabling
 cli\InsetSpace ~
 \InsetSpace ~
 _endasm
-\begin_inset LatexCommand \index{\_endasm}
+\begin_inset LatexCommand index
+name "\\_endasm"
 
 \end_inset
 
-;
+; 
 \end_layout
 
 \begin_layout Verse
@@ -14918,7 +16023,7 @@ _endasm
 \InsetSpace ~
 sei\InsetSpace ~
 \InsetSpace ~
-_endasm;
+_endasm; 
 \end_layout
 
 \begin_layout Verse
@@ -14930,37 +16035,41 @@ _endasm;
 \begin_layout Standard
 Note: it is sometimes sufficient to disable only a specific interrupt source
  like f.e.
- a timer or serial interrupt by manipulating an
+ a timer or serial interrupt by manipulating an 
 \emph on
 interrupt mask
-\begin_inset LatexCommand \index{interrupt mask}
+\begin_inset LatexCommand index
+name "interrupt mask"
 
 \end_inset
 
 
 \emph default
  register.
 \end_layout
 
 \begin_layout Standard
 Usually the time during which interrupts are disabled should be kept as
  short as possible.
- This minimizes both
+ This minimizes both 
 \emph on
 interrupt latency
 \emph default
 
-\begin_inset LatexCommand \index{interrupt latency}
+\begin_inset LatexCommand index
+name "interrupt latency"
 
 \end_inset
 
  (the time between the occurrence of the interrupt and the execution of
- the first code in the interrupt routine) and
+ the first code in the interrupt routine) and 
 \emph on
 interrupt jitter
 \emph default
 
-\begin_inset LatexCommand \index{interrupt jitter}
+\begin_inset LatexCommand index
+name "interrupt jitter"
 
 \end_inset
 
@@ -14975,12 +16084,13 @@ interrupt jitter
 
 \begin_layout Standard
 You can reenable interrupts within an interrupt routine and on some architecture
-s you can make use of two (or more) levels of
+s you can make use of two (or more) levels of 
 \emph on
 interrupt priorities
 \emph default
 
-\begin_inset LatexCommand \index{interrupt priority}
+\begin_inset LatexCommand index
+name "interrupt priority"
 
 \end_inset
 
@@ -14989,16 +16099,19 @@ interrupt priorities
  be implemented by manipulating the interrupt mask and reenabling interrupts
  within the interrupt routine.
  Check there is sufficient space on the stack
-\begin_inset LatexCommand \index{stack}
+\begin_inset LatexCommand index
+name "stack"
 
 \end_inset
 
  and don't add complexity unless you have to.
 \end_layout
 
 \begin_layout Subsection
 Semaphore
-\begin_inset LatexCommand \index{semaphore}
+\begin_inset LatexCommand index
+name "semaphore"
 
 \end_inset
 
@@ -15007,15 +16120,17 @@ Semaphore
 
 \begin_layout Standard
 Some architectures (mcs51/ds390) have an atomic
-\begin_inset LatexCommand \index{atomic}
+\begin_inset LatexCommand index
+name "atomic"
 
 \end_inset
 
- bit test andclearinstruction.
+ bit test and clear instruction.
  These type of instructions are typically used in preemptive multitasking
  systems, where a routine f.e.
  claims the use of a data structure ('acquires a lock
-\begin_inset LatexCommand \index{lock}
+\begin_inset LatexCommand index
+name "lock"
 
 \end_inset
 
@@ -15024,11 +16139,13 @@ Some architectures (mcs51/ds390) have an atomic
  The instruction may also be used if interrupt and non-interrupt code have
  to compete for a resource.
  With the atomic bit test and clear instruction interrupts
-\begin_inset LatexCommand \index{interrupt}
+\begin_inset LatexCommand index
+name "interrupt"
 
 \end_inset
 
  don't have to be disabled for the locking operation.
 \end_layout
 
 \begin_layout Standard
@@ -15039,62 +16156,65 @@ SDCC generates this instruction if the source follows this pattern:
 
 \family typewriter
 volatile
-\begin_inset LatexCommand \index{volatile}
+\begin_inset LatexCommand index
+name "volatile"
 
 \end_inset
 
- bit resource_is_free;
+ bit resource_is_free; 
 \newline
 
 \newline
-if (resource_is_free)
+if (resource_is_free) 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-{
+{ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-resource_is_free=0;
+resource_is_free=0; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-resource_is_free=
-1;
+resource_is_free=1;
 \newline
 \InsetSpace ~
 \InsetSpace ~
-}
+} 
 \end_layout
 
 \begin_layout Standard
 Note, mcs51 and ds390 support only an atomic
-\begin_inset LatexCommand \index{atomic}
+\begin_inset LatexCommand index
+name "atomic"
 
 \end_inset
 
- bit test and
+ bit test and 
 \emph on
 clear
 \emph default
- instruction (as opposed to atomic bit test and
+ instruction (as opposed to atomic bit test and 
 \emph on
 set).
 \end_layout
 
 \begin_layout Section
 Functions using private register banks
-\begin_inset LatexCommand \label{sub:Functions-using-private-banks}
+\begin_inset LatexCommand label
+name "sub:Functions-using-private-banks"
 
 \end_inset
 
@@ -15103,30 +16223,34 @@ Functions using private register banks
 
 \begin_layout Standard
 Some architectures have support for quickly changing register sets.
- SDCC supports this feature with the
+ SDCC supports this feature with the 
 \emph on
 using
-\begin_inset LatexCommand \index{using (mcs51, ds390 register bank)}
+\begin_inset LatexCommand index
+name "using (mcs51, ds390 register bank)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_using (mcs51, ds390 register bank)}
+\begin_inset LatexCommand index
+name "\\_\\_using (mcs51, ds390 register bank)"
 
 \end_inset
 
 
 \emph default
  attribute (which tells the compiler to use a register bank
-\begin_inset LatexCommand \index{register bank (mcs51, ds390)}
+\begin_inset LatexCommand index
+name "register bank (mcs51, ds390)"
 
 \end_inset
 
  other than the default bank zero).
- It should only be applied to
+ It should only be applied to 
 \emph on
 interrupt
-\begin_inset LatexCommand \index{interrupt}
+\begin_inset LatexCommand index
+name "interrupt"
 
 \end_inset
 
@@ -15138,11 +16262,11 @@ interrupt
 \end_layout
 
 \begin_layout Standard
-The
+The 
 \emph on
 using
 \emph default
- attribute will have no effect on the generated code for a
+ attribute will have no effect on the generated code for a 
 \emph on
 non-interrupt
 \emph default
@@ -15168,13 +16292,17 @@ possible exception: if a function is called ONLY from 'interrupt' functions
 \emph on
 (pending: Note, nowadays the
 \emph default
-using
+ using 
 \emph on
- attribute has an effect onthe generated code for a
+attribute has an effect on
 \emph default
-non-interrupt
 \emph on
- function
+the generated code for a
+\emph default
+ non-interrupt 
+\emph on
+function
 \emph default
 .
 \emph on
@@ -15182,33 +16310,35 @@ non-interrupt
 \end_layout
 
 \begin_layout Standard
-An
+An 
 \emph on
 interrupt
 \emph default
  function using a non-zero bank will assume that it can trash that register
  bank, and will not save it.
  Since high-priority interrupts
-\begin_inset LatexCommand \index{interrupts}
+\begin_inset LatexCommand index
+name "interrupts"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{interrupt priority}
+\begin_inset LatexCommand index
+name "interrupt priority"
 
 \end_inset
 
  can interrupt low-priority ones on the 8051 and friends, this means that
- if a high-priority ISR
+ if a high-priority ISR 
 \emph on
 using
 \emph default
- a particular bank occurs while processing a low-priority ISR
+ a particular bank occurs while processing a low-priority ISR 
 \emph on
 using
 \emph default
  the same bank, terrible and bad things can happen.
- To prevent this, no single register bank should be
+ To prevent this, no single register bank should be 
 \emph on
 used
 \emph default
@@ -15227,6 +16357,7 @@ It is most efficient if your ISR calls no other functions.
  called functions use bank zero.
  It is very inefficient to call a function using a different, non-zero bank
  from an ISR.
 \begin_inset VSpace bigskip
 \end_inset
 
@@ -15235,12 +16366,14 @@ It is most efficient if your ISR calls no other functions.
 
 \begin_layout Section
 Startup Code
-\begin_inset LatexCommand \label{sub:Startup-Code}
+\begin_inset LatexCommand label
+name "sub:Startup-Code"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Startup code}
+\begin_inset LatexCommand index
+name "Startup code"
 
 \end_inset
 
@@ -15254,7 +16387,8 @@ MCS51/DS390 Startup Code
 \begin_layout Standard
 The compiler triggers the linker to link certain initialization modules
  from the runtime library
-\begin_inset LatexCommand \index{Runtime library}
+\begin_inset LatexCommand index
+name "Runtime library"
 
 \end_inset
 
@@ -16113,18 +17247,20 @@ sjmp .
 \end_layout
 
 \begin_layout Standard
-One of these modules (crtstart.asm) contains a call to the C routine
+One of these modules (crtstart.asm) contains a call to the C routine 
 \emph on
 _sdcc_external_startup()
-\begin_inset LatexCommand \index{\_sdcc\_external\_startup()}
+\begin_inset LatexCommand index
+name "\\_sdcc\\_external\\_startup()"
 
 \end_inset
 
 
 \emph default
-at the start of the CODE area.
+ at the start of the CODE area.
  This routine is also in the runtime library
-\begin_inset LatexCommand \index{Runtime library}
+\begin_inset LatexCommand index
+name "Runtime library"
 
 \end_inset
 
@@ -16133,32 +17269,35 @@ at the start of the CODE area.
  initialization will be skipped and the function main will be invoked.
  Otherwise static & global variables will be initialized before the function
  main is invoked.
- You could add an
+ You could add an 
 \emph on
 _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
  initialization
-\begin_inset LatexCommand \index{Variable initialization}
+\begin_inset LatexCommand index
+name "Variable initialization"
 
 \end_inset
 
 .
  On some mcs51 variants xdata
-\begin_inset LatexCommand \index{xdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "xdata (mcs51, ds390 storage class)"
 
 \end_inset
 
  memory has to be explicitly enabled before it can be accessed or if the
  watchdog
-\begin_inset LatexCommand \index{watchdog}
+\begin_inset LatexCommand index
+name "watchdog"
 
 \end_inset
 
  needs to be disabled, this is the place to do it.
  The startup code clears all internal data memory, 256 bytes by default,
- but from 0 to n-1 if
+ but from 0 to n-1 if 
 \emph on
 -
 \begin_inset ERT
@@ -16174,7 +17313,8 @@ status collapsed
 \end_inset
 
 -iram-size
-\begin_inset LatexCommand \index{-\/-iram-size <Value>}
+\begin_inset LatexCommand index
+name "-\\/-iram-size <Value>"
 
 \end_inset
 
 \end_layout
 
 \begin_layout Standard
-See also the compiler options
+See also the compiler options 
 \emph on
 -
 \begin_inset ERT
@@ -16207,11 +17347,12 @@ status collapsed
 opt
 \emph default
 
-\begin_inset LatexCommand \index{-\/-no-xinit-opt}
+\begin_inset LatexCommand index
+name "-\\/-no-xinit-opt"
 
 \end_inset
 
-,
+, 
 \emph on
 -
 \begin_inset ERT
@@ -16229,12 +17370,14 @@ status collapsed
 -main-return
 \emph default
 
-\begin_inset LatexCommand \index{-\/-main-return}
+\begin_inset LatexCommand index
+name "-\\/-main-return"
 
 \end_inset
 
- and section
-\begin_inset LatexCommand \ref{sub:MCS51-variants}
+ and section 
+\begin_inset LatexCommand ref
+reference "sub:MCS51-variants"
 
 \end_inset
 
@@ -16246,30 +17389,31 @@ status collapsed
 \begin_layout Standard
 While these initialization modules are meant as generic startup code there
  might be the need for customization.
- Let's assume the return value of
+ Let's assume the return value of 
 \emph on
 _sdcc_external_startup()
 \emph default
- in
+ in 
 \emph on
 crtstart.asm
 \emph default
- should not be checked (or
+ should not be checked (or 
 \emph on
 _sdcc_external_startup()
 \emph default
  should not be called at all).
- The recommended way would be to copy
+ The recommended way would be to copy 
 \emph on
 crtstart.asm
 \emph default
  (f.e.
- from
-\begin_inset LatexCommand \url{http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/device/lib/mcs51/crtstart.asm}
+ from 
+\begin_inset LatexCommand url
+target "http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/device/lib/mcs51/crtstart.asm"
 
 \end_inset
 
-) into the source directory, adapt it there, then assemble it with
+) into the source directory, adapt it there, then assemble it with 
 \emph on
 asx8051 -plosgff
 \begin_inset Foot
@@ -16283,8 +17427,9 @@ status open
 \begin_inset Quotes srd
 \end_inset
 
- are the assembler options used in
-\begin_inset LatexCommand \url{http://sdcc.svn.sourceforge.net/viewvc/sdcc/trunk/sdcc/device/lib/mcs51/Makefile.in?view=markup }
+ are the assembler options used in 
+\begin_inset LatexCommand url
+target "http://sdcc.svn.sourceforge.net/viewvc/sdcc/trunk/sdcc/device/lib/mcs51/Makefile.in?view=markup "
 
 \end_inset
 
@@ -16295,12 +17440,12 @@ status open
 
  crtstart.asm
 \emph default
- and when linking your project explicitely specify
+ and when linking your project explicitly specify 
 \emph on
 crtstart.rel
 \emph default
 .
- As a bonus a listing of the relocated object file
+ As a bonus a listing of the relocated object file 
 \emph on
 crtstart.rst
 \emph default
@@ -16320,7 +17465,8 @@ HC08 Startup Code
 
 \begin_layout Standard
 The HC08
-\begin_inset LatexCommand \index{HC08}
+\begin_inset LatexCommand index
+name "HC08"
 
 \end_inset
 
@@ -16337,13 +17483,14 @@ Z80 Startup Code
 
 \begin_layout Standard
 On the Z80
-\begin_inset LatexCommand \index{Z80}
+\begin_inset LatexCommand index
+name "Z80"
 
 \end_inset
 
  the startup code is inserted by linking with crt0.o which is generated from
  sdcc/device/lib/z80/crt0.s.
- If you need a different startup code you can use the compiler option
+ If you need a different startup code you can use the compiler option 
 \emph on
 -
 \series bold
@@ -16367,11 +17514,13 @@ status collapsed
 -no-std-crt0
 \emph default
 
-\begin_inset LatexCommand \index{-\/-no-std-crt0}
+\begin_inset LatexCommand index
+name "-\\/-no-std-crt0"
 
 \end_inset
 
  and provide your own crt0.o.
 \begin_inset VSpace bigskip
 \end_inset
 
@@ -16380,7 +17529,8 @@ status collapsed
 
 \begin_layout Section
 Inline Assembler Code
-\begin_inset LatexCommand \index{Assembler routines}
+\begin_inset LatexCommand index
+name "Assembler routines"
 
 \end_inset
 
@@ -16389,7 +17539,8 @@ Inline Assembler Code
 
 \begin_layout Subsection
 A Step by Step Introduction
-\begin_inset LatexCommand \label{sub:A-Step-by Assembler Introduction}
+\begin_inset LatexCommand label
+name "sub:A-Step-by Assembler Introduction"
 
 \end_inset
 
@@ -16409,27 +17560,32 @@ Starting from a small snippet of c-code this example shows for the MCS51
 \family typewriter
 \size footnotesize
 unsigned char __far
-\begin_inset LatexCommand \index{far (storage class)}
+\begin_inset LatexCommand index
+name "far (storage class)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_far (storage class)}
+\begin_inset LatexCommand index
+name "\\_\\_far (storage class)"
 
 \end_inset
 
  __at
-\begin_inset LatexCommand \index{at}
+\begin_inset LatexCommand index
+name "at"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_at}
+\begin_inset LatexCommand index
+name "\\_\\_at"
 
 \end_inset
 
 (0x7f00) buf[0x100];
-\begin_inset LatexCommand \index{Aligned array}
+\begin_inset LatexCommand index
+name "Aligned array"
 
 \end_inset
 
@@ -16453,7 +17609,8 @@ unsigned char head, tail;\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 /* if interrupts
-\begin_inset LatexCommand \index{interrupt}
+\begin_inset LatexCommand index
+name "interrupt"
 
 \end_inset
 
@@ -16504,20 +17661,27 @@ unsigned char head, tail;\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-section
-\begin_inset LatexCommand \ref{sub:Common-interrupt-pitfall-volatile}
+section 
+\begin_inset LatexCommand ref
+reference "sub:Common-interrupt-pitfall-volatile"
 
 \end_inset
 
  about
+\family default
+\family typewriter
 \series bold
- volatile
+volatile
+\family default
 \series default
- */
+\family typewriter
+*/
 \newline
 
 \newline
-void to_buffer( unsigned char c )
+void to_buffer( unsigned char c ) 
 \newline
 {
 \newline
@@ -16528,16 +17692,24 @@ void to_buffer( unsigned char c )
 if( head != (unsigned char)(tail-1)
  )\InsetSpace ~
 /* cast
+\family default
+\family typewriter
 \series bold
 needed
+\family default
 \series default
- to avoid promotion
-\begin_inset LatexCommand \index{promotion to signed int}
+\family typewriter
+to avoid promotion
+\begin_inset LatexCommand index
+name "promotion to signed int"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{type promotion}
+\begin_inset LatexCommand index
+name "type promotion"
 
 \end_inset
 
@@ -16582,19 +17754,19 @@ buf[ head++ ] = c;\InsetSpace ~
 \InsetSpace ~
 /* access to a 256 byte aligned array */
 \newline
-}
+} 
 \end_layout
 
 \begin_layout Standard
 If the code snippet (assume it is saved in buffer.c) is compiled with SDCC
  then a corresponding buffer.asm file is generated.
- We define a new function
+ We define a new function 
 \family typewriter
 to_buffer_asm()
 \family default
  in file buffer.c in which we cut and paste the generated code, removing
  unwanted comments and some ':'.
- Then add
+ Then add 
 \begin_inset Quotes sld
 \end_inset
 
@@ -16606,7 +17778,7 @@ _asm
 \begin_inset Quotes srd
 \end_inset
 
- and
+ and 
 \begin_inset Quotes sld
 \end_inset
 
@@ -16644,24 +17816,26 @@ Note, that the single underscore form (_asm and _endasm) are not C99-compatible,
 \InsetSpace ~
 \InsetSpace ~
 The
- function is not yet OK! (registers aren't saved) */
+ function is not yet OK! (registers aren't saved) */ 
 \newline
 void to_buffer_asm(
- unsigned char c )
+ unsigned char c ) 
 \newline
-{
+{ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 _asm
-\begin_inset LatexCommand \index{\_asm}
+\begin_inset LatexCommand index
+name "\\_asm"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_asm}
+\begin_inset LatexCommand index
+name "\\_\\_asm"
 
 \end_inset
 
@@ -16673,20 +17847,28 @@ _asm
 \InsetSpace ~
 mov\InsetSpace ~
 \InsetSpace ~
-r2,dpl
+r2,dpl 
 \newline
 ;buffer.c if( head != (unsigned char)(tail-1) ) \InsetSpace ~
 /* cast
+\family default
+\family typewriter
 \series bold
 needed
+\family default
 \series default
- to avoid promotion
-\begin_inset LatexCommand \index{promotion to signed int}
+\family typewriter
+to avoid promotion
+\begin_inset LatexCommand index
+name "promotion to signed int"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{type promotion}
+\begin_inset LatexCommand index
+name "type promotion"
 
 \end_inset
 
@@ -16698,7 +17880,7 @@ needed
 \InsetSpace ~
 mov\InsetSpace ~
 \InsetSpace ~
-a,_tail
+a,_tail 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -16706,7 +17888,7 @@ a,_tail
 \InsetSpace ~
 dec\InsetSpace ~
 \InsetSpace ~
-a
+a 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 mov\InsetSpace ~
 \InsetSpace ~
-r3,a
+r3,a 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -16722,13 +17904,13 @@ r3,a
 \InsetSpace ~
 mov\InsetSpace ~
 \InsetSpace ~
-a,_head
+a,_head 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-cjne a,ar3,00106$
+cjne a,ar3,00106$ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -16737,10 +17919,11 @@ cjne a,ar3,00106$
 ret
 \newline
 00106$:
 \newline
-;buffer.c
- buf[ head++ ] = c; /* access to a 256 byte aligned array */
-\begin_inset LatexCommand \index{Aligned array}
+;buffer.c buf[ head++ ] = c; /* access to a 256 byte aligned array */
+\begin_inset LatexCommand index
+name "Aligned array"
 
 \end_inset
 
@@ -16752,7 +17935,7 @@ ret
 \InsetSpace ~
 mov\InsetSpace ~
 \InsetSpace ~
-r3,_head
+r3,_head 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -16760,7 +17943,7 @@ r3,_head
 \InsetSpace ~
 inc\InsetSpace ~
 \InsetSpace ~
-_head
+_head 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -16768,7 +17951,7 @@ _head
 \InsetSpace ~
 mov\InsetSpace ~
 \InsetSpace ~
-dpl,r3
+dpl,r3 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -16776,7 +17959,7 @@ dpl,r3
 \InsetSpace ~
 mov\InsetSpace ~
 \InsetSpace ~
-dph,#(_buf >> 8)
+dph,#(_buf >> 8) 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -16784,15 +17967,16 @@ dph,#(_buf >> 8)
 \InsetSpace ~
 mov\InsetSpace ~
 \InsetSpace ~
-a,r2
+a,r2 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 movx @dptr,a
 \newline
-00103$:
+00103$: 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -16804,20 +17988,21 @@ ret
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-_end
-asm
-\begin_inset LatexCommand \index{\_endasm}
+_endasm
+\begin_inset LatexCommand index
+name "\\_endasm"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_endasm}
+\begin_inset LatexCommand index
+name "\\_\\_endasm"
 
 \end_inset
 
 ;
 \newline
-}
+} 
 \end_layout
 
 \begin_layout Standard
@@ -16889,12 +18074,14 @@ c; // to avoid warning: unreferenced function argument
 \InsetSpace ~
 \InsetSpace ~
 _asm
-\begin_inset LatexCommand \index{\_asm}
+\begin_inset LatexCommand index
+name "\\_asm"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_asm}
+\begin_inset LatexCommand index
+name "\\_\\_asm"
 
 \end_inset
 
@@ -16909,6 +18096,7 @@ _asm
 \InsetSpace ~
 \InsetSpace ~
 ; save used registers here.
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -16918,8 +18106,8 @@ _asm
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-; If we were still using r2,r3 we would have to
- push them here.
+; If we were still using r2,r3 we would have to push them here.
 \newline
 ; if( head != (unsigned char)(tail-1) )
 \newline
@@ -16954,7 +18142,6 @@ dec\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 xrl\InsetSpace ~
-
  a,_head
 \newline
 \InsetSpace ~
@@ -16965,7 +18152,8 @@ xrl\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-; we could do an ANL a,#0x0f here to use a smaller buffer (see below)
+; we
+ could do an ANL a,#0x0f here to use a smaller buffer (see below)
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -16977,7 +18165,6 @@ xrl\InsetSpace ~
 \InsetSpace ~
 jz\InsetSpace ~
 \InsetSpace ~
-
  t_b_end$
 \newline
 \InsetSpace ~
@@ -16990,7 +18177,8 @@ jz\InsetSpace ~
 \InsetSpace ~
 ;
 \newline
-; buf[ head++ ] = c;
+;
+ buf[ head++ ] = c;
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -17008,8 +18196,7 @@ mov\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-; dpl holds lower byte of function
- argument
+; dpl holds lower byte of function argument
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -17020,6 +18207,7 @@ mov\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 mov\InsetSpace ~
+
  dpl,_head \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -17033,9 +18221,9 @@ mov\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-m
-ov\InsetSpace ~
- dph,#(_buf>>8)
+mov\InsetSpace ~
+ dph,#(_bu
+f>>8)
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -17066,8 +18254,8 @@ _head
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-; we could do an ANL _head,#0x0f here
to use a smaller buffer (see above)
+; we could do an ANL _head,#0x0f here to use a
+ smaller buffer (see above)
 \newline
 t_b_end$:
 \newline
@@ -17079,20 +18267,21 @@ t_b_end$:
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-; restore used registers here
+; restore used registers here 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-_endas
-m
-\begin_inset LatexCommand \index{\_endasm}
+_endasm
+\begin_inset LatexCommand index
+name "\\_endasm"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_endasm}
+\begin_inset LatexCommand index
+name "\\_\\_endasm"
 
 \end_inset
 
@@ -17108,17 +18297,20 @@ The inline assembler code can contain any valid code understood by the assembler
 , this includes any assembler directives and comment lines.
  The assembler does not like some characters like ':' or ''' in comments.
  You'll find an 100+ pages assembler manual in sdcc/as/doc/asxhtm.html
-\begin_inset LatexCommand \index{asXXXX (as-gbz80, as-hc08, asx8051, as-z80)}
+\begin_inset LatexCommand index
+name "asXXXX (as-gbz80, as-hc08, asx8051, as-z80)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Assembler documentation}
+\begin_inset LatexCommand index
+name "Assembler documentation"
 
 \end_inset
 
- or online at
-\begin_inset LatexCommand \url{http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/as/doc/asxhtm.html}
+ or online at 
+\begin_inset LatexCommand url
+target "http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/as/doc/asxhtm.html"
 
 \end_inset
 
@@ -17127,15 +18319,17 @@ The inline assembler code can contain any valid code understood by the assembler
 \end_layout
 
 \begin_layout Standard
-The compiler does not do any validation of the code within the
+The compiler does not do any validation of the code within the 
 \family typewriter
 _asm
-\begin_inset LatexCommand \index{\_asm}
+\begin_inset LatexCommand index
+name "\\_asm"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_asm}
+\begin_inset LatexCommand index
+name "\\_\\_asm"
 
 \end_inset
 
@@ -17143,12 +18337,14 @@ _asm
  _endasm
 \size footnotesize
 
-\begin_inset LatexCommand \index{\_endasm}
+\begin_inset LatexCommand index
+name "\\_endasm"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_endasm}
+\begin_inset LatexCommand index
+name "\\_\\_endasm"
 
 \end_inset
 
@@ -17159,11 +18355,13 @@ _asm
  keyword pair.
  Specifically it will not know which registers are used and thus register
  pushing/popping
-\begin_inset LatexCommand \index{push/pop}
+\begin_inset LatexCommand index
+name "push/pop"
 
 \end_inset
 
  has to be done manually.
 \end_layout
 
 \begin_layout Standard
@@ -17185,7 +18383,8 @@ status collapsed
 -
 \emph on
 peep-asm
-\begin_inset LatexCommand \index{-\/-peep-asm}
+\begin_inset LatexCommand index
+name "-\\/-peep-asm"
 
 \end_inset
 
@@ -17193,14 +18392,15 @@ peep-asm
 \emph default
  command line option is used, the inline assembler code will be passed through
  the peephole optimizer
-\begin_inset LatexCommand \index{Peephole optimizer}
+\begin_inset LatexCommand index
+name "Peephole optimizer"
 
 \end_inset
 
 .
  There are only a few (if any) cases where this option makes sense, it might
  cause some unexpected changes in the inline assembler code.
- Please go through the peephole optimizer rules defined in file
+ Please go through the peephole optimizer rules defined in file 
 \emph on
 SDCCpeeph.def
 \emph default
@@ -17209,12 +18409,14 @@ SDCCpeeph.def
 
 \begin_layout Subsection
 Naked Functions
-\begin_inset LatexCommand \label{sub:Naked-Functions}
+\begin_inset LatexCommand label
+name "sub:Naked-Functions"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Naked functions}
+\begin_inset LatexCommand index
+name "Naked functions"
 
 \end_inset
 
@@ -17222,38 +18424,43 @@ Naked Functions
 \end_layout
 
 \begin_layout Standard
-A special keyword may be associated with a function declaring it as
+A special keyword may be associated with a function declaring it as 
 \emph on
 _naked
-\begin_inset LatexCommand \index{\_naked}
+\begin_inset LatexCommand index
+name "\\_naked"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_naked}
+\begin_inset LatexCommand index
+name "\\_\\_naked"
 
 \end_inset
 
 .
+
 \emph default
-The
+ The 
 \emph on
 _naked
 \emph default
  function modifier attribute prevents the compiler from generating prologue
-\begin_inset LatexCommand \index{function prologue}
+\begin_inset LatexCommand index
+name "function prologue"
 
 \end_inset
 
  and epilogue
-\begin_inset LatexCommand \index{function epilogue}
+\begin_inset LatexCommand index
+name "function epilogue"
 
 \end_inset
 
  code for that function.
  This means that the user is entirely responsible for such things as saving
  any registers that may need to be preserved, selecting the proper register
- bank, generating the
+ bank, generating the 
 \emph on
 return
 \emph default
@@ -17269,7 +18476,8 @@ return
 
 \family typewriter
 volatile
-\begin_inset LatexCommand \index{volatile}
+\begin_inset LatexCommand index
+name "volatile"
 
 \end_inset
 
@@ -17278,12 +18486,14 @@ volatile
 
 \newline
 void simpleInterrupt(void) __interrupt
-\begin_inset LatexCommand \index{interrupt}
+\begin_inset LatexCommand index
+name "interrupt"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_interrupt}
+\begin_inset LatexCommand index
+name "\\_\\_interrupt"
 
 \end_inset
 
@@ -17310,12 +18520,14 @@ void nakedInterrupt(void) __interrupt (2) __naked
 \InsetSpace ~
 \InsetSpace ~
 _asm
-\begin_inset LatexCommand \index{\_asm}
+\begin_inset LatexCommand index
+name "\\_asm"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_asm}
+\begin_inset LatexCommand index
+name "\\_\\_asm"
 
 \end_inset
 
@@ -17352,12 +18564,14 @@ reti\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 _endasm
-\begin_inset LatexCommand \index{\_endasm}
+\begin_inset LatexCommand index
+name "\\_endasm"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_endasm}
+\begin_inset LatexCommand index
+name "\\_\\_endasm"
 
 \end_inset
 
@@ -17374,16 +18588,28 @@ For an 8051 target, the generated simpleInterrupt looks like:
 
 \family typewriter
 Note, this is an
+\family default
+\family typewriter
 \emph on
 outdated
+\family default
 \emph default
- example, recent versions of SDCC generate
+\family typewriter
+example, recent versions of SDCC generate
 \newline
 the
+\family default
+\family typewriter
 \emph on
 same
+\family default
 \emph default
- code for simpleInterrupt() and nakedInterrupt()!
+\family typewriter
+code for simpleInterrupt() and nakedInterrupt()!
 \newline
 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-pu
-sh\InsetSpace ~
+pus
+h\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -17565,12 +18791,14 @@ reti\InsetSpace ~
 
 \begin_layout Standard
 The related directive #pragma exclude
-\begin_inset LatexCommand \index{\#pragma exclude}
+\begin_inset LatexCommand index
+name "\\#pragma exclude"
 
 \end_inset
 
  allows a more fine grained control over pushing & popping
-\begin_inset LatexCommand \index{push/pop}
+\begin_inset LatexCommand index
+name "push/pop"
 
 \end_inset
 
@@ -17578,7 +18806,7 @@ The related directive #pragma exclude
 \end_layout
 
 \begin_layout Standard
-While there is nothing preventing you from writing C code inside a
+While there is nothing preventing you from writing C code inside a 
 \family typewriter
 _naked
 \family default
@@ -17594,11 +18822,12 @@ Use of Labels within Inline Assembler
 SDCC allows the use of in-line assembler with a few restrictions regarding
  labels.
  All labels defined within inline assembler code have to be of the form
 \emph on
 nnnnn$
 \emph default
  where nnnnn is a number less than 100 (which implies a limit of utmost
- 100 inline assembler labels
+ 100 inline assembler labels 
 \emph on
 per function
 \emph default
@@ -17633,23 +18862,25 @@ The numeric part of local labels does not need to have 5 digits (although
 
 \end_inset
 
-
 \end_layout
 
 \begin_layout Verse
 
 \family typewriter
 _asm
-\begin_inset LatexCommand \index{\_asm}
+\begin_inset LatexCommand index
+name "\\_asm"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_asm}
+\begin_inset LatexCommand index
+name "\\_\\_asm"
 
 \end_inset
 
-
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -17660,9 +18891,9 @@ mov\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-b,#10
+b,#10 
 \newline
-00001$:
+00001$: 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -17672,15 +18903,17 @@ djnz\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-b,00001$
+b,00001$ 
 \newline
 _endasm
-\begin_inset LatexCommand \index{\_endasm}
+\begin_inset LatexCommand index
+name "\\_endasm"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_endasm}
+\begin_inset LatexCommand index
+name "\\_\\_endasm"
 
 \end_inset
 
@@ -17690,7 +18923,8 @@ _endasm
 \begin_layout Standard
 Inline assembler code cannot reference any C-labels, however it can reference
  labels
-\begin_inset LatexCommand \index{Labels}
+\begin_inset LatexCommand index
+name "Labels"
 
 \end_inset
 
@@ -17700,19 +18934,19 @@ Inline assembler code cannot reference any C-labels, however it can reference
 \begin_layout Verse
 
 \family typewriter
-foo() {
+foo() { 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-/* some c code */
+/* some c code */ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-_asm
+_asm 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -17720,7 +18954,7 @@ _asm
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-; some assembler code
+; some assembler code 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -17728,29 +18962,30 @@ _asm
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-ljmp 0003$
+ljmp 0003$ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 _endasm;
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-/* some
- more c code */
+/* some more c code */ 
 \newline
 clabel:\InsetSpace ~
 \InsetSpace ~
-/* inline assembler cannot reference this label */
+/* inline assembler cannot reference this
+ label */ 
 \begin_inset Foot
 status open
 
 \begin_layout Standard
-Here, the C-label
+Here, the C-label 
 \family typewriter
 clabel
 \family default
@@ -17772,23 +19007,25 @@ _asm
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-0003$: ;label (can be referenced by inline assembler only)
+0003$: ;label (can be referenced by inline assembler only) 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 _endasm
-\begin_inset LatexCommand \index{\_endasm}
+\begin_inset LatexCommand index
+name "\\_endasm"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_endasm}
+\begin_inset LatexCommand index
+name "\\_\\_endasm"
 
 \end_inset
 
- ;
+ ; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -17808,7 +19045,8 @@ In other words inline assembly code can access labels defined in inline
 
 \begin_layout Section
 Interfacing with Assembler Code
-\begin_inset LatexCommand \index{Assembler routines}
+\begin_inset LatexCommand index
+name "Assembler routines"
 
 \end_inset
 
@@ -17817,7 +19055,8 @@ Interfacing with Assembler Code
 
 \begin_layout Subsection
 Global Registers used for Parameter Passing
-\begin_inset LatexCommand \index{Parameter passing}
+\begin_inset LatexCommand index
+name "Parameter passing"
 
 \end_inset
 
@@ -17825,104 +19064,111 @@ Global Registers used for Parameter Passing
 \end_layout
 
 \begin_layout Standard
-The compiler always uses the global registers
+The compiler always uses the global registers 
 \emph on
 DPL, DPH
-\begin_inset LatexCommand \index{DPTR, DPH, DPL}
+\begin_inset LatexCommand index
+name "DPTR, DPH, DPL"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{DPTR}
+\begin_inset LatexCommand index
+name "DPTR"
 
 \end_inset
 
 , B
-\begin_inset LatexCommand \index{B (mcs51, ds390 register)}
+\begin_inset LatexCommand index
+name "B (mcs51, ds390 register)"
 
 \end_inset
 
 
 \emph default
-and
+ and 
 \emph on
- ACC
-\begin_inset LatexCommand \index{ACC (mcs51, ds390 register)}
+ACC
+\begin_inset LatexCommand index
+name "ACC (mcs51, ds390 register)"
 
 \end_inset
 
 
 \emph default
  to pass the first (non-bit) parameter to a function, and also to pass the
- return value
-\begin_inset LatexCommand \index{return value}
+ return value 
+\begin_inset LatexCommand index
+name "return value"
 
 \end_inset
 
 of function; according to the following scheme: one byte return value in
 \emph on
 DPL
 \emph default
-, two byte value in
+, two byte value in 
 \emph on
 DPL
 \emph default
- (LSB) and
+ (LSB) and 
 \emph on
 DPH
 \emph default
  (MSB).
- three byte values (generic pointers) in
+ three byte values (generic pointers) in 
 \emph on
 DPH
 \emph default
-,
+, 
 \emph on
 DPL
 \emph default
- and
+ and 
 \emph on
 B
 \emph default
-, and four byte values in
+, and four byte values in 
 \emph on
 DPH
 \emph default
-,
+, 
 \emph on
 DPL
 \emph default
-,
+, 
 \emph on
- B
+B
 \emph default
- and
+ and 
 \emph on
 ACC
 \emph default
 .
  Generic pointers
-\begin_inset LatexCommand \index{generic pointer}
+\begin_inset LatexCommand index
+name "generic pointer"
 
 \end_inset
 
- contain type of accessed memory in
+ contain type of accessed memory in 
 \emph on
 B
 \emph default
-:
+: 
 \series bold
 0x00
 \series default
- -- xdata/far,
+ -- xdata/far, 
 \series bold
 0x40
 \series default
- -- idata/near -- ,
+ -- idata/near -- , 
 \series bold
 0x60
 \series default
- -- pdata,
+ -- pdata, 
 \series bold
 0x80
 \series default
@@ -17965,7 +19211,8 @@ Bit parameters are passed in a virtual register called 'bits' in bit-addressable
 \begin_layout Standard
 Functions (with two or more parameters or bit parameters) that are called
  through function pointers
-\begin_inset LatexCommand \index{function pointers}
+\begin_inset LatexCommand index
+name "function pointers"
 
 \end_inset
 
@@ -17977,12 +19224,13 @@ Registers usage
 \end_layout
 
 \begin_layout Standard
-Unless the called function is declared as
+Unless the called function is declared as 
 \family typewriter
 _naked
 \family default
 
-\begin_inset LatexCommand \index{naked}
+\begin_inset LatexCommand index
+name "naked"
 
 \end_inset
 
@@ -18000,7 +19248,8 @@ status collapsed
 \end_inset
 
 -callee-saves
-\begin_inset LatexCommand \index{-\/-callee-saves}
+\begin_inset LatexCommand index
+name "-\\/-callee-saves"
 
 \end_inset
 
@@ -18026,32 +19275,33 @@ R0-R7
 \end_layout
 
 \begin_layout Standard
-If the called function is not declared as
+If the called function is not declared as 
 \family typewriter
 _naked
 \family default
 , the caller will swap register banks around the call, if caller and callee
- use different register banks (having them defined by the
+ use different register banks (having them defined by the 
 \family typewriter
 _using
 \family default
  modifier).
 \end_layout
 
 \begin_layout Standard
-The called function can also use
+The called function can also use 
 \emph on
 DPL
 \emph default
-,
+, 
 \emph on
 DPH
 \emph default
-,
+, 
 \emph on
 B
 \emph default
- and
+ and 
 \emph on
 ACC
 \emph default
@@ -18064,18 +19314,21 @@ Assembler Routine (non-reentrant)
 
 \begin_layout Standard
 In the following example
-\begin_inset LatexCommand \index{reentrant}
+\begin_inset LatexCommand index
+name "reentrant"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Assembler routines (non-reentrant)}
+\begin_inset LatexCommand index
+name "Assembler routines (non-reentrant)"
 
 \end_inset
 
  the function c_func calls an assembler routine asm_func, which takes two
  parameters
-\begin_inset LatexCommand \index{function parameter}
+\begin_inset LatexCommand index
+name "function parameter"
 
 \end_inset
 
@@ -18124,7 +19377,7 @@ The corresponding assembler function is:
 \begin_layout Verse
 
 \family typewriter
-.globl _asm_func_PARM_2
+.globl _asm_func_PARM_2 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -18134,7 +19387,7 @@ The corresponding assembler function is:
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-.globl _asm_func
+.globl _asm_func 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -18144,7 +19397,7 @@ The corresponding assembler function is:
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-.area OSEG
+.area OSEG 
 \newline
 _asm_func_PARM_2:
 \newline
@@ -18156,7 +19409,8 @@ _asm_func_PARM_2:
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-.ds 1
+.ds   
+ 1 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -18166,10 +19420,9 @@ _asm_func_PARM_2:
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-.area
- CSEG
+.area CSEG 
 \newline
-_asm_func:
+_asm_func: 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -18183,7 +19436,7 @@ mov\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-a,dpl
+a,dpl 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -18197,7 +19450,7 @@ add\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-a,_asm_func_PARM_2
+a,_asm_func_PARM_2 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -18211,7 +19464,7 @@ mov\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-dpl,a
+dpl,a 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -18226,11 +19479,12 @@ mov\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 dph
-\begin_inset LatexCommand \index{DPTR, DPH, DPL}
+\begin_inset LatexCommand index
+name "DPTR, DPH, DPL"
 
 \end_inset
 
-,#0x00
+,#0x00 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -18246,19 +19500,19 @@ ret
 \begin_layout Standard
 The parameter naming convention is _<function_name>_PARM_<n>, where n is
  the parameter number starting from 1, and counting from the left.
- The first parameter is passed in
+ The first parameter is passed in 
 \emph on
 DPH
 \emph default
-,
+, 
 \emph on
 DPL
 \emph default
-,
+, 
 \emph on
 B
 \emph default
- and
+ and 
 \emph on
 ACC
 \emph default
@@ -18299,17 +19553,20 @@ Assembler Routine (reentrant)
 
 \begin_layout Standard
 In this case
-\begin_inset LatexCommand \index{reentrant}
+\begin_inset LatexCommand index
+name "reentrant"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Assembler routines (reentrant)}
+\begin_inset LatexCommand index
+name "Assembler routines (reentrant)"
 
 \end_inset
 
  the second parameter
-\begin_inset LatexCommand \index{function parameter}
+\begin_inset LatexCommand index
+name "function parameter"
 
 \end_inset
 
@@ -18328,30 +19585,30 @@ extern int asm_func(unsigned char, unsigned char, unsigned char) reentrant;
 
 \newline
 int
- c_func (unsigned char i, unsigned char j, unsigned char k) reentrant
+ c_func (unsigned char i, unsigned char j, unsigned char k) reentrant 
 \newline
 {
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-return
- asm_func(i,j,k);
+return asm_func(i,j,k); 
 \newline
-}
+} 
 \newline
 
 \newline
-int main()
+int main() 
 \newline
-{
+{ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-return c_func(10,9,8);
+return c_func(10,9,8); 
 \newline
 }
 \end_layout
@@ -18363,16 +19620,16 @@ The corresponding (unoptimized) assembler routine is:
 \begin_layout Verse
 
 \family typewriter
-.globl _asm_func
+.globl _asm_func 
 \newline
-_asm_func:
+_asm_func: 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 push\InsetSpace ~
-_bp
+_bp 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -18386,8 +19643,8 @@ _bp,sp\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-;stack contains: _bp, return address,
- second parameter, third parameter
+;stack contains: _bp, return
address, second parameter, third parameter
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -18425,7 +19682,7 @@ a,#0xfd\InsetSpace ~
 \InsetSpace ~
 mov\InsetSpace ~
 \InsetSpace ~
-r0,a
+r0,a 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -18433,7 +19690,7 @@ r0,a
 \InsetSpace ~
 mov\InsetSpace ~
 \InsetSpace ~
-a,_bp
+a,_bp 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -18455,7 +19712,7 @@ a,#0xfc\InsetSpace ~
 \InsetSpace ~
 mov\InsetSpace ~
 \InsetSpace ~
-r1,a
+r1,a 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -18512,7 +19769,7 @@ dpl,a\InsetSpace ~
 \InsetSpace ~
 mov\InsetSpace ~
 \InsetSpace ~
-dph,#0x00
+dph,#0x00 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -18520,7 +19777,7 @@ dph,#0x00
 \InsetSpace ~
 mov\InsetSpace ~
 \InsetSpace ~
-sp,_bp
+sp,_bp 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -18528,7 +19785,7 @@ sp,_bp
 \InsetSpace ~
 pop\InsetSpace ~
 \InsetSpace ~
-_bp
+_bp 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -18550,12 +19807,14 @@ The compiling and linking procedure remains the same, however note the extra
 
 \begin_layout Section
 int (16 bit)
-\begin_inset LatexCommand \index{int (16 bit)}
+\begin_inset LatexCommand index
+name "int (16 bit)"
 
 \end_inset
 
  and long (32 bit)
-\begin_inset LatexCommand \index{long (32 bit)}
+\begin_inset LatexCommand index
+name "long (32 bit)"
 
 \end_inset
 
@@ -18610,7 +19869,7 @@ Description
 \begin_inset Text
 
 \begin_layout Standard
-_mulint.c
+_mulint.c 
 \end_layout
 
 \end_inset
@@ -18630,7 +19889,7 @@ _mulint.c
 \begin_inset Text
 
 \begin_layout Standard
-_divsint.c
+_divsint.c 
 \end_layout
 
 \end_inset
@@ -18650,7 +19909,7 @@ _divsint.c
 \begin_inset Text
 
 \begin_layout Standard
-_divuint.c
+_divuint.c 
 \end_layout
 
 \end_inset
@@ -18730,7 +19989,7 @@ _mullong.c
 \begin_inset Text
 
 \begin_layout Standard
-_divslong.c
+_divslong.c 
 \end_layout
 
 \end_inset
@@ -18750,7 +20009,7 @@ _divslong.c
 \begin_inset Text
 
 \begin_layout Standard
-_divulong.c
+_divulong.c 
 \end_layout
 
 \end_inset
@@ -18815,23 +20074,25 @@ unsigned 32 bit modulus
 \end_layout
 
 \begin_layout Standard
-Since they are compiled as
+Since they are compiled as 
 \emph on
 non-reentrant
 \emph default
 
-\begin_inset LatexCommand \index{reentrant}
+\begin_inset LatexCommand index
+name "reentrant"
 
 \end_inset
 
 , interrupt
-\begin_inset LatexCommand \index{interrupt}
+\begin_inset LatexCommand index
+name "interrupt"
 
 \end_inset
 
  service routines should not do any of the above operations.
  If this is unavoidable then the above routines will need to be compiled
- with the
+ with the 
 \emph on
 -
 \begin_inset ERT
@@ -18847,13 +20108,14 @@ status collapsed
 \end_inset
 
 -stack-auto
-\begin_inset LatexCommand \index{-\/-stack-auto}
+\begin_inset LatexCommand index
+name "-\\/-stack-auto"
 
 \end_inset
 
 
 \emph default
- option, after which the source program will have to be compiled with
+ option, after which the source program will have to be compiled with 
 \emph on
 -
 \begin_inset ERT
@@ -18869,7 +20131,8 @@ status collapsed
 \end_inset
 
 -int-long-reent
-\begin_inset LatexCommand \index{-\/-int-long-reent}
+\begin_inset LatexCommand index
+name "-\\/-int-long-reent"
 
 \end_inset
 
@@ -18883,7 +20146,8 @@ status collapsed
 
 \begin_layout Section
 Floating Point Support
-\begin_inset LatexCommand \index{Floating point support}
+\begin_inset LatexCommand index
+name "Floating point support"
 
 \end_inset
 
@@ -18921,7 +20185,7 @@ SDCC supports IEEE (single precision 4 bytes) floating point numbers.
 \bar no
 \noun off
 \color none
-Function
+Function 
 \end_layout
 
 \end_inset
@@ -18988,7 +20252,7 @@ add floating point numbers
 \bar no
 \noun off
 \color none
-_fssub.c
+_fssub.c 
 \end_layout
 
 \end_inset
@@ -19006,7 +20270,7 @@ _fssub.c
 \bar no
 \noun off
 \color none
-subtract floating point numbers
+subtract floating point numbers 
 \end_layout
 
 \end_inset
@@ -19026,7 +20290,7 @@ subtract floating point numbers
 \bar no
 \noun off
 \color none
-_fsdiv.c
+_fsdiv.c 
 \end_layout
 
 \end_inset
@@ -19044,7 +20308,7 @@ _fsdiv.c
 \bar no
 \noun off
 \color none
-divide floating point numbers
+divide floating point numbers 
 \end_layout
 
 \end_inset
@@ -19064,7 +20328,7 @@ divide floating point numbers
 \bar no
 \noun off
 \color none
-_fsmul.c
+_fsmul.c 
 \end_layout
 
 \end_inset
@@ -19082,7 +20346,7 @@ _fsmul.c
 \bar no
 \noun off
 \color none
-multiply floating point numbers
+multiply floating point numbers 
 \end_layout
 
 \end_inset
@@ -19573,6 +20837,7 @@ These floating point routines (
 not
 \emph default
  sinf(), cosf(), ...) for the mcs51 are implemented in assembler.
 \end_layout
 
 \end_inset
@@ -19592,7 +20857,8 @@ not
 
 \begin_layout Section
 Library Routines
-\begin_inset LatexCommand \index{Libraries}
+\begin_inset LatexCommand index
+name "Libraries"
 
 \end_inset
 
@@ -19625,23 +20891,26 @@ getchar(), putchar()
 \end_layout
 
 \begin_layout Standard
-\begin_inset LatexCommand \index{<stdio.h>}
+\begin_inset LatexCommand index
+name "<stdio.h>"
 
 \end_inset
 
-As usual on embedded systems you have to provide your own
+As usual on embedded systems you have to provide your own 
 \family typewriter
 getchar()
-\begin_inset LatexCommand \index{getchar()}
+\begin_inset LatexCommand index
+name "getchar()"
 
 \end_inset
 
 
 \family default
-and
+ and 
 \family typewriter
 putchar()
-\begin_inset LatexCommand \index{putchar()}
+\begin_inset LatexCommand index
+name "putchar()"
 
 \end_inset
 
@@ -19650,22 +20919,22 @@ putchar()
  routines.
  SDCC does not know whether the system connects to a serial line with or
  without handshake, LCD, keyboard or other device.
- And whether a
+ And whether a 
 \family typewriter
 lf
 \family default
- to
+ to 
 \family typewriter
 crlf
 \family default
- conversion within
+ conversion within 
 \family typewriter
 putchar()
 \family default
  is intended.
  You'll find examples for serial routines f.e.
  in sdcc/device/lib.
- For the mcs51 this minimalistic polling
+ For the mcs51 this minimalistic polling 
 \family typewriter
 putchar()
 \family default
@@ -19675,7 +20944,7 @@ putchar()
 \begin_layout Verse
 
 \family typewriter
-void putchar (char c) {
+void putchar (char c) { 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -19717,21 +20986,22 @@ printf()
 \end_layout
 
 \begin_layout Standard
-The default
+The default 
 \family typewriter
- printf()
-\begin_inset LatexCommand \index{printf()}
+printf()
+\begin_inset LatexCommand index
+name "printf()"
 
 \end_inset
 
 
 \family default
- implementation in
+ implementation in 
 \family typewriter
- printf_large.c
+printf_large.c
 \family default
  does not support float (except on ds390).
- To enable this recompile it with the option
+ To enable this recompile it with the option 
 \emph on
 -
 \begin_inset ERT
@@ -19747,16 +21017,17 @@ status collapsed
 \end_inset
 
 DUSE_FLOATS=1
-\begin_inset LatexCommand \index{USE\_FLOATS}
+\begin_inset LatexCommand index
+name "USE\\_FLOATS"
 
 \end_inset
 
 
 \emph default
  on the command line.
- Use
+ Use 
 \emph on
- -
+-
 \begin_inset ERT
 status collapsed
 
@@ -19770,7 +21041,8 @@ status collapsed
 \end_inset
 
 -model-large
-\begin_inset LatexCommand \index{-\/-model-large}
+\begin_inset LatexCommand index
+name "-\\/-model-large"
 
 \end_inset
 
@@ -19780,45 +21052,50 @@ status collapsed
 \end_layout
 
 \begin_layout Standard
-If you're short on code memory you might want to use
+If you're short on code memory you might want to use 
 \family typewriter
 printf_small()
-\begin_inset LatexCommand \index{printf\_small()}
+\begin_inset LatexCommand index
+name "printf\\_small()"
 
 \end_inset
 
 
 \family default
 \emph on
 instead
 \emph default
- of
+ of 
 \family typewriter
- printf().
+printf().
 
 \family default
- For the mcs51 there additionally are assembly versions
+ For the mcs51 there additionally are assembly versions 
 \family typewriter
 printf_tiny()
-\begin_inset LatexCommand \index{printf\_tiny() (mcs51)}
+\begin_inset LatexCommand index
+name "printf\\_tiny() (mcs51)"
 
 \end_inset
 
 
 \family default
- (subset of printf using less than 270 bytes) and
+ (subset of printf using less than 270 bytes) and 
 \family typewriter
 printf_fast()
-\begin_inset LatexCommand \index{printf\_fast() (mcs51)}
+\begin_inset LatexCommand index
+name "printf\\_fast() (mcs51)"
 
 \end_inset
 
 
 \family default
-and
+ and 
 \family typewriter
- printf_fast_f()
-\begin_inset LatexCommand \index{printf\_fast\_f() (mcs51)}
+printf_fast_f()
+\begin_inset LatexCommand index
+name "printf\\_fast\\_f() (mcs51)"
 
 \end_inset
 
@@ -19826,7 +21103,7 @@ and
 \family default
  (floating-point aware version of printf_fast) which should fit the requirements
  of many embedded systems (printf_fast() can be customized by unsetting
- #defines to
+ #defines to 
 \emph on
 not
 \emph default
@@ -19837,7 +21114,7 @@ not
 \end_layout
 
 \begin_layout Standard
-Feature matrix of different
+Feature matrix of different 
 \emph on
 printf
 \emph default
@@ -19873,7 +21150,8 @@ mcs51
 
 \begin_layout Standard
 printf
-\begin_inset LatexCommand \index{printf}
+\begin_inset LatexCommand index
+name "printf"
 
 \end_inset
 
@@ -19886,7 +21164,7 @@ printf
 \begin_inset Text
 
 \begin_layout Standard
-printf
+printf 
 \size scriptsize
 USE_FLOATS=1
 \end_layout
 
 \begin_layout Standard
 float format
-\begin_inset LatexCommand \index{Floating point support}
+\begin_inset LatexCommand index
+name "Floating point support"
 
 \end_inset
 
@@ -20986,7 +22265,8 @@ small / large
 
 \begin_layout Subsubsection
 <malloc.h>
-\begin_inset LatexCommand \index{malloc.h}
+\begin_inset LatexCommand index
+name "malloc.h"
 
 \end_inset
 
@@ -20996,12 +22276,14 @@ small / large
 \begin_layout Standard
 As of SDCC 2.6.2 you no longer need to call an initialization routine before
  using dynamic memory allocation
-\begin_inset LatexCommand \index{dynamic memory allocation (malloc)}
+\begin_inset LatexCommand index
+name "dynamic memory allocation (malloc)"
 
 \end_inset
 
  and a default heap
-\begin_inset LatexCommand \index{heap (malloc)}
+\begin_inset LatexCommand index
+name "heap (malloc)"
 
 \end_inset
 
@@ -21046,17 +22328,19 @@ Other libraries
 
 \begin_layout Standard
 Libraries
-\begin_inset LatexCommand \index{Libraries}
+\begin_inset LatexCommand index
+name "Libraries"
 
 \end_inset
 
  included in SDCC should have a license at least as liberal as the GNU Lesser
  General Public License
-\begin_inset LatexCommand \index{GNU Lesser General Public License, LGPL}
+\begin_inset LatexCommand index
+name "GNU Lesser General Public License, LGPL"
 
 \end_inset
 
-
 \emph on
 LGPL
 \emph default
@@ -21092,8 +22376,9 @@ If you have ported some library or want to share experience about some code
 
 C, CAN, Ethernet, Profibus, Modbus, USB, SPI, JTAG ...), Media (IDE, Memory
  cards, eeprom, flash...), En-/Decryption, Remote debugging, Realtime kernel,
- Keyboard, LCD, RTC, FPGA, PID then the sdcc-user mailing list
-\begin_inset LatexCommand \url{http://sourceforge.net/mail/?group_id=599}
+ Keyboard, LCD, RTC, FPGA, PID then the sdcc-user mailing list 
+\begin_inset LatexCommand url
+target "http://sourceforge.net/mail/?group_id=599"
 
 \end_inset
 
@@ -21118,12 +22403,14 @@ Memory Models
 
 \begin_layout Subsection
 MCS51 Memory Models
-\begin_inset LatexCommand \index{Memory model}
+\begin_inset LatexCommand index
+name "Memory model"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{MCS51 memory model}
+\begin_inset LatexCommand index
+name "MCS51 memory model"
 
 \end_inset
 
@@ -21135,16 +22422,16 @@ Small, Medium and Large
 \end_layout
 
 \begin_layout Standard
-SDCC allows three memory models for MCS51 code,
+SDCC allows three memory models for MCS51 code, 
 \shape slanted
 small, medium
 \shape default
- and
+ and 
 \shape slanted
 large
 \shape default
 .
- Modules compiled with different memory models should
+ Modules compiled with different memory models should 
 \emph on
 never
 \emph default
@@ -21159,7 +22446,8 @@ never
 When the medium or large model is used all variables declared without a
  storage class will be allocated into the external ram, this includes all
  parameters and local variables (for non-reentrant
-\begin_inset LatexCommand \index{reentrant}
+\begin_inset LatexCommand index
+name "reentrant"
 
 \end_inset
 
@@ -21170,7 +22458,8 @@ When the medium or large model is used all variables declared without a
 
 \begin_layout Standard
 Judicious usage of the processor specific storage classes
-\begin_inset LatexCommand \index{Storage class}
+\begin_inset LatexCommand index
+name "Storage class"
 
 \end_inset
 
@@ -21183,17 +22472,20 @@ Judicious usage of the processor specific storage classes
 
 \begin_layout Subsubsection
 External Stack
-\begin_inset LatexCommand \label{sub:External-Stack}
+\begin_inset LatexCommand label
+name "sub:External-Stack"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{stack}
+\begin_inset LatexCommand index
+name "stack"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{External stack (mcs51)}
+\begin_inset LatexCommand index
+name "External stack (mcs51)"
 
 \end_inset
 
@@ -21215,12 +22507,14 @@ status collapsed
 \end_inset
 
 -xstack option
-\begin_inset LatexCommand \index{-\/-xstack}
+\begin_inset LatexCommand index
+name "-\\/-xstack"
 
 \end_inset
 
 ) is located in pdata
-\begin_inset LatexCommand \index{pdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "pdata (mcs51, ds390 storage class)"
 
 \end_inset
 
@@ -21242,7 +22536,8 @@ status collapsed
 
 -xstack option is used to compile the program, the parameters and local
  variables
-\begin_inset LatexCommand \index{local variables}
+\begin_inset LatexCommand index
+name "local variables"
 
 \end_inset
 
@@ -21262,7 +22557,8 @@ status collapsed
 \end_inset
 
 -stack-auto
-\begin_inset LatexCommand \index{-\/-stack-auto}
+\begin_inset LatexCommand index
+name "-\\/-stack-auto"
 
 \end_inset
 
@@ -21275,16 +22571,18 @@ status collapsed
 \begin_layout Standard
 The compiler outputs the higher order address byte of the external ram segment
  into port P2
-\begin_inset LatexCommand \index{P2 (mcs51 sfr)}
+\begin_inset LatexCommand index
+name "P2 (mcs51 sfr)"
 
 \end_inset
 
- (see also section
-\begin_inset LatexCommand \ref{sub:MCS51-variants}
+ (see also section 
+\begin_inset LatexCommand ref
+reference "sub:MCS51-variants"
 
 \end_inset
 
-), therefore when using the External Stack option, this port
+), therefore when using the External Stack option, this port 
 \emph on
 may not
 \emph default
@@ -21293,12 +22591,14 @@ may not
 
 \begin_layout Subsection
 DS390 Memory Model
-\begin_inset LatexCommand \index{Memory model}
+\begin_inset LatexCommand index
+name "Memory model"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{DS390 memory model}
+\begin_inset LatexCommand index
+name "DS390 memory model"
 
 \end_inset
 
@@ -21307,7 +22607,8 @@ DS390 Memory Model
 
 \begin_layout Standard
 The only model supported is Flat 24
-\begin_inset LatexCommand \index{Flat 24 (DS390 memory model)}
+\begin_inset LatexCommand index
+name "Flat 24 (DS390 memory model)"
 
 \end_inset
 
@@ -21322,17 +22623,18 @@ The only model supported is Flat 24
 \newline
 Note
  that the compiler does not generate any code to place the processor into
- 24 bitmode (although
+ 24 bitmode (although 
 \emph on
 tinibios
 \emph default
  in the ds390 libraries will do that for you).
- If you don't use
+ If you don't use 
 \emph on
 tinibios
 \emph default
 
-\begin_inset LatexCommand \index{Tinibios (DS390)}
+\begin_inset LatexCommand index
+name "Tinibios (DS390)"
 
 \end_inset
 
@@ -21342,7 +22644,7 @@ tinibios
 
 \newline
 Like
- the
+ the 
 \emph on
 -
 \begin_inset ERT
@@ -21360,11 +22662,12 @@ status collapsed
 -model-large
 \emph default
  option, variables will by default be placed into the XDATA segment.
 \newline
 
 \newline
-Segments
may be placed anywhere in the 4 meg address space using the usual -
+Segments may be placed anywhere in the 4 meg address space using the usual
+ -
 \begin_inset ERT
 status collapsed
 
@@ -21381,7 +22684,7 @@ status collapsed
  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.
- The -r flag can be passed to the linker by using the option
+ The -r flag can be passed to the linker by using the option 
 \emph on
 -Wl-r
 \emph default
@@ -21391,12 +22694,14 @@ status collapsed
 
 \begin_layout Section
 Pragmas
-\begin_inset LatexCommand \label{sec:Pragmas}
+\begin_inset LatexCommand label
+name "sec:Pragmas"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Pragmas}
+\begin_inset LatexCommand index
+name "Pragmas"
 
 \end_inset
 
@@ -21406,8 +22711,9 @@ Pragmas
 \begin_layout Standard
 Pragmas are used to turn on and/or off certain compiler options.
  Some of them are closely related to corresponding command-line options
- (see section
-\begin_inset LatexCommand \vref{sec:Command-Line-Options}
+ (see section 
+\begin_inset LatexCommand vref
+reference "sec:Command-Line-Options"
 
 \end_inset
 
@@ -21428,7 +22734,8 @@ SDCC supports the
 save
 \series default
 
-\begin_inset LatexCommand \index{\#pragma save}
+\begin_inset LatexCommand index
+name "\\#pragma save"
 
 \end_inset
 
@@ -21443,7 +22750,8 @@ restore.
 restore
 \series default
 
-\begin_inset LatexCommand \index{\#pragma restore}
+\begin_inset LatexCommand index
+name "\\#pragma restore"
 
 \end_inset
 
@@ -21463,24 +22771,28 @@ save.
 callee_saves
 \series default
 
-\begin_inset LatexCommand \index{\#pragma callee\_saves}
+\begin_inset LatexCommand index
+name "\\#pragma callee\\_saves"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{function prologue}
+\begin_inset LatexCommand index
+name "function prologue"
 
 \end_inset
 
- function1[,function2[,function3...]]
-\begin_inset LatexCommand \label{ite:callee_saves-function1[,function2[,function3...]]--}
+ function1[,function2[,function3...]] 
+\begin_inset LatexCommand label
+name "ite:callee_saves-function1[,function2[,function3...]]--"
 
 \end_inset
 
 - The compiler by default uses a caller saves convention for register saving
  across function calls, however this can cause unnecessary register pushing
  and popping
-\begin_inset LatexCommand \index{push/pop}
+\begin_inset LatexCommand index
+name "push/pop"
 
 \end_inset
 
@@ -21506,14 +22818,16 @@ status collapsed
 
 \end_inset
 
--callee-saves command line option is used (see page
-\begin_inset LatexCommand \vpageref{lyx:--callee-saves-function1[,function2][,function3]...}
+-callee-saves command line option is used (see page 
+\begin_inset LatexCommand vpageref
+reference "lyx:--callee-saves-function1[,function2][,function3]..."
 
 \end_inset
 
 ), the function names specified in #pragma\InsetSpace ~
 callee_saves
-\begin_inset LatexCommand \index{\#pragma callee\_saves}
+\begin_inset LatexCommand index
+name "\\#pragma callee\\_saves"
 
 \end_inset
 
@@ -21526,30 +22840,33 @@ callee_saves
 exclude
 \series default
 
-\begin_inset LatexCommand \index{\#pragma exclude}
+\begin_inset LatexCommand index
+name "\\#pragma exclude"
 
 \end_inset
 
  none | {acc[,b[,dpl[,dph]]] - The exclude pragma disables the generation
  of pairs of push/pop
-\begin_inset LatexCommand \index{push/pop}
+\begin_inset LatexCommand index
+name "push/pop"
 
 \end_inset
 
- instructions in
+ instructions in 
 \emph on
 I
 \emph default
 nterrupt
-\begin_inset LatexCommand \index{interrupt}
+\begin_inset LatexCommand index
+name "interrupt"
 
 \end_inset
 
-
 \emph on
 S
 \emph default
-ervice
+ervice 
 \emph on
 R
 \emph default
@@ -21559,18 +22876,21 @@ outines.
  To enable the normal register saving for ISR functions use #pragma\InsetSpace ~
 exclude\InsetSpace ~
 none
-\begin_inset LatexCommand \index{\#pragma exclude}
+\begin_inset LatexCommand index
+name "\\#pragma exclude"
 
 \end_inset
 
 .
  See also the related keyword _naked
-\begin_inset LatexCommand \index{\_naked}
+\begin_inset LatexCommand index
+name "\\_naked"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\_\_naked}
+\begin_inset LatexCommand index
+name "\\_\\_naked"
 
 \end_inset
 
@@ -21583,17 +22903,20 @@ none
 less_pedantic
 \series default
 
-\begin_inset LatexCommand \index{pedantic}
+\begin_inset LatexCommand index
+name "pedantic"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\#pragma less\_pedantic}
+\begin_inset LatexCommand index
+name "\\#pragma less\\_pedantic"
 
 \end_inset
 
-
-\begin_inset LatexCommand \label{ite:less_pedantic}
+\begin_inset LatexCommand label
+name "ite:less_pedantic"
 
 \end_inset
 
@@ -21612,33 +22935,36 @@ status collapsed
 
 \end_inset
 
--less-pedantic
-\begin_inset LatexCommand \vpageref{lyx:--less-pedantic}
+-less-pedantic 
+\begin_inset LatexCommand vpageref
+reference "lyx:--less-pedantic"
 
 \end_inset
 
 .
 \newline
-More specifically, the following warnings will be disabled:
+More specifically, the following warnings will be disabled: 
 \shape italic
 comparison is always [true/false] due to limited range of data type
 \shape default
- (94);
+ (94); 
 \shape italic
 overflow in implicit constant conversion
 \shape default
- (158); [the (in)famous]
+ (158); [the (in)famous] 
 \shape italic
 conditional flow changed by optimizer: so said EVELYN the modified DOG
 \shape default
- (110);
+ (110); 
 \shape italic
 function '[function name]' must return value
 \shape default
  (59).
 \newline
 Furthermore, warnings of less importance (of PEDANTIC and INFO warning
- level) are disabled, too, namely:
+ level) are disabled, too, namely: 
 \shape italic
 constant value '[
 \begin_inset Note Note
@@ -21652,31 +22978,31 @@ dunno what comes here - this warning appears to be unused altogether
 
 ]', out of range
 \shape default
- (81);
+ (81); 
 \shape italic
 [left/right] shifting more than size of object changed to zero
 \shape default
- (116);
+ (116); 
 \shape italic
 unreachable code
 \shape default
- (126);
+ (126); 
 \shape italic
 integer overflow in expression
 \shape default
- (165);
+ (165); 
 \shape italic
 unmatched #pragma save and #pragma restore
 \shape default
- (170);
+ (170); 
 \shape italic
 comparison of 'signed char' with 'unsigned char' requires promotion to int
 \shape default
- (185);
+ (185); 
 \shape italic
 ISO C90 does not support flexible array members
 \shape default
- (187);
+ (187); 
 \shape italic
 extended stack by [number] bytes for compiler temp(s) :in function '[function\InsetSpace ~
 nam
@@ -21693,7 +23019,7 @@ appears to be always blank - what was supposed to be here?
 
 ]
 \shape default
- (114);
+ (114); 
 \shape italic
 function '[function name]', # edges [number] , # nodes [number] , cyclomatic
  complexity [number]
@@ -21707,7 +23033,8 @@ function '[function name]', # edges [number] , # nodes [number] , cyclomatic
 disable_warning
 \series default
  <nnnn>
-\begin_inset LatexCommand \index{\#pragma disable\_warning}
+\begin_inset LatexCommand index
+name "\\#pragma disable\\_warning"
 
 \end_inset
 
@@ -21720,7 +23047,8 @@ disable_warning
 nogcse
 \series default
 
-\begin_inset LatexCommand \index{\#pragma nogcse}
+\begin_inset LatexCommand index
+name "\\#pragma nogcse"
 
 \end_inset
 
@@ -21733,7 +23061,8 @@ nogcse
 noinduction
 \series default
 
-\begin_inset LatexCommand \index{\#pragma noinduction}
+\begin_inset LatexCommand index
+name "\\#pragma noinduction"
 
 \end_inset
 
@@ -21746,13 +23075,15 @@ noinduction
 noinvariant
 \series default
 
-\begin_inset LatexCommand \index{\#pragma noinvariant}
+\begin_inset LatexCommand index
+name "\\#pragma noinvariant"
 
 \end_inset
 
  - will not do loop invariant optimizations.
  For more details see Loop Invariants in section
-\begin_inset LatexCommand \ref{sub:Loop-Optimizations}
+\begin_inset LatexCommand ref
+reference "sub:Loop-Optimizations"
 
 \end_inset
 
@@ -21765,17 +23096,20 @@ noinvariant
 noiv
 \series default
 
-\begin_inset LatexCommand \index{\#pragma noiv}
+\begin_inset LatexCommand index
+name "\\#pragma noiv"
 
 \end_inset
 
  - Do not generate interrupt
-\begin_inset LatexCommand \index{interrupt}
+\begin_inset LatexCommand index
+name "interrupt"
 
 \end_inset
 
  vector table
-\begin_inset LatexCommand \index{interrupt vector table}
+\begin_inset LatexCommand index
+name "interrupt vector table"
 
 \end_inset
 
@@ -21784,9 +23118,10 @@ noiv
  manually, or when there is a secondary, manually defined interrupt vector
  table (e.g.
  for the autovector feature of the Cypress EZ-USB FX2).
- More elegantly this can be achieved by obmitting the optional interrupt
- number after the interrupt keyword, see section
-\begin_inset LatexCommand \ref{sub:Interrupt-Service-Routines}
+ More elegantly this can be achieved by omitting the optional interrupt
+ number after the interrupt keyword, see section 
+\begin_inset LatexCommand ref
+reference "sub:Interrupt-Service-Routines"
 
 \end_inset
 
@@ -21800,14 +23135,16 @@ about interrupts.
 nojtbound
 \series default
 
-\begin_inset LatexCommand \index{\#pragma nojtbound}
+\begin_inset LatexCommand index
+name "\\#pragma nojtbound"
 
 \end_inset
 
  - will not generate code for boundary value checking, when switch statements
  are turned into jump-tables (dangerous).
- For more details see section
-\begin_inset LatexCommand \ref{sub:'switch'-Statements}
+ For more details see section 
+\begin_inset LatexCommand ref
+reference "sub:'switch'-Statements"
 
 \end_inset
 
@@ -21820,7 +23157,8 @@ nojtbound
 noloopreverse
 \series default
 
-\begin_inset LatexCommand \index{\#pragma noloopreverse}
+\begin_inset LatexCommand index
+name "\\#pragma noloopreverse"
 
 \end_inset
 
@@ -21833,7 +23171,8 @@ noloopreverse
 nooverlay
 \series default
 
-\begin_inset LatexCommand \index{\#pragma nooverlay}
+\begin_inset LatexCommand index
+name "\\#pragma nooverlay"
 
 \end_inset
 
@@ -21847,7 +23186,8 @@ nooverlay
 stackauto
 \series default
 
-\begin_inset LatexCommand \index{\#pragma stackauto}
+\begin_inset LatexCommand index
+name "\\#pragma stackauto"
 
 \end_inset
 
@@ -21865,12 +23205,14 @@ status collapsed
 \end_inset
 
 -stack-auto
-\begin_inset LatexCommand \index{-\/-stack-auto}
+\begin_inset LatexCommand index
+name "-\\/-stack-auto"
 
 \end_inset
 
- and section
-\begin_inset LatexCommand \ref{sec:Parameters-and-Local-Variables}
+ and section 
+\begin_inset LatexCommand ref
+reference "sec:Parameters-and-Local-Variables"
 
 \end_inset
 
@@ -21882,8 +23224,9 @@ status collapsed
 \series bold
 opt_code_speed
 \series default
-
-\begin_inset LatexCommand \index{\#pragma opt\_code\_speed}
+\begin_inset LatexCommand index
+name "\\#pragma opt\\_code\\_speed"
 
 \end_inset
 
@@ -21897,8 +23240,9 @@ opt_code_speed
 \series bold
 opt_code_size
 \series default
-
-\begin_inset LatexCommand \index{\#pragma opt\_code\_size}
+\begin_inset LatexCommand index
+name "\\#pragma opt\\_code\\_size"
 
 \end_inset
 
@@ -21912,14 +23256,16 @@ opt_code_size
 \series bold
 opt_code_balanced
 \series default
-
-\begin_inset LatexCommand \index{\#pragma opt\_code\_balanced}
+\begin_inset LatexCommand index
+name "\\#pragma opt\\_code\\_balanced"
 
 \end_inset
 
 - The compiler will attempt to generate code that is both compact and fast,
  as long as meeting one goal is not a detriment to the other (this is the
  default).
 \end_layout
 
 \begin_layout Itemize
@@ -21927,8 +23273,9 @@ opt_code_balanced
 \series bold
 std_sdcc89
 \series default
-
-\begin_inset LatexCommand \index{\#pragma std\_sdcc89}
+\begin_inset LatexCommand index
+name "\\#pragma std\\_sdcc89"
 
 \end_inset
 
@@ -21941,8 +23288,9 @@ std_sdcc89
 \series bold
 std_c89
 \series default
-
-\begin_inset LatexCommand \index{\#pragma std\_c89}
+\begin_inset LatexCommand index
+name "\\#pragma std\\_c89"
 
 \end_inset
 
@@ -21955,8 +23303,9 @@ std_c89
 \series bold
 std_sdcc99
 \series default
-
-\begin_inset LatexCommand \index{\#pragma std\_sdcc99}
+\begin_inset LatexCommand index
+name "\\#pragma std\\_sdcc99"
 
 \end_inset
 
@@ -21969,8 +23318,9 @@ std_sdcc99
 \series bold
 std_c99
 \series default
-
-\begin_inset LatexCommand \index{\#pragma std\_c99}
+\begin_inset LatexCommand index
+name "\\#pragma std\\_c99"
 
 \end_inset
 
@@ -21984,7 +23334,8 @@ std_c99
 codeseg
 \series default
  <name>
-\begin_inset LatexCommand \index{\#pragma codeseg}
+\begin_inset LatexCommand index
+name "\\#pragma codeseg"
 
 \end_inset
 
@@ -22012,7 +23363,8 @@ status collapsed
 constseg
 \series default
  <name>
-\begin_inset LatexCommand \index{\#pragma constseg}
+\begin_inset LatexCommand index
+name "\\#pragma constseg"
 
 \end_inset
 
@@ -22036,7 +23388,8 @@ status collapsed
 
 \begin_layout Standard
 The preprocessor SDCPP
-\begin_inset LatexCommand \index{sdcpp (preprocessor)}
+\begin_inset LatexCommand index
+name "sdcpp (preprocessor)"
 
 \end_inset
 
@@ -22049,17 +23402,20 @@ The preprocessor SDCPP
 pedantic_parse_number
 \series default
 
-\begin_inset LatexCommand \index{pedantic}
+\begin_inset LatexCommand index
+name "pedantic"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\#pragma pedantic\_parse\_number}
+\begin_inset LatexCommand index
+name "\\#pragma pedantic\\_parse\\_number"
 
 \end_inset
 
- (+ | -)
-\begin_inset LatexCommand \label{ite:pedantic_parse_number}
+ (+ | -) 
+\begin_inset LatexCommand label
+name "ite:pedantic_parse_number"
 
 \end_inset
 
@@ -22079,24 +23435,27 @@ status collapsed
 
 \end_inset
 
--pedantic-parse-number command line option
-\begin_inset LatexCommand \vpageref{lyx:-pedantic-parse-number}
+-pedantic-parse-number command line option 
+\begin_inset LatexCommand vpageref
+reference "lyx:-pedantic-parse-number"
 
 \end_inset
 
 .
 \newline
 Below is an example on how to use this pragma.
-
 \emph on
- Note: this functionality is not in conformance with standard!
+Note: this functionality is not in conformance with standard!
 \end_layout
 
 \begin_layout Verse
 
 \family typewriter
 #pragma pedantic_parse_number +
-\begin_inset LatexCommand \index{\#pragma pedantic\_parse\_number}
+\begin_inset LatexCommand index
+name "\\#pragma pedantic\\_parse\\_number"
 
 \end_inset
 
@@ -22136,14 +23495,15 @@ return c;
 preproc_asm
 \series default
 
-\begin_inset LatexCommand \index{\#pragma preproc\_asm}
+\begin_inset LatexCommand index
+name "\\#pragma preproc\\_asm"
 
 \end_inset
 
  (+ | -) - switch _asm _endasm block preprocessing on / off.
  Default is on.
- You use this prama to define multilines of assembly code.
- This will prevent the preprocessor from changing the formating required
+ You use this pragma to define multilines of assembly code.
+ This will prevent the preprocessor from changing the formatting required
  by assembly code.
  Below is an example on how to use this pragma.
 \end_layout
@@ -22152,7 +23512,8 @@ preproc_asm
 
 \family typewriter
 #pragma preproc_asm -
-\begin_inset LatexCommand \index{\#pragma preproc\_asm}
+\begin_inset LatexCommand index
+name "\\#pragma preproc\\_asm"
 
 \end_inset
 
@@ -22182,14 +23543,15 @@ _endasm
 \newline
 
 \newline
-void foo (void)
+void foo (void) 
 \newline
-{
+{ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
  ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -22200,8 +23562,9 @@ void foo (void)
 \InsetSpace ~
 \InsetSpace ~
  ...
 \newline
-}
+} 
 \newline
 
 \end_layout
@@ -22212,7 +23575,8 @@ void foo (void)
 sdcc_hash
 \series default
 
-\begin_inset LatexCommand \index{\#pragma sdcc\_hash}
+\begin_inset LatexCommand index
+name "\\#pragma sdcc\\_hash"
 
 \end_inset
 
@@ -22234,7 +23598,8 @@ Default is off.
 #pragma preproc_asm +
 \newline
 #pragma sdcc_hash +
-\begin_inset LatexCommand \index{\#pragma sdcc\_hash}
+\begin_inset LatexCommand index
+name "\\#pragma sdcc\\_hash"
 
 \end_inset
 
@@ -22242,21 +23607,21 @@ Default is off.
 \newline
 
 \newline
-#define ROMCALL(x)
+#define ROMCALL(x) 
 \backslash
 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-mov R6_B3, #(x & 0xff)
+mov R6_B3, #(x & 0xff) 
 \backslash
 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-mov R7_B3, #((x >> 8) & 0xff)
+mov R7_B3, #((x >> 8) & 0xff) 
 \backslash
 
 \newline
@@ -22287,13 +23652,15 @@ ons which might cause the compiler to generate extra stack and/or data space
  This usually happens in large functions.
  Pragma directives should be used as shown in the following example, they
  are used to control options and optimizations for a given function.
 \end_layout
 
 \begin_layout Verse
 
 \family typewriter
 #pragma save
-\begin_inset LatexCommand \index{\#pragma save}
+\begin_inset LatexCommand index
+name "\\#pragma save"
 
 \end_inset
 
@@ -22304,10 +23671,11 @@ ons which might cause the compiler to generate extra stack and/or data space
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-/* save the current settings */
+/* save the current settings */ 
 \newline
 #pragma nogcse
-\begin_inset LatexCommand \index{\#pragma nogcse}
+\begin_inset LatexCommand index
+name "\\#pragma nogcse"
 
 \end_inset
 
@@ -22316,36 +23684,39 @@ ons which might cause the compiler to generate extra stack and/or data space
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-/* turnoff global subexpression elimination */
+/* turnoff global subexpression elimination */ 
 \newline
 #pragma noinduction
-\begin_inset LatexCommand \index{\#pragma noinduction}
+\begin_inset LatexCommand index
+name "\\#pragma noinduction"
 
 \end_inset
 
- /* turn off induction optimizations */
+ /* turn off induction optimizations */ 
 \newline
-int foo ()
+int foo () 
 \newline
-{
+{ 
 \newline
 \InsetSpace ~
  \InsetSpace ~
  ...
 \newline
 \InsetSpace ~
  \InsetSpace ~
- /* large code */
+ /* large code */ 
 \newline
 \InsetSpace ~
  \InsetSpace ~
-
  ...
 \newline
-}
+} 
 \newline
 #pragma restore
-\begin_inset LatexCommand \index{\#pragma restore}
+\begin_inset LatexCommand index
+name "\\#pragma restore"
 
 \end_inset
 
@@ -22370,12 +23741,14 @@ Defines Created by the Compiler
 
 \begin_layout Standard
 The compiler creates the following #defines
-\begin_inset LatexCommand \index{\#defines}
+\begin_inset LatexCommand index
+name "\\#defines"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Defines created by the compiler}
+\begin_inset LatexCommand index
+name "Defines created by the compiler"
 
 \end_inset
 
@@ -22386,7 +23759,7 @@ The compiler creates the following #defines
 
 \begin_layout Standard
 \begin_inset Tabular
-<lyxtabular version="3" rows="11" columns="2">
+<lyxtabular version="3" rows="15" columns="2">
 <features>
 <column alignment="left" valignment="top" leftline="true" width="3in">
 <column alignment="left" valignment="top" leftline="true" rightline="true" width="3in">
@@ -22420,11 +23793,12 @@ Description
 
 \begin_layout Standard
 SDCC
-\begin_inset LatexCommand \index{SDCC}
+\begin_inset LatexCommand index
+name "SDCC"
 
 \end_inset
 
-
 \end_layout
 
 \end_inset
@@ -22447,17 +23821,20 @@ Always defined.
 
 \begin_layout Standard
 SDCC_mcs51
-\begin_inset LatexCommand \index{SDCC\_mcs51}
+\begin_inset LatexCommand index
+name "SDCC\\_mcs51"
 
 \end_inset
 
  or SDCC_ds390
-\begin_inset LatexCommand \index{SDCC\_ds390}
+\begin_inset LatexCommand index
+name "SDCC\\_ds390"
 
 \end_inset
 
  or SDCC_z80
-\begin_inset LatexCommand \index{SDCC\_z80}
+\begin_inset LatexCommand index
+name "SDCC\\_z80"
 
 \end_inset
 
@@ -22482,22 +23859,26 @@ depending on the model used (e.g.: -mds390)
 
 \begin_layout Standard
 __mcs51
-\begin_inset LatexCommand \index{\_\_mcs51}
+\begin_inset LatexCommand index
+name "\\_\\_mcs51"
 
 \end_inset
 
 , __ds390
-\begin_inset LatexCommand \index{\_\_ds390}
+\begin_inset LatexCommand index
+name "\\_\\_ds390"
 
 \end_inset
 
 , __hc08
-\begin_inset LatexCommand \index{\_\_hc08}
+\begin_inset LatexCommand index
+name "\\_\\_hc08"
 
 \end_inset
 
 , __z80
-\begin_inset LatexCommand \index{\_\_z80}
+\begin_inset LatexCommand index
+name "\\_\\_z80"
 
 \end_inset
 
@@ -22523,7 +23904,8 @@ depending on the model used (e.g.
 
 \begin_layout Standard
 SDCC_STACK_AUTO
-\begin_inset LatexCommand \index{SDCC\_STACK\_AUTO}
+\begin_inset LatexCommand index
+name "SDCC\\_STACK\\_AUTO"
 
 \end_inset
 
@@ -22536,7 +23918,7 @@ SDCC_STACK_AUTO
 \begin_inset Text
 
 \begin_layout Standard
-when
+when 
 \emph on
 -
 \begin_inset ERT
@@ -22565,7 +23947,8 @@ status collapsed
 
 \begin_layout Standard
 SDCC_MODEL_SMALL
-\begin_inset LatexCommand \index{SDCC\_MODEL\_SMALL}
+\begin_inset LatexCommand index
+name "SDCC\\_MODEL\\_SMALL"
 
 \end_inset
 
@@ -22578,7 +23961,7 @@ SDCC_MODEL_SMALL
 \begin_inset Text
 
 \begin_layout Standard
-when
+when 
 \emph on
 -
 \begin_inset ERT
@@ -22607,7 +23990,8 @@ status collapsed
 
 \begin_layout Standard
 SDCC_MODEL_MEDIUM
-\begin_inset LatexCommand \index{SDCC\_MODEL\_MEDIUM}
+\begin_inset LatexCommand index
+name "SDCC\\_MODEL\\_MEDIUM"
 
 \end_inset
 
@@ -22620,7 +24004,7 @@ SDCC_MODEL_MEDIUM
 \begin_inset Text
 
 \begin_layout Standard
-when
+when 
 \emph on
 -
 \begin_inset ERT
@@ -22649,7 +24033,8 @@ status collapsed
 
 \begin_layout Standard
 SDCC_MODEL_LARGE
-\begin_inset LatexCommand \index{SDCC\_MODEL\_LARGE}
+\begin_inset LatexCommand index
+name "SDCC\\_MODEL\\_LARGE"
 
 \end_inset
 
@@ -22662,7 +24047,7 @@ SDCC_MODEL_LARGE
 \begin_inset Text
 
 \begin_layout Standard
-when
+when 
 \emph on
 -
 \begin_inset ERT
@@ -22691,7 +24076,181 @@ status collapsed
 
 \begin_layout Standard
 SDCC_USE_XSTACK
-\begin_inset LatexCommand \index{SDCC\_USE\_XSTACK}
+\begin_inset LatexCommand index
+name "SDCC\\_USE\\_XSTACK"
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+when 
+\emph on
+-
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+/
+\end_layout
+
+\end_inset
+
+-xstack
+\emph default
+ option is used
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row topline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+SDCC_STACK_TENBIT
+\begin_inset LatexCommand index
+name "SDCC\\_STACK\\_TENBIT"
+
+\end_inset
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+when 
+\emph on
+-mds390
+\emph default
+ is used
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row topline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+SDCC_MODEL_FLAT24
+\begin_inset LatexCommand index
+name "SDCC\\_MODEL\\_FLAT24"
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+when 
+\emph on
+-mds390
+\emph default
+ is used
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row topline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+SDCC_REVISION
+\begin_inset LatexCommand index
+name "SDCC\\_REVISION"
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+Always defined.
+ SDCC svn revision number
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row topline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+SDCC_PARMS_IN_BANK1
+\begin_inset LatexCommand index
+name "SDCC\\_PARMS\\_IN\\_BANK1"
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+when 
+\emph on
+-
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+/
+\end_layout
+
+\end_inset
+
+-parms-in-bank1
+\emph default
+ is used
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row topline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+SDCC_FLOAT_REENT
+\begin_inset LatexCommand index
+name "SDCC\\_MODEL\\_FLAT24"
 
 \end_inset
 
@@ -22704,7 +24263,7 @@ SDCC_USE_XSTACK
 \begin_inset Text
 
 \begin_layout Standard
-when
+when 
 \emph on
 -
 \begin_inset ERT
@@ -22719,21 +24278,22 @@ status collapsed
 
 \end_inset
 
--xstack
+-float-reent
 \emph default
option is used
+ is used
 \end_layout
 
 \end_inset
 </cell>
 </row>
-<row topline="true">
+<row topline="true" bottomline="true">
 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Standard
-SDCC_STACK_TENBIT
-\begin_inset LatexCommand \index{SDCC\_STACK\_TENBIT}
+SDCC_INT_LONG_REENT
+\begin_inset LatexCommand index
+name "SDCC\\_INT\\_LONG\\_REENT"
 
 \end_inset
 
@@ -22746,38 +24306,22 @@ SDCC_STACK_TENBIT
 \begin_inset Text
 
 \begin_layout Standard
-when
+when 
 \emph on
--mds390
-\emph default
- is used
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row topline="true" bottomline="true">
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
-\begin_inset Text
+-
+\begin_inset ERT
+status collapsed
 
 \begin_layout Standard
-SDCC_MODEL_FLAT24
-\begin_inset LatexCommand \index{SDCC\_MODEL\_FLAT24}
-
-\end_inset
 
 
+\backslash
+/
 \end_layout
 
 \end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
-\begin_inset Text
 
-\begin_layout Standard
-when
-\emph on
--mds390
+-int-long-reent
 \emph default
  is used
 \end_layout
@@ -22798,12 +24342,14 @@ Notes on supported Processors
 
 \begin_layout Section
 MCS51 variants
-\begin_inset LatexCommand \label{sub:MCS51-variants}
+\begin_inset LatexCommand label
+name "sub:MCS51-variants"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{MCS51 variants}
+\begin_inset LatexCommand index
+name "MCS51 variants"
 
 \end_inset
 
@@ -22815,33 +24361,37 @@ MCS51 processors are available from many vendors and come in many different
  flavours.
  While they might differ considerably in respect to Special Function Registers
  the core MCS51 is usually not modified or is kept compatible.
 \end_layout
 
 \begin_layout Subsection
-pdata access by SFR
+pdata access by SFR 
 \end_layout
 
 \begin_layout Standard
 With the upcome of devices with internal xdata and flash memory devices
  using port P2
-\begin_inset LatexCommand \index{P2 (mcs51 sfr)}
+\begin_inset LatexCommand index
+name "P2 (mcs51 sfr)"
 
 \end_inset
 
  as dedicated I/O port is becoming more popular.
  Switching the high byte for pdata
-\begin_inset LatexCommand \index{pdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand index
+name "pdata (mcs51, ds390 storage class)"
 
 \end_inset
 
  access which was formerly done by port P2 is then achieved by a Special
  Function Register
-\begin_inset LatexCommand \index{sfr}
+\begin_inset LatexCommand index
+name "sfr"
 
 \end_inset
 
 .
- In well-established MCS51 tradition the address of this
+ In well-established MCS51 tradition the address of this 
 \emph on
 sfr
 \emph default
@@ -22851,7 +24401,8 @@ sfr
  should define an sfr with the name _XPAGE
 \family typewriter
 
-\begin_inset LatexCommand \index{\_XPAGE (mcs51)}
+\begin_inset LatexCommand index
+name "\\_XPAGE (mcs51)"
 
 \end_inset
 
@@ -22899,8 +24450,9 @@ __sfr __at (0xaa) _XPAGE; /* some Silicon Labs (Cygnal) chips a.k.a.
 
 \begin_layout Standard
 For more exotic implementations further customizations may be needed.
- See section
-\begin_inset LatexCommand \ref{sub:Startup-Code}
+ See section 
+\begin_inset LatexCommand ref
+reference "sub:Startup-Code"
 
 \end_inset
 
@@ -22913,7 +24465,8 @@ Other Features available by SFR
 
 \begin_layout Standard
 Some MCS51 variants offer features like Double DPTR
-\begin_inset LatexCommand \index{DPTR}
+\begin_inset LatexCommand index
+name "DPTR"
 
 \end_inset
 
@@ -22921,6 +24474,287 @@ Some MCS51 variants offer features like Double DPTR
  These are currently not used for the MCS51 port.
  If you absolutely need them you can fall back to inline assembly or submit
  a patch to SDCC.
+\end_layout
+
+\begin_layout Subsection
+Bankswitching
+\end_layout
+
+\begin_layout Standard
+Bankswitching
+\begin_inset LatexCommand index
+name "Bankswitching"
+
+\end_inset
+
+ (a.k.a.
+ code banking
+\begin_inset LatexCommand index
+name "code banking"
+
+\end_inset
+
+) is a technique to increase the code space above the 64k limit of the 8051.
+\end_layout
+
+\begin_layout Subsubsection
+Hardware
+\end_layout
+
+\begin_layout Standard
+\begin_inset Tabular
+<lyxtabular version="3" rows="3" columns="4">
+<features>
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" leftline="true" width="0">
+<column alignment="center" valignment="top" leftline="true" width="0">
+<column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
+<row topline="true" bottomline="true">
+<cell multicolumn="1" alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+8000-FFFF
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+bank1
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+bank2
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+bank3
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row topline="true" bottomline="true">
+<cell multicolumn="1" alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+0000-7FFF
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+common
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="1" alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell multicolumn="1" alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+SiLabs C8051F120 example
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\newline
+
+\newline
+Usually the hardware uses some sfr (an output port or an internal sfr) to
+ select a bank and put it in the banked area of the memory map.
+ The selected bank usually becomes active immediately upon assignment to
+ this sfr and when running inside a bank it will switch out this code it
+ is currently running.
+ Therefor you cannot jump or call directly from one bank to another and
+ need to use a so-called trampoline in the common area.
+ For SDCC an example trampoline is in crtbank.asm and you may need to change
+ it to your 8051 derivative or schematic.
+ The presented code is written for the C8051F120.
+\newline
+
+\newline
+When calling a banked function
+ SDCC will put the LSB of the functions address in register R0, the MSB
+ in R1 and the bank in R2 and then call this trampoline 
+\emph on
+__sdcc_banked_call
+\emph default
+.
+ The current selected bank is saved on the stack, the new bank is selected
+ and an indirect jump is made.
+ When the banked function returns it jumps to 
+\emph on
+__sdcc_banked_ret
+\emph default
+ which restores the previous bank and returns to the caller.
+\end_layout
+
+\begin_layout Subsubsection
+Software
+\end_layout
+
+\begin_layout Standard
+When writing banked software using SDCC you need to use some special keywords
+ and options.
+ You also need to take over a bit of work from the linker.
+\newline
+
+\newline
+To create a function
+ that can be called from another bank it requires the keyword 
+\emph on
+banked
+\emph default
+
+\begin_inset LatexCommand index
+name "banked"
+
+\end_inset
+
+.
+ The caller must see this in the prototype of the callee and the callee
+ needs it for a proper return.
+ Called functions within the same bank as the caller do not need the 
+\emph on
+banked
+\emph default
+ keyword nor do functions in the common area.
+ Beware: SDCC does not know or check if functions are in the same bank.
+ This is your responsibility!
+\newline
+
+\newline
+Normally all functions you write end up in
+ the segment CSEG.
+ If you want a function explicitly to reside in the common area put it in
+ segment HOME.
+ This applies for instance to interrupt service routines as they should
+ not be banked.
+\end_layout
+
+\begin_layout Standard
+Functions that need to be in a switched bank must be put in a named segment.
+ The name can be mostly anything up to eight characters (e.g.
+ BANK1).
+ To do this you either use -
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+/
+\end_layout
+
+\end_inset
+
+-codeseg BANK1 (See 
+\begin_inset LatexCommand ref
+reference "lyx:-codeseg"
+
+\end_inset
+
+) on the command line when compiling or #pragma codeseg BANK1 (See 
+\begin_inset LatexCommand ref
+reference "sec:Pragmas"
+
+\end_inset
+
+) at the top of the C source file.
+ The segment name always applies to the whole source file and generated
+ object so functions for different banks need to be defined in different
+ source files.
+\newline
+
+\newline
+When linking your objects you need to tell the linker where
+ to put your segments.
+ To do this you use the following command line option to SDCC: -Wl-b BANK1=0x180
+00 (See 
+\begin_inset LatexCommand ref
+reference "lyx:-Wl option"
+
+\end_inset
+
+).
+ This sets the virtual start address of this segment.
+ It sets the banknumber to 0x01 and maps the bank to 0x8000 and up.
+ The linker will not check for overflows, again this is your responsibility.
+\end_layout
+
+\begin_layout Standard
 \begin_inset VSpace bigskip
 \end_inset
 
@@ -22933,12 +24767,14 @@ DS400 port
 
 \begin_layout Standard
 The DS80C400
-\begin_inset LatexCommand \index{DS80C400}
+\begin_inset LatexCommand index
+name "DS80C400"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{DS400}
+\begin_inset LatexCommand index
+name "DS400"
 
 \end_inset
 
@@ -22946,14 +24782,16 @@ The DS80C400
  In its built-in ROM library it includes functions to access some of the
  features, among them is a TCP stack with IP4 and IP6 support.
  Library headers (currently in beta status) and other files are provided
- at
+ at 
 \size footnotesize
 
-\begin_inset LatexCommand \url{ftp://ftp.dalsemi.com/pub/tini/ds80c400/c_libraries/sdcc/index.html}
+\begin_inset LatexCommand url
+target "ftp://ftp.dalsemi.com/pub/tini/ds80c400/c_libraries/sdcc/index.html"
 
 \end_inset
 
 .
 \begin_inset VSpace bigskip
 \end_inset
 
@@ -22966,27 +24804,31 @@ The Z80 and gbz80 port
 
 \begin_layout Standard
 SDCC can target both the Zilog Z80
-\begin_inset LatexCommand \index{Z80}
+\begin_inset LatexCommand index
+name "Z80"
 
 \end_inset
 
  and the Nintendo Gameboy's Z80-like gbz80
-\begin_inset LatexCommand \index{gbz80 (GameBoy Z80)}
+\begin_inset LatexCommand index
+name "gbz80 (GameBoy Z80)"
 
 \end_inset
 
 .
- The Z80 port is passed through the same
+ The Z80 port is passed through the same 
 \emph on
 regressions tests
-\begin_inset LatexCommand \index{Regression test}
+\begin_inset LatexCommand index
+name "Regression test"
 
 \end_inset
 
 
 \emph default
- (see section
-\begin_inset LatexCommand \ref{sec:Quality-control}
+ (see section 
+\begin_inset LatexCommand ref
+reference "sec:Quality-control"
 
 \end_inset
 
@@ -22999,7 +24841,8 @@ regressions tests
 As always, the code is the authoritative reference - see z80/ralloc.c and
  z80/gen.c.
  The stack
-\begin_inset LatexCommand \index{Z80!stack}
+\begin_inset LatexCommand index
+name "Z80!stack"
 
 \end_inset
 
@@ -23007,7 +24850,8 @@ As always, the code is the authoritative reference - see z80/ralloc.c and
  IX is used as the base pointer, HL and IY are used as a temporary registers,
  and BC and DE are available for holding variables.
  Return values
-\begin_inset LatexCommand \index{Z80!return value}
+\begin_inset LatexCommand index
+name "Z80!return value"
 
 \end_inset
 
@@ -23028,7 +24872,8 @@ The HC08 port
 
 \begin_layout Standard
 The port to the Freescale/Motorola HC08
-\begin_inset LatexCommand \index{HC08}
+\begin_inset LatexCommand index
+name "HC08"
 
 \end_inset
 
@@ -23041,8 +24886,9 @@ The port to the Freescale/Motorola HC08
 \end_layout
 
 \begin_layout Standard
-The HC08 port passes the regression test suite (see section
-\begin_inset LatexCommand \ref{sec:Quality-control}
+The HC08 port passes the regression test suite (see section 
+\begin_inset LatexCommand ref
+reference "sec:Quality-control"
 
 \end_inset
 
@@ -23051,13 +24897,12 @@ The HC08 port passes the regression test suite (see section
 \end_inset
 
 
-\newpage
-
 \end_layout
 
 \begin_layout Section
 The PIC14
-\begin_inset LatexCommand \index{PIC14}
+\begin_inset LatexCommand index
+name "PIC14"
 
 \end_inset
 
@@ -23066,7 +24911,8 @@ The PIC14
 
 \begin_layout Standard
 The PIC14 port adds support for Microchip
-\begin_inset LatexCommand \index{Microchip}
+\begin_inset LatexCommand index
+name "Microchip"
 
 \end_inset
 
@@ -23075,7 +24921,8 @@ The PIC14 port adds support for Microchip
 \end_inset
 
  PIC
-\begin_inset LatexCommand \index{PIC14}
+\begin_inset LatexCommand index
+name "PIC14"
 
 \end_inset
 
@@ -23089,6 +24936,7 @@ The PIC14 port adds support for Microchip
 \end_layout
 
 \begin_layout Standard
+\noindent
 Currently supported devices include:
 \end_layout
 
@@ -23118,25 +24966,34 @@ Currently supported devices include:
 \end_layout
 
 \begin_layout Standard
-16F: 627, 627a, 628, 628a, 630, 636, 639, 648a, 676, 684, 685, 687, 688,
- 689, 690
+16CR: 620a, 73, 74, 76, 77
+\end_layout
+
+\begin_layout Standard
+16F: 616, 627, 627a, 628, 628a, 630, 636, 639, 648, 648a, 676, 684, 685,
+ 687, 688, 689, 690
 \end_layout
 
 \begin_layout Standard
-16F: 716, 72, 73, 737, 74, 76, 767, 77, 777, 785
+16F: 716, 72, 73, 737, 74, 747, 76, 767, 77, 777, 785
 \end_layout
 
 \begin_layout Standard
 16F: 818, 819, 84, 84a, 87, 870, 871, 872, 873, 873a, 874, 874a, 876, 876a,
- 877, 877a, 88
+ 877, 877a, 88, 886, 887
+\end_layout
+
+\begin_layout Standard
+16F: 913, 914, 916, 917, 946
 \end_layout
 
 \begin_layout Standard
-16F: 913, 914, 916, 917
+26HV: 626, 785
 \end_layout
 
 \begin_layout Standard
-An up-to-date list of currently supported devices can be obtained via
+\noindent
+An up-to-date list of currently supported devices can be obtained via 
 \family typewriter
 sdcc -mpic14 -phelp foo.c
 \family default
@@ -23145,12 +25002,14 @@ sdcc -mpic14 -phelp foo.c
 
 \begin_layout Subsection
 PIC Code Pages
-\begin_inset LatexCommand \index{code page (pic14)}
+\begin_inset LatexCommand index
+name "code page (pic14)"
 
 \end_inset
 
  and Memory Banks
-\begin_inset LatexCommand \index{Memory bank (pic14)}
+\begin_inset LatexCommand index
+name "Memory bank (pic14)"
 
 \end_inset
 
@@ -23164,7 +25023,7 @@ The linker organizes allocation for the code page and RAM banks.
  page.
  In order to make use of multiple code pages, separate asm files must be
  used.
- The compiler assigns all
+ The compiler assigns all 
 \emph on
 static
 \emph default
@@ -23182,8 +25041,8 @@ Make local functions static, as non static functions require code page selection
 \newline
 Due to the way sdcc handles functions, place called functions prior
  to calling functions in the file wherever possible: Otherwise sdcc will
- insert unneccessary pagesel directives around the call, believing that
the called function is externally defined.
+ insert unnecessary pagesel directives around the call, believing that the
+ called function is externally defined.
 \end_layout
 
 \begin_layout Enumerate
@@ -23200,7 +25059,7 @@ And as for any 8 bit micro (especially for PIC14 as they have a very simple
 \end_layout
 
 \begin_layout Subsection
-Adding New Devices to the Port
+Adding New Devices to the Port 
 \end_layout
 
 \begin_layout Standard
@@ -23228,6 +25087,7 @@ Each device is described in two files: pic16f*.h
  These files primarily define SFRs, structs to access their bits, and symbolic
  configuration options.
  Both files can be generated from gputils' .inc files using the perl script
 \family typewriter
 support/scripts/inc2h.pl
 \family default
@@ -23237,7 +25097,7 @@ support/scripts/inc2h.pl
 
 \begin_layout Enumerate
 Copy the .h file into SDCC's include path and either add the .c file to your
- project or copy it to
+ project or copy it to 
 \family typewriter
 device/lib/pic/libdev
 \family default
@@ -23250,7 +25110,7 @@ Edit pic14devices.txt in SDCC's include path (
 \family typewriter
 device/include/pic/
 \family default
- in the source tree or
+ in the source tree or 
 \family typewriter
 /usr/local/share/sdcc/include/pic
 \family default
@@ -23269,7 +25129,8 @@ Interrupt Code
 
 \begin_layout Standard
 For the interrupt function, use the keyword `__interrupt'
-\begin_inset LatexCommand \index{PIC14!interrupt}
+\begin_inset LatexCommand index
+name "PIC14!interrupt"
 
 \end_inset
 
@@ -23298,13 +25159,15 @@ Linking and Assembling
 
 \begin_layout Standard
 For assembling you can use either GPUTILS'
-\begin_inset LatexCommand \index{gputils (pic tools)}
+\begin_inset LatexCommand index
+name "gputils (pic tools)"
 
 \end_inset
 
  gpasm.exe or MPLAB's mpasmwin.exe.
- GPUTILS are available from
-\begin_inset LatexCommand \url{http://sourceforge.net/projects/gputils}
+ GPUTILS are available from 
+\begin_inset LatexCommand url
+target "http://sourceforge.net/projects/gputils"
 
 \end_inset
 
@@ -23315,7 +25178,7 @@ For assembling you can use either GPUTILS'
 \newline
 
 \newline
-Here is a
+Here is a 
 \family typewriter
 Makefile
 \family default
@@ -23335,11 +25198,11 @@ Makefile
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-sdcc -V -mpic14 -p16f877 -c $<
+sdcc -V -mpic14 -p16f877 -c $< 
 \newline
 
 \newline
-$(PRJ).hex: $(OBJS)
+$(PRJ).hex: $(OBJS) 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -23354,7 +25217,7 @@ gplink -m -s $(PRJ).lkr
 \end_layout
 
 \begin_layout Standard
-Here is a
+Here is a 
 \family typewriter
 Makefile
 \family default
@@ -23364,7 +25227,7 @@ Makefile
 \begin_layout Verse
 
 \family typewriter
-.c.o:
+.c.o: 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -23374,7 +25237,7 @@ Makefile
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-sdcc -S -V -mpic14 -p16f877 $<
+sdcc -S -V -mpic14 -p16f877 $< 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -23389,6 +25252,7 @@ mpasmwin /q /o $*.asm
 
 \newline
 $(PRJ).hex: $(OBJS)
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -23398,14 +25262,13 @@ $(PRJ).hex: $(OBJS)
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-mplink
- /v $(PRJ).lkr /m $(PRJ).map /o $(PRJ).hex $(OBJS) libsdcc.lib
+mplink /v $(PRJ).lkr /m $(PRJ).map /o $(PRJ).hex $(OBJS) libsdcc.lib
 \end_layout
 
 \begin_layout Standard
-Please note that indentations within a
+Please note that indentations within a 
 \family typewriter
- Makefile
+Makefile
 \family default
  have to be done with a tabulator character.
 \end_layout
@@ -23447,7 +25310,8 @@ status collapsed
 \end_inset
 
 -debug-xtra
-\begin_inset LatexCommand \index{PIC14!Options!-\/-debug-extra}
+\begin_inset LatexCommand index
+name "PIC14!Options!-\\/-debug-extra"
 
 \end_inset
 
@@ -23469,7 +25333,8 @@ status collapsed
 \end_inset
 
 -no-pcode-opt
-\begin_inset LatexCommand \index{PIC14!Options!-\/-no-pcode-opt}
+\begin_inset LatexCommand index
+name "PIC14!Options!-\\/-no-pcode-opt"
 
 \end_inset
 
@@ -23491,7 +25356,8 @@ status collapsed
 \end_inset
 
 -stack-loc
-\begin_inset LatexCommand \index{PIC14!Options!-\/-stack-loc}
+\begin_inset LatexCommand index
+name "PIC14!Options!-\\/-stack-loc"
 
 \end_inset
 
@@ -23514,7 +25380,8 @@ status collapsed
 \end_inset
 
 -stack-size
-\begin_inset LatexCommand \index{PIC14!Options!-\/-stack-size}
+\begin_inset LatexCommand index
+name "PIC14!Options!-\\/-stack-size"
 
 \end_inset
 
@@ -23544,7 +25411,7 @@ The Library
 The PIC14 library currently only contains support routines required by the
  compiler to implement multiplication, division, and floating point support.
  No libc-like replacement is available at the moment, though many of the
- common sdcc library sources (in
+ common sdcc library sources (in 
 \family typewriter
 device/lib
 \family default
@@ -23559,12 +25426,13 @@ error: missing definition for symbol ``__gptrget1''
 The PIC14 port uses library routines to provide more complex operations
  like multiplication, division/modulus and (generic) pointer dereferencing.
  In order to add these routines to your project, you must link with PIC14's
 \family typewriter
 libsdcc.lib
 \family default
 .
  For single source file projects this is done automatically, more complex
- projects must add
+ projects must add 
 \family typewriter
 libsdcc.lib
 \family default
@@ -23593,7 +25461,8 @@ status open
 \end_inset
 
 bit PIC
-\begin_inset LatexCommand \index{PIC14}
+\begin_inset LatexCommand index
+name "PIC14"
 
 \end_inset
 
@@ -23602,16 +25471,16 @@ bit PIC
 
 \begin_layout Standard
 You might also consider recompiling the library for your specific device
- by changing the ARCH=p16f877 (default target) entry in
+ by changing the ARCH=p16f877 (default target) entry in 
 \family typewriter
 device/lib/pic/Makefile.in
 \family default
- and
+ and 
 \family typewriter
 device/lib/pic/Makefile
 \family default
  to reflect your device.
- This might even improve performance for smaller devices as unneccesary
+ This might even improve performance for smaller devices as unnecessary
  BANKSELs might be removed.
 \end_layout
 
@@ -23625,7 +25494,7 @@ Function arguments
 
 \begin_layout Standard
 Functions with variable argument lists (like printf) are not yet supported.
- Similarly, taking the argument of the first argument passed into a function
+ Similarly, taking the address of the first argument passed into a function
  does not work: It is currently passed in WREG and has no address...
 \end_layout
 
@@ -23650,7 +25519,8 @@ Though the small subset of regression tests in src/regression passes, SDCC
 
 \begin_layout Section
 The PIC16
-\begin_inset LatexCommand \index{PIC16}
+\begin_inset LatexCommand index
+name "PIC16"
 
 \end_inset
 
@@ -23659,7 +25529,8 @@ The PIC16
 
 \begin_layout Standard
 The PIC16 port adds support for Microchip
-\begin_inset LatexCommand \index{Microchip}
+\begin_inset LatexCommand index
+name "Microchip"
 
 \end_inset
 
@@ -23668,7 +25539,8 @@ The PIC16 port adds support for Microchip
 \end_inset
 
  PIC
-\begin_inset LatexCommand \index{PIC}
+\begin_inset LatexCommand index
+name "PIC"
 
 \end_inset
 
@@ -23690,21 +25562,44 @@ The PIC16 port adds support for Microchip
 \end_layout
 
 \begin_layout Standard
-18F: 2220, 2221, 2320, 2321, 2331, 2431, 2455, 24j10, 2525, 2550, 25j10,
- 2620
+18F: 2220, 2221, 2320, 2321, 2331, 2410, 2420, 2423, 2431, 2450, 2455, 2480,
+ 24j10
+\end_layout
+
+\begin_layout Standard
+18F: (2510,) 2515, 2520, 2523, 2525, 2550, 2580, 2585, 25j10, 2610, 2620,
+ 2680, 2682, 2685
 \end_layout
 
 \begin_layout Standard
-18F: 4220, 4221, 4320, 4321, 4331, 4431, 4455, 44j10, 4520, 4525, 4550,
- 45j10, 4620
+18F: 4220, 4221, 4320, 4321, 4331, 4410, 4420, 4423, 4431, 4450, 4455, 4480,
+ 44j10
 \end_layout
 
 \begin_layout Standard
-18F: 6520, 6620, 6680, 6720
+18F: 4510, 4515, 4520, 4523, 4525, 4550, 4580, 4585, 45j10, 4610, 4620,
+ 4680, 4682, 4685
 \end_layout
 
 \begin_layout Standard
-18F: 8520, 8620, 8680, 8720
+18F: 6520, 6585, 6620, 6680, 66j60, 66j65, 6720, 67j60
+\end_layout
+
+\begin_layout Standard
+18F: 8520, 8585, 8620, 8680, 86j60, 86j65, 8720, 87j60
+\end_layout
+
+\begin_layout Standard
+18F: 96j60, 96j65, 97j60
+\end_layout
+
+\begin_layout Standard
+\noindent
+An up-to-date list of supported devices is also available via '
+\family typewriter
+sdcc -mpic16 -plist
+\family default
+'.
 \end_layout
 
 \begin_layout Subsection
@@ -23732,7 +25627,8 @@ status collapsed
 \end_inset
 
 -callee-saves
-\begin_inset LatexCommand \index{PIC16!Options!-\/-callee-saves}
+\begin_inset LatexCommand index
+name "PIC16!Options!-\\/-callee-saves"
 
 \end_inset
 
@@ -23767,7 +25663,8 @@ status collapsed
 \end_inset
 
 -fommit-frame-pointer
-\begin_inset LatexCommand \index{PIC16!Options!-\/-fommit-frame-pointer}
+\begin_inset LatexCommand index
+name "PIC16!Options!-\\/-fommit-frame-pointer"
 
 \end_inset
 
@@ -23776,7 +25673,8 @@ status collapsed
 
 \begin_layout Subsection
 Port Specific Options
-\begin_inset LatexCommand \index{Options PIC16}
+\begin_inset LatexCommand index
+name "Options PIC16"
 
 \end_inset
 
@@ -23822,7 +25720,7 @@ status collapsed
 
 \end_inset
 
--pstack-model=[model] Used in conjuction with the command above.
+-pstack-model=[model] Used in conjunction with the command above.
  Defines the stack model to be used, valid stack models are:
 \end_layout
 
@@ -23924,6 +25822,7 @@ status collapsed
 \labelwidthstring 00.00.0000
 2 tries to check the location of (even different) symbols and removes BANKSELs
  if they are in the same bank.
 \newline
 
 \emph on
@@ -23964,7 +25863,7 @@ status collapsed
 
 \end_inset
 
--optimize-goto Try to use (conditional) BRA instead of GOTO.
+-no-optimize-goto Do not use (conditional) BRA instead of GOTO.
 \end_layout
 
 \begin_layout Description
@@ -24037,7 +25936,8 @@ status collapsed
 \end_inset
 
 -mplab-comp MPLAB
-\begin_inset LatexCommand \index{PIC16!MPLAB}
+\begin_inset LatexCommand index
+name "PIC16!MPLAB"
 
 \end_inset
 
@@ -24099,7 +25999,7 @@ status collapsed
 
 \end_inset
 
--ivt-loc=n Place the interrupt vector table at address
+-ivt-loc=n Place the interrupt vector table at address 
 \emph on
 n
 \emph default
@@ -24194,7 +26094,8 @@ status collapsed
 \end_inset
 
 -debug
-\begin_inset LatexCommand \index{-\/-debug}
+\begin_inset LatexCommand index
+name "-\\/-debug"
 
 \end_inset
 
@@ -24272,11 +26173,11 @@ status collapsed
 \end_layout
 
 \begin_layout Subsection
-Enviroment Variables
+Environment Variables
 \end_layout
 
 \begin_layout Standard
-There is a number of enviromental variables that can be used when running
+There is a number of environmental variables that can be used when running
  SDCC to enable certain optimizations or force a specific program behaviour.
  these variables are primarily for debugging purposes so they can be enabled/dis
 abled at will.
@@ -24296,6 +26197,7 @@ OPTIMIZE_BITFIELD_POINTER_GET When this variable exists, reading of structure
  of bitfields.
  (i.e., 80 bytes of code space are saved when compiling malloc.c with this
  option).
 \end_layout
 
 \begin_layout Description
@@ -24311,7 +26213,8 @@ Preprocessor Macros
 
 \begin_layout Standard
 PIC16
-\begin_inset LatexCommand \index{PIC16}
+\begin_inset LatexCommand index
+name "PIC16"
 
 \end_inset
 
@@ -24413,6 +26316,7 @@ pic18fxxxx
 
 \begin_layout Standard
 MCU Identification.
 \emph on
 xxxx
 \emph default
@@ -24484,6 +26388,7 @@ nnn = SMALL or LARGE respectively according to the stack model used
 \end_layout
 
 \begin_layout Standard
+\noindent
 In addition the following macros are defined when calling assembler:
 \end_layout
 
@@ -24529,6 +26434,7 @@ __18Fxxxx
 
 \begin_layout Standard
 MCU Identification.
 \emph on
 xxxx
 \emph default
@@ -24593,7 +26499,8 @@ Directories
 
 \begin_layout Standard
 PIC16
-\begin_inset LatexCommand \index{PIC16}
+\begin_inset LatexCommand index
+name "PIC16"
 
 \end_inset
 
@@ -24732,7 +26639,8 @@ Linker
 
 \begin_layout Subsection
 Pragmas
-\begin_inset LatexCommand \label{sub:PIC16_Pragmas}
+\begin_inset LatexCommand label
+name "sub:PIC16_Pragmas"
 
 \end_inset
 
@@ -24741,7 +26649,8 @@ Pragmas
 
 \begin_layout Standard
 The PIC16
-\begin_inset LatexCommand \index{PIC16}
+\begin_inset LatexCommand index
+name "PIC16"
 
 \end_inset
 
@@ -24750,7 +26659,8 @@ The PIC16
 
 \begin_layout Description
 stack
-\begin_inset LatexCommand \index{PIC16!Pragmas!\#pragma stack}
+\begin_inset LatexCommand index
+name "PIC16!Pragmas!\\#pragma stack"
 
 \end_inset
 
@@ -24823,7 +26733,8 @@ If the stack_size field is omitted then a stack is created with the default
 
 \begin_layout Description
 code
-\begin_inset LatexCommand \index{PIC16!Pragmas!\#pragma code}
+\begin_inset LatexCommand index
+name "PIC16!Pragmas!\\#pragma code"
 
 \end_inset
 
@@ -25091,9 +27002,10 @@ libdebug
 \end_layout
 
 \begin_layout Standard
-This feature allows for linking with specific libraries withoug having to
+\noindent
+This feature allows for linking with specific libraries without having to
  explicit name them in the command line.
- Note that the
+ Note that the 
 \noun on
 ignore
 \noun default
@@ -25247,7 +27159,8 @@ The linker will recognise the section name set in the pragma statement and
 
 \begin_layout Subsection
 Header Files
-\begin_inset LatexCommand \label{sub:PIC16_Header-Files}
+\begin_inset LatexCommand label
+name "sub:PIC16_Header-Files"
 
 \end_inset
 
@@ -25256,17 +27169,19 @@ Header Files
 
 \begin_layout Standard
 There is one main header file
-\begin_inset LatexCommand \index{PIC16!Header files}
+\begin_inset LatexCommand index
+name "PIC16!Header files"
 
 \end_inset
 
  that can be included to the source files using the pic16
-\begin_inset LatexCommand \index{PIC16}
+\begin_inset LatexCommand index
+name "PIC16"
 
 \end_inset
 
  port.
- That file is the
+ That file is the 
 \series bold
 pic18fregs.h
 \series default
@@ -25288,22 +27203,30 @@ The specific microcontroller is selected within the pic18fregs.h automatically,
 
 \begin_layout Subsection
 Libraries
+\begin_inset LatexCommand label
+name "sub:pic16Libraries"
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
 The libraries
-\begin_inset LatexCommand \index{PIC16!Libraries}
+\begin_inset LatexCommand index
+name "PIC16!Libraries"
 
 \end_inset
 
  that PIC16
-\begin_inset LatexCommand \index{PIC16}
+\begin_inset LatexCommand index
+name "PIC16"
 
 \end_inset
 
  port depends on are the microcontroller device libraries which contain
  the symbol definitions for the microcontroller special function registers.
- These libraries have the format pic18fxxxx.lib, where
+ These libraries have the format pic18fxxxx.lib, where 
 \emph on
 xxxx
 \emph default
@@ -25313,8 +27236,10 @@ xxxx
 \end_layout
 
 \begin_layout Standard
-Libraries are created with gplib which is part of the gputils package
-\begin_inset LatexCommand \url{http://sourceforge.net/projects/gputils}
+\noindent
+Libraries are created with gplib which is part of the gputils package 
+\begin_inset LatexCommand url
+target "http://sourceforge.net/projects/gputils"
 
 \end_inset
 
@@ -25327,13 +27252,11 @@ Building the libraries
 
 \begin_layout Standard
 Before using SDCC/pic16 there are some libraries that need to be compiled.
- This process is not done automatically by SDCC since not all users use
- SDCC for pic16 projects.
- So each user should compile the libraries separately.
-\end_layout
-
-\begin_layout Standard
-The steps to compile the pic16 libraries under Linux and Mac OS X are:
+ This process is done automatically if gputils are found at SDCC's compile
+ time.
+ Should you require to rebuild the pic16 libraries manually, these are the
+ steps required to do so under Linux or Mac OS X (cygwin might work as well,
+ but is untested):
 \end_layout
 
 \begin_layout LyX-Code
@@ -25341,11 +27264,7 @@ cd device/lib/pic16
 \end_layout
 
 \begin_layout LyX-Code
-./configure
-\end_layout
-
-\begin_layout LyX-Code
-make
+./configure.gnu
 \end_layout
 
 \begin_layout LyX-Code
@@ -25360,6 +27279,10 @@ make model-pic16
 su -c 'make install'     # install the libraries, you need the root password
 \end_layout
 
+\begin_layout LyX-Code
+cd ../..
+\end_layout
+
 \begin_layout Standard
 If you need to install the headers too, do:
 \end_layout
@@ -25372,26 +27295,6 @@ cd device/include
 su -c 'make install'     # install the headers, you need the root password
 \end_layout
 
-\begin_layout Standard
-There exist a special target to build the I/O libraries.
- This target is not automatically build because it will build the I/O library
- for
-\emph on
-every
-\emph default
- supported device.
- This way building will take quite a lot of time.
- Users are advised to edit the
-\series bold
-device/lib/pic16/pics.build
-\series default
- file and then execute:
-\end_layout
-
-\begin_layout LyX-Code
-make lib-io
-\end_layout
-
 \begin_layout Subsection
 Adding New Devices to the Port
 \end_layout
@@ -25399,7 +27302,7 @@ Adding New Devices to the Port
 \begin_layout Standard
 Adding support for a new 16
 \begin_inset ERT
-status open
+status collapsed
 
 \begin_layout Standard
 
@@ -25435,73 +27338,150 @@ mv picDEVICE.c /path/to/sdcc/device/lib/pic16/libdev
 \end_layout
 
 \begin_layout Enumerate
-Add DEVICE to
+Add DEVICE to 
 \family typewriter
 /path/to/sdcc/device/lib/pic16/pics.all
 \family default
- (and
-\family typewriter
-.build
-\family default
-).
+
 \newline
 Note: No 18f prefix here!
 \end_layout
 
 \begin_layout Enumerate
-Adjust
+Edit 
 \family typewriter
-/path/to/sdcc/device/lib/pic16/libio/*.ignore
-\family default
+/path/to/sdcc/device/include/pic16/adc.h
+\newline
 
+\family default
+Add the new devices to the correct ADC style class (depending on the number
+ of ADC channels).
 \newline
-Add your DEVICE if it does not compile in
+Do not touch 
 \family typewriter
-adc
+adc.h
 \family default
-,
+ if the device does not offer any ADC at all.
+\end_layout
+
+\begin_layout Enumerate
+Edit 
 \family typewriter
-i2c
+/path/to/sdcc/device/include/pic16/pic18fregs.h
 \family default
-, or
+
+\newline
+The file format is self-explanatory, just add
+\newline
+
 \family typewriter
-usart
+#elif defined(picDEVICE)
+\newline
+#
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+\backslash
+\end_layout
+
+\end_inset
+
+include <picDEVICE.h>
 \family default
-.
+
+\newline
+at the right place (keep the file sorted, please).
 \end_layout
 
 \begin_layout Enumerate
-Edit
+Edit 
 \family typewriter
-/path/to/sdcc/device/include/pic16/pic18fregs.h
-\family default
-.
- The file format is self-explanatory, just add
+/path/to/sdcc/device/include/pic16devices.txt
 \newline
 
+\family default
+Copy and modify an existing entry or create a new one and insert it at the
+ correct place (keep the file sorted, please).
+\end_layout
+
+\begin_layout Enumerate
+Add the device to 
 \family typewriter
-#elif defined(picDEVICE)
+/path/to/sdcc/device/lib/pic16/libdev/Makefile.am
+\family default
+
 \newline
-# include <picDEVICE.h>
+Copy an existing entry and adjust the device name.
+\end_layout
+
+\begin_layout Enumerate
+Add the device to 
+\family typewriter
+/path/to/sdcc/device/lib/pic16/libio/Makefile.am
 \family default
 
 \newline
-at the right place (keep it sorted).
+Copy the record from the 18f2220 and adjust the device name.
+\newline
+If the new device
+ does not offer ADC, I
+\begin_inset Formula $^{\text{2}}$
+\end_inset
+
+C, and/or (E)USART functionality as assumed by the library, remove the lines
+ with references to 
+\family typewriter
+adc/*.c
+\family default
+, 
+\family typewriter
+usart/*.c
+\family default
+, or 
+\family typewriter
+usart/*.c
+\family default
+, respectively.
 \end_layout
 
 \begin_layout Enumerate
-Edit
+Update 
+\family typewriter
+libdev/Makefile.in
+\family default
+ and 
+\family typewriter
+libio/Makefile.in
+\family default
+ using
+\newline
+
+\family typewriter
+./bootstrap.sh
+\family default
+
+\newline
+in 
 \family typewriter
-/path/to/sdcc/src/pic16/devices.inc
+/path/to/sdcc/device/lib/pic16
 \family default
 .
- Copy and modify an existing entry and insert it at the correct place (keep
- the file sorted).
- The file is hardly documented, look at the entries for the 18f2221...
 \end_layout
 
 \begin_layout Enumerate
-Recompile SDCC, including the pic16 libraries.
+Recompile the pic16 libraries as described in 
+\begin_inset LatexCommand ref
+reference "sub:pic16Libraries"
+
+\end_inset
+
+.
 \end_layout
 
 \begin_layout Subsection
@@ -25631,11 +27611,11 @@ data pointers
 It is advisable that all sources within a project are compiled with the
  same memory model.
  If one wants to override the default memory model, this can be done by
- declaring a pointer as
+ declaring a pointer as 
 \series bold
 far
 \series default
- or
+ or 
 \series bold
 near
 \series default
@@ -25645,8 +27625,9 @@ near
 \end_layout
 
 \begin_layout Standard
-The standard device libraries (see
-\begin_inset LatexCommand \ref{sub:PIC16_Header-Files}
+The standard device libraries (see 
+\begin_inset LatexCommand ref
+reference "sub:PIC16_Header-Files"
 
 \end_inset
 
@@ -25660,7 +27641,8 @@ Stack
 
 \begin_layout Standard
 The stack
-\begin_inset LatexCommand \index{PIC16!stack}
+\begin_inset LatexCommand index
+name "PIC16!stack"
 
 \end_inset
 
@@ -25702,7 +27684,7 @@ large
 Small
 \noun default
  model means that only the FSRxL byte is used to access stack and frame,
- while
+ while 
 \emph on
 \noun on
 large
@@ -25816,9 +27798,10 @@ Frame pointer FSR2
 \end_layout
 
 \begin_layout Standard
+\noindent
 
 \noun on
-Large
+Large 
 \noun default
 stack model is currently not working properly throughout the code generator.
  So its use is not advised.
@@ -25849,7 +27832,8 @@ Functions
 
 \begin_layout Standard
 In addition to the standard SDCC function keywords, PIC16
-\begin_inset LatexCommand \index{PIC16}
+\begin_inset LatexCommand index
+name "PIC16"
 
 \end_inset
 
@@ -25858,7 +27842,8 @@ In addition to the standard SDCC function keywords, PIC16
 
 \begin_layout Description
 wparam
-\begin_inset LatexCommand \index{PIC16!wparam}
+\begin_inset LatexCommand index
+name "PIC16!wparam"
 
 \end_inset
 
@@ -25896,18 +27881,19 @@ void func_wparam(int a) wparam
 
 \begin_layout Description
 shadowregs
-\begin_inset LatexCommand \index{PIC16!shadowregs}
+\begin_inset LatexCommand index
+name "PIC16!shadowregs"
 
 \end_inset
 
  When entering/exiting an ISR, it is possible to take advantage of the PIC18F
  hardware shadow registers which hold the values of WREG, STATUS and BSR
  registers.
- This can be done by adding the keyword
+ This can be done by adding the keyword 
 \emph on
 shadowregs
 \emph default
- before the
+ before the 
 \emph on
 interrupt
 \emph default
@@ -26089,11 +28075,12 @@ Interrupts
 
 \begin_layout Standard
 An interrupt
-\begin_inset LatexCommand \index{PIC16!interrupt}
+\begin_inset LatexCommand index
+name "PIC16!interrupt"
 
 \end_inset
 
- service routine (ISR) is declared using the
+ service routine (ISR) is declared using the 
 \emph on
 interrupt
 \emph default
@@ -26101,7 +28088,7 @@ interrupt
 \end_layout
 
 \begin_layout LyX-Code
-void isr(void) interrupt
+void isr(void) interrupt 
 \emph on
 n
 \end_layout
@@ -26278,16 +28265,16 @@ LOW priority interrupts
 \end_layout
 
 \begin_layout Standard
-When generating assembly code for ISR the code generator places a
+When generating assembly code for ISR the code generator places a 
 \noun on
-goto
+goto 
 \noun default
-instruction at the
+instruction at the 
 \emph on
 Interrupt Vector Address
 \emph default
- which points at the genetated ISR.
- This single GOTO instruction is part of an automatically generated
+ which points at the generated ISR.
+ This single GOTO instruction is part of an automatically generated 
 \emph on
 interrupt entry point
 \emph default
@@ -26295,7 +28282,7 @@ interrupt entry point
  The actuall ISR code is placed as normally would in the code space.
  Upon interrupt request, the GOTO instruction is executed which jumps to
  the ISR code.
- When declaring interrupt functions as _naked this GOTO instruction is
+ When declaring interrupt functions as _naked this GOTO instruction is 
 \series bold
 not
 \series default
@@ -26304,7 +28291,7 @@ not
  Address of the specific interrupt.
  This is not a problem for the LOW priority interrupts, but it is a problem
  for the RESET and the HIGH priority interrupts because code may be written
- at the next interrupt's vector address and cause undeterminate program
+ at the next interrupt's vector address and cause indeterminate program
  behaviour if that interrupt is raised.
 \begin_inset Foot
 status open
@@ -26314,7 +28301,7 @@ This is not a problem when
 \end_layout
 
 \begin_layout Enumerate
-this is a HIGH interrupt ISR and LOW interrupts are
+this is a HIGH interrupt ISR and LOW interrupts are 
 \emph on
 disabled
 \emph default
 
 \begin_layout Standard
 When entering an interrupt, currently the PIC16
-\begin_inset LatexCommand \index{PIC16}
+\begin_inset LatexCommand index
+name "PIC16"
 
 \end_inset
 
@@ -26458,7 +28446,7 @@ description
 \begin_inset Text
 
 \begin_layout Standard
-data
+data 
 \end_layout
 
 \end_inset
@@ -26665,6 +28653,7 @@ unimplemented pointer type
 \end_layout
 
 \begin_layout Standard
+\noindent
 Generic pointer are read and written with a set of library functions which
  read/write 1, 2, 3, 4 bytes.
 \end_layout
@@ -26678,7 +28667,7 @@ Standard I/O Streams
 \end_layout
 
 \begin_layout Standard
-In the
+In the 
 \emph on
 stdio.h
 \emph default
@@ -26704,15 +28693,16 @@ extern FILE * stdout;
 
 \begin_layout Standard
 The FILE type is actually a generic pointer which defines one more type
- of generic pointers, the
+ of generic pointers, the 
 \emph on
 stream
 \emph default
-pointer.
+ pointer.
  This new type has the format:
 \end_layout
 
 \begin_layout Standard
+\noindent
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="2" columns="7">
@@ -26866,10 +28856,12 @@ upper byte high nubble is 0x2n, the rest are zeroes
 \end_layout
 
 \begin_layout Standard
+\noindent
 Currently implemented there are 3 types of streams defined:
 \end_layout
 
 \begin_layout Standard
+\noindent
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="4">
@@ -27044,10 +29036,12 @@ Writes/Reads characters via used defined functions
 \end_layout
 
 \begin_layout Standard
+\noindent
 The stream identifiers are declared as macros in the stdio.h header.
 \end_layout
 
 \begin_layout Standard
+\noindent
 In the libc library there exist the functions that are used to write to
  each of the above streams.
  These are
@@ -27093,14 +29087,15 @@ putchar dummy function.
 \end_layout
 
 \begin_layout Standard
-In order to increase performance
+In order to increase performance 
 \emph on
 putchar
 \emph default
-is declared in stdio.h as having its parameter in WREG (it has the wparam
+ is declared in stdio.h as having its parameter in WREG (it has the wparam
  keyword).
  In stdio.h exists the macro PUTCHAR(arg) that defines the putchar function
  in a user-friendly way.
 \emph on
 arg
 \emph default
@@ -27127,7 +29122,7 @@ PUTCHAR( c )
 \end_layout
 
 \begin_layout LyX-Code
-}
+} 
 \newline
 
 \newline
@@ -27210,13 +29205,13 @@ extern unsigned int vfprintf(FILE *fp, char *fmt, va_list ap);
 \end_layout
 
 \begin_layout Standard
-For sprintf and vsprintf
+For sprintf and vsprintf 
 \emph on
 buf
 \emph default
-should normally be a data pointer where the resulting string will be placed.
- No range checking is done so the user should allocate the necessery buffer.
- For fprintf and vfprintf
+ should normally be a data pointer where the resulting string will be placed.
+ No range checking is done so the user should allocate the necessary buffer.
+ For fprintf and vfprintf 
 \emph on
 fp
 \emph default
@@ -27274,7 +29269,7 @@ signal name
 \begin_inset Text
 
 \begin_layout Standard
-descritpion
+description
 \end_layout
 
 \end_inset
@@ -27668,7 +29663,8 @@ TMR3 overflow interrupt
 \end_layout
 
 \begin_layout Standard
-The prototypes for these names are defined in the header file
+\noindent
+The prototypes for these names are defined in the header file 
 \emph on
 signal.h
 \emph default
@@ -27676,6 +29672,7 @@ signal.h
 \end_layout
 
 \begin_layout Standard
+\noindent
 In order to simplify signal handling, a number of macros is provided:
 \end_layout
 
@@ -27683,6 +29680,7 @@ In order to simplify signal handling, a number of macros is provided:
 \labelwidthstring 00.00.0000
 DEF_INTHIGH(name) begin the definition of the interrupt dispatch table for
  high priority interrupts.
 \emph on
 name
 \emph default
@@ -27693,6 +29691,7 @@ name
 \labelwidthstring 00.00.0000
 DEF_INTLOW(name) begin the definition of the interrupt dispatch table fo
  low priority interrupt.
 \emph on
 name
 \emph default
@@ -27701,7 +29700,7 @@ name
 
 \begin_layout List
 \labelwidthstring 00.00.0000
-DEF_HANDLER(sig,handler) define a handler for signal
+DEF_HANDLER(sig,handler) define a handler for signal 
 \emph on
 sig.
 \end_layout
@@ -27722,7 +29721,7 @@ Additionally there are two more macros to simplify the declaration of the
 \series medium
 SIGHANDLER(handler)
 \series default
-this declares the function prototype for the
+ this declares the function prototype for the 
 \emph on
 handler
 \emph default
@@ -27819,7 +29818,7 @@ do not place a colon (;) at the end of the DEF_* and END_DEF macros.
 \end_layout
 
 \begin_layout Itemize
-when declaring SIGHANDLERNAKED handler never forget to use
+when declaring SIGHANDLERNAKED handler never forget to use 
 \emph on
 retfie
 \emph default
@@ -27840,7 +29839,8 @@ Stack size
 
 \begin_layout Standard
 The default stack
-\begin_inset LatexCommand \index{PIC16!stack}
+\begin_inset LatexCommand index
+name "PIC16!stack"
 
 \end_inset
 
@@ -27883,21 +29883,48 @@ status collapsed
 Known Bugs
 \end_layout
 
+\begin_layout Subsubsection
+Extended Instruction Set
+\end_layout
+
+\begin_layout Standard
+The PIC16 port emits code which is incompatible with the extended instruction
+ set available with many newer devices.
+ Make sure to always explicitly disable it, usually using
+\end_layout
+
 \begin_layout Standard
-The PIC16 Port currently does not pass SDCC's regression test
-\begin_inset LatexCommand \index{Regression test (PIC16)}
+
+\family typewriter
+static __code char __at(__CONFIG4L) conf4l = /* more flags & */ _XINST_OFF_4L;
+\end_layout
+
+\begin_layout Standard
+\noindent
+Some devices (namely 18f2455, 18f2550, 18f4455, and 18f4550) use _ENHCPU_OFF_4L
+ instead of _XINST_OFF_4L.
+\end_layout
+
+\begin_layout Subsubsection
+Regression Tests
+\end_layout
+
+\begin_layout Standard
+The PIC16 port currently passes most but not all of the tests in SDCC's
+ regression test
+\begin_inset LatexCommand index
+name "Regression test (PIC16)"
 
 \end_inset
 
- suite (see section
-\begin_inset LatexCommand \ref{sec:Quality-control}
+ suite (see section 
+\begin_inset LatexCommand ref
+reference "sec:Quality-control"
 
 \end_inset
 
-) and thus the snapshot build regression tests for the PIC16 target are
- currently disabled for all hosts
-\emph on
-.
+), thus no automatic regression tests are currently performed for the PIC16
+ target.
 \end_layout
 
 \begin_layout Chapter
@@ -27922,12 +29949,14 @@ write your code with debugging in mind (avoid duplicating code, put conceptually
 
 \begin_layout Itemize
 run a syntax-checking tool like splint
-\begin_inset LatexCommand \index{splint (syntax checking tool)}
+\begin_inset LatexCommand index
+name "splint (syntax checking tool)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{lint (syntax checking tool)}
+\begin_inset LatexCommand index
+name "lint (syntax checking tool)"
 
 \end_inset
 
@@ -27944,8 +29973,9 @@ status collapsed
 
 \end_inset
 
--more-pedantic
-\begin_inset LatexCommand \ref{lyx:more-pedantic-SPLINT}
+-more-pedantic 
+\begin_inset LatexCommand ref
+reference "lyx:more-pedantic-SPLINT"
 
 \end_inset
 
@@ -27968,12 +29998,14 @@ status collapsed
 
 \end_inset
 
--more-pedantic
-\begin_inset LatexCommand \ref{lyx:more-pedantic-SPLINT}
+-more-pedantic 
+\begin_inset LatexCommand ref
+reference "lyx:more-pedantic-SPLINT"
 
 \end_inset
 
 ) on how to handle syntax extensions like __xdata, __at(), ...
 \end_layout
 
 \begin_layout Itemize
@@ -27990,8 +30022,9 @@ Debugging on a simulator:
 \end_layout
 
 \begin_layout Itemize
-there is a separate section about SDCDB (section
-\begin_inset LatexCommand \ref{cha:Debugging-with-SDCDB}
+there is a separate section about SDCDB (section 
+\begin_inset LatexCommand ref
+reference "cha:Debugging-with-SDCDB"
 
 \end_inset
 
@@ -28001,12 +30034,14 @@ there is a separate section about SDCDB (section
 \begin_layout Itemize
 or (8051 specific) use a freeware/commercial simulator which interfaces
  to the AOMF
-\begin_inset LatexCommand \index{AOMF, AOMF51}
+\begin_inset LatexCommand index
+name "AOMF, AOMF51"
 
 \end_inset
 
- file (see
-\begin_inset LatexCommand \ref{OMF file}
+ file (see 
+\begin_inset LatexCommand ref
+reference "OMF file"
 
 \end_inset
 
@@ -28014,7 +30049,7 @@ or (8051 specific) use a freeware/commercial simulator which interfaces
 \end_layout
 
 \begin_layout Standard
-Debugging On-target:
+Debugging On-target: 
 \end_layout
 
 \begin_layout Itemize
@@ -28032,7 +30067,9 @@ use an on-target monitor.
  via a serial line and allows to set program counter, to single step through
  a program and read/write memory locations.
  For the 8051 good examples of monitors are paulmon and cmon51 (see section
-\begin_inset LatexCommand \ref{sec:Related-open-source-tools}
+\begin_inset LatexCommand ref
+reference "sec:Related-open-source-tools"
 
 \end_inset
 
@@ -28042,12 +30079,13 @@ use an on-target monitor.
 \begin_layout Itemize
 toggle MCU port pins at strategic points within your code and use an oscilloscop
 e.
- A
+ A 
 \emph on
 digital oscilloscope
 \emph default
 
-\begin_inset LatexCommand \index{Oscilloscope}
+\begin_inset LatexCommand index
+name "Oscilloscope"
 
 \end_inset
 
 
  resistor to the oscilloscope probe (check output drive capability of the
  pins you want to monitor).
- If you need to monitor many more pins a
+ If you need to monitor many more pins a 
 \emph on
 logic analyzer
 \emph default
@@ -28080,16 +30118,17 @@ use an ICE (
 \emph on
 i
 \emph default
-n
+n 
 \emph on
 c
 \emph default
-ircuit
+ircuit 
 \emph on
 e
 \emph default
 mulator
-\begin_inset LatexCommand \index{ICE (in circuit emulator)}
+\begin_inset LatexCommand index
+name "ICE (in circuit emulator)"
 
 \end_inset
 
@@ -28097,6 +30136,7 @@ mulator
  Usually very expensive.
  And very nice to have too.
  And usually locks you (for years...) to the devices the ICE can emulate.
 \end_layout
 
 \begin_layout Itemize
@@ -28105,10 +30145,10 @@ use a remote debugger.
  and a complete debugger is too bulky for the target system.
  Therefore usually a debugger on the host system connects to an on-target
  debugging stub which accepts only primitive commands.
 \newline
-Terms to enter into
- your favourite search engine could be 'remote debugging', 'gdb stub' or
- 'inferior debugger'.
+Terms to enter into your favourite search engine could be 'remote debugging',
+ 'gdb stub' or 'inferior debugger'.
  (is there one?)
 \end_layout
 
@@ -28117,21 +30157,25 @@ use an on target hardware debugger.
  Some of the more modern MCUs include hardware support for setting break
  points and monitoring/changing variables by using dedicated hardware pins.
  This facility doesn't require additional code to run on the target and
 \emph on
 usually
 \emph default
  doesn't affect runtime behaviour until a breakpoint is hit.
  For the mcs51 most hardware debuggers use the AOMF
-\begin_inset LatexCommand \index{AOMF, AOMF51}
+\begin_inset LatexCommand index
+name "AOMF, AOMF51"
 
 \end_inset
 
- file (see
-\begin_inset LatexCommand \ref{OMF file}
+ file (see 
+\begin_inset LatexCommand ref
+reference "OMF file"
 
 \end_inset
 
 ) as input file.
 \end_layout
 
 \begin_layout Standard
@@ -28140,28 +30184,28 @@ Last not least:
 
 \begin_layout Itemize
 if you are not familiar with any of the following terms you're likely to
- run into problems rather sooner than later:
+ run into problems rather sooner than later: 
 \emph on
 volatile
 \emph default
-,
+, 
 \emph on
 atomic
 \emph default
-,
+, 
 \emph on
 memory map
 \emph default
-,
+, 
 \emph on
 overlay
 \emph default
 .
- As an embedded programmer you
+ As an embedded programmer you 
 \emph on
 have
 \emph default
- to know them so why not look them up
+ to know them so why not look them up 
 \emph on
 before
 \emph default
@@ -28178,28 +30222,32 @@ tell someone else about your problem (actually this is a surprisingly effective
 
 \begin_layout Section
 Debugging with SDCDB
-\begin_inset LatexCommand \label{cha:Debugging-with-SDCDB}
+\begin_inset LatexCommand label
+name "cha:Debugging-with-SDCDB"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{SDCDB (debugger)}
+\begin_inset LatexCommand index
+name "SDCDB (debugger)"
 
 \end_inset
 
-
 \end_layout
 
 \begin_layout Standard
 SDCC is distributed with a source level debugger
-\begin_inset LatexCommand \index{Debugger}
+\begin_inset LatexCommand index
+name "Debugger"
 
 \end_inset
 
 .
  The debugger uses a command line interface, the command repertoire of the
  debugger has been kept as close to gdb
-\begin_inset LatexCommand \index{gdb}
+\begin_inset LatexCommand index
+name "gdb"
 
 \end_inset
 
@@ -28230,7 +30278,8 @@ status collapsed
 \end_inset
 
 -debug
-\begin_inset LatexCommand \index{-\/-debug}
+\begin_inset LatexCommand index
+name "-\\/-debug"
 
 \end_inset
 
@@ -28238,12 +30287,14 @@ status collapsed
  be generated.
  The compiler generates a .adb file for each of these files.
  The linker creates the .cdb
-\begin_inset LatexCommand \index{<file>.cdb}
+\begin_inset LatexCommand index
+name "<file>.cdb"
 
 \end_inset
 
  file from the .adb
-\begin_inset LatexCommand \index{<file>.adb}
+\begin_inset LatexCommand index
+name "<file>.adb"
 
 \end_inset
 
@@ -28280,16 +30331,17 @@ status collapsed
  execution is controlled by the debugger.
  When a command is issued for the debugger, it translates it into appropriate
  commands for the simulator.
- (Currently SDCDM only connects to the simulator but
+ (Currently SDCDM only connects to the simulator but 
 \emph on
 newcdb
 \emph default
- at
-\begin_inset LatexCommand \url{http://ec2drv.sf.net/}
+ at 
+\begin_inset LatexCommand url
+target "http://ec2drv.sf.net/"
 
 \end_inset
 
- is an effort to connect directly to the hardware.)
+ is an effort to connect directly to the hardware.) 
 \end_layout
 
 \begin_layout Subsection
@@ -28325,7 +30377,8 @@ foo.cdb - the debugger symbol information file.
 
 \begin_layout Itemize
 foo.ihx - the Intel hex format
-\begin_inset LatexCommand \index{Intel hex format}
+\begin_inset LatexCommand index
+name "Intel hex format"
 
 \end_inset
 
@@ -28384,6 +30437,7 @@ status collapsed
 
 -directory=/home/src1:/home/src2.
  Note there can be no spaces in the option.
 \end_layout
 
 \begin_layout Itemize
@@ -28441,7 +30495,7 @@ Set breakpoint at specified line or function:
 
 \family sans
 \series bold
-sdcdb>break 100
+sdcdb>break 100 
 \newline
 sdcdb>break foo.c:100
 \newline
@@ -28542,7 +30596,7 @@ Start debugged program.
 \end_layout
 
 \begin_layout Subsubsection*
-ptype variable
+ptype variable 
 \end_layout
 
 \begin_layout Standard
@@ -28613,7 +30667,7 @@ Interfacing SDCDB with DDD
 status collapsed
 
 \begin_layout Standard
-The screenshot was converted from png to eps with:
+The screenshot was converted from png to eps with: 
 \begin_inset Quotes sld
 \end_inset
 
@@ -28637,29 +30691,31 @@ The screenshot was included in sdccman.lyx cvs version 1.120 but later removed
 \end_layout
 
 \begin_layout Standard
-The
+The 
 \emph on
 p
 \emph default
-ortable
+ortable 
 \emph on
 n
 \emph default
-etwork
+etwork 
 \emph on
 g
 \emph default
-raphics File
+raphics File 
 \size footnotesize
 
-\begin_inset LatexCommand \url{http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/doc/figures/ddd_example.png}
+\begin_inset LatexCommand url
+target "http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/doc/figures/ddd_example.png"
 
 \end_inset
 
 
 \size default
  shows a screenshot of a debugging session with DDD
-\begin_inset LatexCommand \index{DDD (debugger)}
+\begin_inset LatexCommand index
+name "DDD (debugger)"
 
 \end_inset
 
@@ -28667,8 +30723,9 @@ raphics File
  The debugging session might not run as smoothly as the screenshot suggests.
  The debugger allows setting of breakpoints, displaying and changing variables,
  single stepping through C and assembler code.
 \newline
-The source was compiled with
+The source was compiled with 
 \family sans
 \series bold
 
@@ -28695,13 +30752,19 @@ status collapsed
 \family sans
 \series bold
 -debug ddd_example.c
+\family default
+\series default
+\family sans
+\series bold
+
 \newline
 
 \family default
 \series default
 
 \newline
-and DDD was invoked with
+and DDD was invoked with 
 \family sans
 \series bold
 
@@ -28716,9 +30779,9 @@ ddd -debugger "sdcdb -cpu 8032 ddd_example"
 status open
 
 \begin_layout Standard
-Check that the double quotes or an apostroph within the command line survive
+Check that the double quotes or an apostrophe within the command line survive
  the LyX tool chain.
- Previously the apostrophs got slanted in the PDF output so a cut and paste
+ Previously the apostrophes got slanted in the PDF output so a cut and paste
  did not work.
 \end_layout
 
@@ -28729,12 +30792,14 @@ Check that the double quotes or an apostroph within the command line survive
 
 \begin_layout Subsection
 Interfacing SDCDB with XEmacs
-\begin_inset LatexCommand \index{XEmacs}
+\begin_inset LatexCommand index
+name "XEmacs"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Emacs}
+\begin_inset LatexCommand index
+name "Emacs"
 
 \end_inset
 
@@ -28748,7 +30813,7 @@ Two files (in emacs lisp) are provided for the interfacing with XEmacs,
 ion is complete.
  These files need to be loaded into XEmacs for the interface to work.
  This can be done at XEmacs startup time by inserting the following into
- your '.xemacs' file (which can be found in your HOME directory):
+ your '.xemacs' file (which can be found in your HOME directory): 
 \newline
 
 \newline
@@ -28756,7 +30821,7 @@ ion is complete.
 \family typewriter
 (load-file sdcdbsrc.el)
 \family default
-
 \newline
 
 \newline
@@ -28764,7 +30829,7 @@ ion is complete.
  The files can also be loaded dynamically while XEmacs is running, set the
  environment variable 'EMACSLOADPATH' to the installation bin directory
  (<installdir>/bin), then enter the following command ESC-x load-file sdcdbsrc.
- To start the interface enter the following command:
+ To start the interface enter the following command: 
 \newline
 
 \newline
@@ -28779,12 +30844,12 @@ ESC-x sdcdbsrc
 
 \newline
 You will prompted to enter the file name to be debugged.
 \newline
 
 \newline
-The command line
- options that are passed to the simulator directly are bound to default
- values in the file sdcdbsrc.el.
+The command line options that are passed to the simulator directly are
+ bound to default values in the file sdcdbsrc.el.
  The variables are listed below, these values maybe changed as required.
 \end_layout
 
@@ -28811,7 +30876,7 @@ The following is a list of key mapping for the debugger interface.
 
 \newline
 ;;\InsetSpace ~
-Current Listing ::
+Current Listing :: 
 \newline
 ;;key\InsetSpace ~
 \InsetSpace ~
@@ -28849,7 +30914,7 @@ binding\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-Comment
+Comment 
 \newline
 ;;---\InsetSpace ~
 \InsetSpace ~
@@ -28889,7 +30954,7 @@ Comment
 \InsetSpace ~
 -------
 \newline
-;;
+;; 
 \newline
 ;;\InsetSpace ~
 n\InsetSpace ~
@@ -28907,8 +30972,8 @@ n\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-sdcdb-next-from-s
-rc\InsetSpace ~
+sdcdb-next-fro
+m-src\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -28918,7 +30983,7 @@ rc\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-SDCDB next command
+SDCDB next command 
 \newline
 ;;\InsetSpace ~
 b\InsetSpace ~
@@ -28946,7 +31011,7 @@ sdcdb-back-from-src\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-SDCDB back command
+SDCDB back command 
 \newline
 ;;\InsetSpace ~
 c\InsetSpace ~
@@ -28964,8 +31029,8 @@ c\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-sdcdb-cont-from-s
-rc\InsetSpace ~
+sdcdb-cont-f
+rom-src\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -29003,7 +31068,7 @@ sdcdb-step-from-src\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-SDCDB step command
+SDCDB step command 
 \newline
 ;;\InsetSpace ~
 ?\InsetSpace ~
@@ -29021,8 +31086,8 @@ SDCDB step command
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-sdcdb-whatis-
-c-sexp\InsetSpace ~
+sdcdb-w
+hatis-c-sexp\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -29032,7 +31097,7 @@ c-sexp\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-SDCDB ptypecommand for data at
+SDCDB ptypecommand for data at 
 \newline
 ;;\InsetSpace ~
 \InsetSpace ~
@@ -29081,7 +31146,7 @@ SDCDB ptypecommand for data at
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-buffer point
+buffer point 
 \newline
 ;;\InsetSpace ~
 x\InsetSpace ~
@@ -29113,8 +31178,8 @@ sdcdbsrc-delete\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-SDCDB
- Delete all breakpoints if no arg
+SDCD
+B Delete all breakpoints if no arg 
 \newline
 ;;\InsetSpace ~
 \InsetSpace ~
@@ -29163,7 +31228,7 @@ SDCDB
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-given or delete arg (C-u arg x)
+given or delete arg (C-u arg x) 
 \newline
 ;;\InsetSpace ~
 m\InsetSpace ~
@@ -29181,8 +31246,8 @@ m\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-sdcdbsrc-fr
-ame\InsetSpace ~
+sdcdbsrc
+-frame\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -29197,7 +31262,7 @@ ame\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-SDCDB Display current frame if no arg,
+SDCDB Display current frame if no arg, 
 \newline
 ;;\InsetSpace ~
 \InsetSpace ~
@@ -29247,6 +31312,7 @@ SDCDB Display current frame if no arg,
 \InsetSpace ~
 \InsetSpace ~
 given or display frame arg
 \newline
 ;;\InsetSpace ~
 \InsetSpace ~
@@ -29295,8 +31361,7 @@ given or display frame arg
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-buffer
- point
+buffer point 
 \newline
 ;;\InsetSpace ~
 !\InsetSpace ~
@@ -29324,7 +31389,7 @@ sdcdbsrc-goto-sdcdb\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-Goto the SDCDB output buffer
+Goto the SDCDB output buffer 
 \newline
 ;;\InsetSpace ~
 p\InsetSpace ~
@@ -29342,7 +31407,8 @@ p\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-sdcdb-print-c-sexp\InsetSpace ~
+sdcdb-prin
+t-c-sexp\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -29353,8 +31419,7 @@ sdcdb-print-c-sexp\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-SDC
-DB print command for data at
+SDCDB print command for data at 
 \newline
 ;;\InsetSpace ~
 \InsetSpace ~
@@ -29403,7 +31468,7 @@ DB print command for data at
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-buffer point
+buffer point 
 \newline
 ;;\InsetSpace ~
 g\InsetSpace ~
@@ -29431,8 +31496,8 @@ sdcdbsrc-goto-sdcdb\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-Goto the
- SDCDB output buffer
+Got
+o the SDCDB output buffer 
 \newline
 ;;\InsetSpace ~
 t\InsetSpace ~
@@ -29466,14 +31531,14 @@ sdcdbsrc-mode\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-Toggles Sdcdbsrc mode (turns it off)
+Toggles Sdcdbsrc mode (turns it
+ off) 
 \newline
-;;
+;; 
 \newline
 ;;\InsetSpace ~
 C-c\InsetSpace ~
-C
--f\InsetSpace ~
+C-f\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -29490,9 +31555,9 @@ sdcdb-finish-from-src\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-SDCDB finish command
+SDCDB finish command 
 \newline
-;;
+;; 
 \newline
 ;;\InsetSpace ~
 C-x\InsetSpace ~
@@ -29505,7 +31570,8 @@ SPC\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-sdcdb-break\InsetSpace ~
+sdcdb-brea
+k\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -29523,8 +31589,7 @@ sdcdb-break\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-Set break
- for line with point
+Set break for line with point 
 \newline
 ;;\InsetSpace ~
 ESC\InsetSpace ~
@@ -29555,7 +31620,7 @@ sdcdbsrc-mode\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-Toggle Sdcdbsrc mode
+Toggle Sdcdbsrc mode 
 \newline
 ;;\InsetSpace ~
 ESC\InsetSpace ~
@@ -29570,8 +31635,8 @@ m\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-sdcdbsrc-srcmod
-e\InsetSpace ~
+sdc
+dbsrc-srcmode\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -29584,9 +31649,9 @@ e\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-Toggle list mode
+Toggle list mode 
 \newline
-;;
+;; 
 \newline
 
 \family default
@@ -29611,7 +31676,8 @@ Use the smallest data type to represent your data-value.
  use an 'unsigned char' instead of a 'short' or 'int'.
  Please note, that ANSI C requires both signed and unsigned chars to be
  promoted to 'signed int'
-\begin_inset LatexCommand \index{promotion to signed int}
+\begin_inset LatexCommand index
+name "promotion to signed int"
 
 \end_inset
 
@@ -29630,12 +31696,14 @@ status collapsed
 
  before doing any operation.
  This promotion
-\begin_inset LatexCommand \index{type promotion}
+\begin_inset LatexCommand index
+name "type promotion"
 
 \end_inset
 
 
-\begin_inset LatexCommand \label{type promotion}
+\begin_inset LatexCommand label
+name "type promotion"
 
 \end_inset
 
@@ -29668,11 +31736,12 @@ if (uc * uc < 0) /* this is true! */
 \family typewriter
 uc * uc
 \family default
- is evaluated as
+ is evaluated as 
 \family typewriter
 (int) uc * (int) uc = (int) 0xfe * (int) 0xfe = (int) 0xfc04 = -1024
 \family default
 .
 \newline
 Another one:
 \end_layout
@@ -29710,7 +31779,7 @@ Don't complain, that gcc gives you a different result.
  gcc uses 32 bit ints, while SDCC uses 16 bit ints.
  Therefore the results are different.
 \newline
-From
+From 
 \begin_inset Quotes sld
 \end_inset
 
@@ -29749,7 +31818,8 @@ NEVER jump into a LOOP.
 
 \begin_layout Itemize
 Declare the variables to be local
-\begin_inset LatexCommand \index{local variables}
+\begin_inset LatexCommand index
+name "local variables"
 
 \end_inset
 
@@ -29757,7 +31827,7 @@ Declare the variables to be local
 \end_layout
 
 \begin_layout Itemize
-Have a look at the assembly listing to get a
+Have a look at the assembly listing to get a 
 \begin_inset Quotes sld
 \end_inset
 
@@ -29770,7 +31840,8 @@ feeling
 
 \begin_layout Section
 Porting code from or to other compilers
-\begin_inset LatexCommand \label{sec:Porting-code-to-other-compilers}
+\begin_inset LatexCommand label
+name "sec:Porting-code-to-other-compilers"
 
 \end_inset
 
@@ -29783,30 +31854,35 @@ check whether endianness of the compilers differs and adapt where needed.
 
 \begin_layout Itemize
 check the device specific header files
-\begin_inset LatexCommand \index{Header files}
+\begin_inset LatexCommand index
+name "Header files"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Include files}
+\begin_inset LatexCommand index
+name "Include files"
 
 \end_inset
 
  for compiler specific syntax.
  Eventually include the file <compiler.h
-\begin_inset LatexCommand \index{compiler.h (include file)}
+\begin_inset LatexCommand index
+name "compiler.h (include file)"
 
 \end_inset
 
->
-\begin_inset LatexCommand \url{http://sdcc.svn.sourceforge.net/viewvc/sdcc/trunk/sdcc/device/include/mcs51/compiler.h?view=markup}
+> 
+\begin_inset LatexCommand url
+target "http://sdcc.svn.sourceforge.net/viewvc/sdcc/trunk/sdcc/device/include/mcs51/compiler.h?view=markup"
 
 \end_inset
 
  to allow using common header files.
  (see f.e.
- cc2510fx.h
-\begin_inset LatexCommand \url{http://sdcc.svn.sourceforge.net/viewvc/sdcc/trunk/sdcc/device/include/mcs51/cc2510fx.h?view=markup}
+ cc2510fx.h 
+\begin_inset LatexCommand url
+target "http://sdcc.svn.sourceforge.net/viewvc/sdcc/trunk/sdcc/device/include/mcs51/cc2510fx.h?view=markup"
 
 \end_inset
 
@@ -29829,11 +31905,12 @@ check if some 16 or 32 bit hardware registers require a specific addressing
 \emph on
 first
 \emph default
- and
+ and 
 \emph on
 last
 \emph default
  relate to time and not to lower/upper memory location here, so this is
 \emph on
 not
 \emph default
@@ -29841,7 +31918,7 @@ not
 \end_layout
 
 \begin_layout Itemize
-check whether the keyword
+check whether the keyword 
 \emph on
 volatile
 \emph default
@@ -29849,8 +31926,9 @@ volatile
  The compilers might differ in their optimization characteristics (as different
  versions of the same compiler might also use more clever optimizations
  this is good idea anyway).
- See section
-\begin_inset LatexCommand \ref{sub:Common-interrupt-pitfall-volatile}
+ See section 
+\begin_inset LatexCommand ref
+reference "sub:Common-interrupt-pitfall-volatile"
 
 \end_inset
 
@@ -29858,7 +31936,7 @@ volatile
 \end_layout
 
 \begin_layout Itemize
-check that the compilers are not told to supress warnings.
+check that the compilers are not told to suppress warnings.
 \end_layout
 
 \begin_layout Itemize
@@ -29868,39 +31946,41 @@ check and convert compiler specific extensions (interrupts, memory areas,
 
 \begin_layout Itemize
 check for differences in type promotion.
- Especially check for math operations on
+ Especially check for math operations on 
 \family typewriter
 char
 \family default
- or
+ or 
 \family typewriter
 unsigned char
 \family default
  variables.
- For the sake of C99 compatibility SDCC will probably promote these to
+ For the sake of C99 compatibility SDCC will probably promote these to 
 \family typewriter
 int
 \family default
  more often than other compilers.
- Eventually insert explicit casts to
+ Eventually insert explicit casts to 
 \family typewriter
 (char)
 \family default
-or
+ or 
 \family typewriter
- (unsigned char)
+(unsigned char)
 \family default
 .
  Also check that the ~\InsetSpace ~
 operator
-\begin_inset LatexCommand \index{\~\/ Operator}
+\begin_inset LatexCommand index
+name "\\~\\/ Operator"
 
 \end_inset
 
- is not used on
+ is not used on 
 \family typewriter
 bit
-\begin_inset LatexCommand \index{bit}
+\begin_inset LatexCommand index
+name "bit"
 
 \end_inset
 
@@ -29908,13 +31988,15 @@ bit
 \family default
  variables, use the !\InsetSpace ~
 operator instead.
- See sections
-\begin_inset LatexCommand \ref{type promotion}
+ See sections 
+\begin_inset LatexCommand ref
+reference "type promotion"
 
 \end_inset
 
- and
-\begin_inset LatexCommand \ref{sec:Compatibility-with-previous}
+ and 
+\begin_inset LatexCommand ref
+reference "sec:Compatibility-with-previous"
 
 \end_inset
 
@@ -29933,21 +32015,23 @@ check whether timing loops result in proper timing (or preferably consider
 
 \begin_layout Itemize
 check for differences in printf parameters (some compilers push (va_arg
-\begin_inset LatexCommand \index{vararg, va\_arg}
+\begin_inset LatexCommand index
+name "vararg, va\\_arg"
 
 \end_inset
 
-) char variables as
+) char variables as 
 \family typewriter
 int
 \family default
- others push them as
+ others push them as 
 \family typewriter
 char
 \family default
 .
- See section
-\begin_inset LatexCommand \ref{sec:Compatibility-with-previous}
+ See section 
+\begin_inset LatexCommand ref
+reference "sec:Compatibility-with-previous"
 
 \end_inset
 
@@ -29956,7 +32040,8 @@ char
 
 \begin_layout Itemize
 check the resulting memory map
-\begin_inset LatexCommand \index{Memory map}
+\begin_inset LatexCommand index
+name "Memory map"
 
 \end_inset
 
@@ -29968,7 +32053,8 @@ ly idata, pdata, xdata).
 
 \begin_layout Section
 Tools
-\begin_inset LatexCommand \index{Tools}
+\begin_inset LatexCommand index
+name "Tools"
 
 \end_inset
 
@@ -30024,7 +32110,8 @@ Directory
 
 \begin_layout Standard
 uCsim
-\begin_inset LatexCommand \index{uCsim}
+\begin_inset LatexCommand index
+name "uCsim"
 
 \end_inset
 
@@ -30067,12 +32154,14 @@ keil2sdcc.pl
 
 \begin_layout Standard
 header file
-\begin_inset LatexCommand \index{Header files}
+\begin_inset LatexCommand index
+name "Header files"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Include files}
+\begin_inset LatexCommand index
+name "Include files"
 
 \end_inset
 
@@ -30400,8 +32489,9 @@ packihx
 \begin_inset Text
 
 \begin_layout Standard
-Intel Hex packer
-\begin_inset LatexCommand \index{packihx (tool)}
+Intel Hex packer 
+\begin_inset LatexCommand index
+name "packihx (tool)"
 
 \end_inset
 
@@ -30440,7 +32530,8 @@ sdcc/bin
 
 \begin_layout Section
 Documentation
-\begin_inset LatexCommand \index{Documentation}
+\begin_inset LatexCommand index
+name "Documentation"
 
 \end_inset
 
@@ -30492,9 +32583,9 @@ SDCC Compiler User Guide
 \begin_inset Text
 
 \begin_layout Standard
-You're reading it right now
+You're reading it right now 
 \emph on
- \InsetSpace ~
+\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 
@@ -30504,7 +32595,8 @@ online at:
 
 \newline
 
-\begin_inset LatexCommand \url{http://sdcc.sourceforge.net/doc/sdccman.pdf}
+\begin_inset LatexCommand url
+target "http://sdcc.sourceforge.net/doc/sdccman.pdf"
 
 \end_inset
 
@@ -30528,9 +32620,9 @@ Changelog of SDCC
 \begin_inset Text
 
 \begin_layout Standard
-sdcc/Changelog
+sdcc/Changelog 
 \emph on
- \InsetSpace ~
+\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 
@@ -30540,7 +32632,8 @@ online at:
 
 \newline
 
-\begin_inset LatexCommand \url{http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/ChangeLog}
+\begin_inset LatexCommand url
+target "http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/ChangeLog"
 
 \end_inset
 
@@ -30556,24 +32649,28 @@ online at:
 
 \begin_layout Standard
 ASXXXX
-\begin_inset LatexCommand \index{asXXXX (as-gbz80, as-hc08, asx8051, as-z80)}
+\begin_inset LatexCommand index
+name "asXXXX (as-gbz80, as-hc08, asx8051, as-z80)"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Assembler documentation}
+\begin_inset LatexCommand index
+name "Assembler documentation"
 
 \end_inset
 
  Assemblers and
 \newline
 ASLINK
-\begin_inset LatexCommand \index{aslink}
+\begin_inset LatexCommand index
+name "aslink"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Linker documentation}
+\begin_inset LatexCommand index
+name "Linker documentation"
 
 \end_inset
 
@@ -30586,7 +32683,7 @@ ASLINK
 \begin_inset Text
 
 \begin_layout Standard
-sdcc/as/doc/asxhtm.html
+sdcc/as/doc/asxhtm.html 
 \emph on
 \InsetSpace ~
 \InsetSpace ~
@@ -30598,7 +32695,8 @@ online at:
 
 \newline
 
-\begin_inset LatexCommand \url{http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/as/doc/asxhtm.html}
+\begin_inset LatexCommand url
+target "http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/as/doc/asxhtm.html"
 
 \end_inset
 
@@ -30614,7 +32712,8 @@ online at:
 
 \begin_layout Standard
 SDCC regression test
-\begin_inset LatexCommand \index{Regression test}
+\begin_inset LatexCommand index
+name "Regression test"
 
 \end_inset
 
@@ -30627,7 +32726,7 @@ SDCC regression test
 \begin_inset Text
 
 \begin_layout Standard
-sdcc/doc/test_suite_spec.pdf
+sdcc/doc/test_suite_spec.pdf 
 \emph on
 \InsetSpace ~
 \InsetSpace ~
@@ -30639,7 +32738,8 @@ online at:
 
 \newline
 
-\begin_inset LatexCommand \url{http://sdcc.sourceforge.net/doc/test_suite_spec.pdf}
+\begin_inset LatexCommand url
+target "http://sdcc.sourceforge.net/doc/test_suite_spec.pdf"
 
 \end_inset
 
@@ -30663,7 +32763,7 @@ Various notes
 \begin_inset Text
 
 \begin_layout Standard
-sdcc/doc/*
+sdcc/doc/* 
 \emph on
 \InsetSpace ~
 \InsetSpace ~
@@ -30675,7 +32775,8 @@ online at:
 
 \newline
 
-\begin_inset LatexCommand \url{http://sdcc.svn.sourceforge.net/viewvc/sdcc/trunk/sdcc/doc/}
+\begin_inset LatexCommand url
+target "http://sdcc.svn.sourceforge.net/viewvc/sdcc/trunk/sdcc/doc/"
 
 \end_inset
 
@@ -30691,7 +32792,8 @@ online at:
 
 \begin_layout Standard
 Notes on debugging with SDCDB
-\begin_inset LatexCommand \index{SDCDB (debugger)}
+\begin_inset LatexCommand index
+name "SDCDB (debugger)"
 
 \end_inset
 
@@ -30704,7 +32806,7 @@ Notes on debugging with SDCDB
 \begin_inset Text
 
 \begin_layout Standard
-sdcc/debugger/README
+sdcc/debugger/README 
 \emph on
 \InsetSpace ~
 \InsetSpace ~
@@ -30716,7 +32818,8 @@ online at
 :
 \newline
 
-\begin_inset LatexCommand \url{http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/debugger/README}
+\begin_inset LatexCommand url
+target "http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/debugger/README"
 
 \end_inset
 
@@ -30732,7 +32835,8 @@ online at
 
 \begin_layout Standard
 uCsim
-\begin_inset LatexCommand \index{uCsim}
+\begin_inset LatexCommand index
+name "uCsim"
 
 \end_inset
 
@@ -30762,7 +32866,7 @@ sdcc/sim/ucsim/doc
 \emph default
 \bar default
 \noun default
-/index.html
+/index.html 
 \emph on
 \InsetSpace ~
 \InsetSpace ~
@@ -30774,7 +32878,8 @@ online at:
 
 \newline
 
-\begin_inset LatexCommand \url{http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/sim/ucsim/doc/index.html}
+\begin_inset LatexCommand url
+target "http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/sim/ucsim/doc/index.html"
 
 \end_inset
 
@@ -30790,7 +32895,8 @@ online at:
 
 \begin_layout Standard
 Temporary notes on the pic16
-\begin_inset LatexCommand \index{PIC16}
+\begin_inset LatexCommand index
+name "PIC16"
 
 \end_inset
 
@@ -30803,7 +32909,7 @@ Temporary notes on the pic16
 \begin_inset Text
 
 \begin_layout Standard
-sdcc/src/pic16/NOTES
+sdcc/src/pic16/NOTES 
 \emph on
 \InsetSpace ~
 \InsetSpace ~
@@ -30815,7 +32921,8 @@ online at:
 
 \emph default
 
-\begin_inset LatexCommand \url{http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/src/pic16/NOTES}
+\begin_inset LatexCommand url
+target "http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/src/pic16/NOTES"
 
 \end_inset
 
@@ -30856,9 +32963,9 @@ cdbfileformat.pd
 \emph default
 \bar default
 \noun default
-f
+f 
 \emph on
- \InsetSpace ~
+\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 
@@ -30868,7 +32975,8 @@ online at:
 
 \newline
 
-\begin_inset LatexCommand \url{http://sdcc.sourceforge.net/doc/cdbfileformat.pdf}
+\begin_inset LatexCommand url
+target "http://sdcc.sourceforge.net/doc/cdbfileformat.pdf"
 
 \end_inset
 
@@ -30889,12 +32997,14 @@ online at:
 
 \begin_layout Section
 Related open source tools
-\begin_inset LatexCommand \label{sec:Related-open-source-tools}
+\begin_inset LatexCommand label
+name "sec:Related-open-source-tools"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Related tools}
+\begin_inset LatexCommand index
+name "Related tools"
 
 \end_inset
 
@@ -30950,7 +33060,8 @@ Where to get
 
 \begin_layout Standard
 gpsim
-\begin_inset LatexCommand \index{gpsim (pic simulator)}
+\begin_inset LatexCommand index
+name "gpsim (pic simulator)"
 
 \end_inset
 
@@ -30972,7 +33083,8 @@ PIC simulator
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://www.dattalo.com/gnupic/gpsim.html}
+\begin_inset LatexCommand url
+target "http://www.dattalo.com/gnupic/gpsim.html"
 
 \end_inset
 
@@ -30988,7 +33100,8 @@ PIC simulator
 
 \begin_layout Standard
 gputils
-\begin_inset LatexCommand \index{gputils (pic tools)}
+\begin_inset LatexCommand index
+name "gputils (pic tools)"
 
 \end_inset
 
@@ -31010,7 +33123,8 @@ GNU PIC utilities
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://sourceforge.net/projects/gputils}
+\begin_inset LatexCommand url
+target "http://sourceforge.net/projects/gputils"
 
 \end_inset
 
@@ -31043,7 +33157,8 @@ PIC programmer
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://freshmeat.net/projects/flp5/}
+\begin_inset LatexCommand url
+target "http://freshmeat.net/projects/flp5/"
 
 \end_inset
 
@@ -31077,7 +33192,8 @@ Tools for Silicon Laboratories JTAG debug adapter, partly based on SDCDB
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://sourceforge.net/projects/ec2drv}
+\begin_inset LatexCommand url
+target "http://sourceforge.net/projects/ec2drv"
 
 \end_inset
 
@@ -31093,7 +33209,8 @@ Tools for Silicon Laboratories JTAG debug adapter, partly based on SDCDB
 
 \begin_layout Standard
 indent
-\begin_inset LatexCommand \index{indent (source formatting tool)}
+\begin_inset LatexCommand index
+name "indent (source formatting tool)"
 
 \end_inset
 
@@ -31115,7 +33232,8 @@ Formats C source - Master of the white spaces
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://directory.fsf.org/GNU/indent.html}
+\begin_inset LatexCommand url
+target "http://directory.fsf.org/GNU/indent.html"
 
 \end_inset
 
@@ -31131,7 +33249,8 @@ Formats C source - Master of the white spaces
 
 \begin_layout Standard
 srecord
-\begin_inset LatexCommand \index{srecord (bin, hex, ... tool)}
+\begin_inset LatexCommand index
+name "srecord (bin, hex, ... tool)"
 
 \end_inset
 
@@ -31153,7 +33272,8 @@ Object file conversion, checksumming, ...
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://sourceforge.net/projects/srecord}
+\begin_inset LatexCommand url
+target "http://sourceforge.net/projects/srecord"
 
 \end_inset
 
@@ -31169,7 +33289,8 @@ Object file conversion, checksumming, ...
 
 \begin_layout Standard
 objdump
-\begin_inset LatexCommand \index{objdump (tool)}
+\begin_inset LatexCommand index
+name "objdump (tool)"
 
 \end_inset
 
@@ -31220,7 +33341,8 @@ cmon51
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://sourceforge.net/projects/cmon51}
+\begin_inset LatexCommand url
+target "http://sourceforge.net/projects/cmon51"
 
 \end_inset
 
@@ -31236,7 +33358,8 @@ cmon51
 
 \begin_layout Standard
 doxygen
-\begin_inset LatexCommand \index{doxygen (source documentation tool)}
+\begin_inset LatexCommand index
+name "doxygen (source documentation tool)"
 
 \end_inset
 
@@ -31258,7 +33381,8 @@ Source code documentation system
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://www.doxygen.org}
+\begin_inset LatexCommand url
+target "http://www.doxygen.org"
 
 \end_inset
 
@@ -31291,7 +33415,8 @@ IDE (has anyone tried integrating SDCC & SDCDB? Unix only)
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://www.kdevelop.org}
+\begin_inset LatexCommand url
+target "http://www.kdevelop.org"
 
 \end_inset
 
@@ -31324,7 +33449,8 @@ paulmon
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://www.pjrc.com/tech/8051/paulmon2.html}
+\begin_inset LatexCommand url
+target "http://www.pjrc.com/tech/8051/paulmon2.html"
 
 \end_inset
 
@@ -31340,7 +33466,8 @@ paulmon
 
 \begin_layout Standard
 splint
-\begin_inset LatexCommand \index{splint (syntax checking tool)}
+\begin_inset LatexCommand index
+name "splint (syntax checking tool)"
 
 \end_inset
 
@@ -31353,8 +33480,9 @@ splint
 \begin_inset Text
 
 \begin_layout Standard
-Statically checks c sources (see
-\begin_inset LatexCommand \ref{lyx:more-pedantic-SPLINT}
+Statically checks c sources (see 
+\begin_inset LatexCommand ref
+reference "lyx:more-pedantic-SPLINT"
 
 \end_inset
 
@@ -31367,7 +33495,8 @@ Statically checks c sources (see
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://www.splint.org}
+\begin_inset LatexCommand url
+target "http://www.splint.org"
 
 \end_inset
 
@@ -31383,7 +33512,8 @@ Statically checks c sources (see
 
 \begin_layout Standard
 ddd
-\begin_inset LatexCommand \index{DDD (debugger)}
+\begin_inset LatexCommand index
+name "DDD (debugger)"
 
 \end_inset
 
@@ -31397,7 +33527,8 @@ ddd
 
 \begin_layout Standard
 Debugger, serves nicely as GUI to SDCDB
-\begin_inset LatexCommand \index{SDCDB (debugger)}
+\begin_inset LatexCommand index
+name "SDCDB (debugger)"
 
 \end_inset
 
@@ -31410,7 +33541,8 @@ Debugger, serves nicely as GUI to SDCDB
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://www.gnu.org/software/ddd/}
+\begin_inset LatexCommand url
+target "http://www.gnu.org/software/ddd/"
 
 \end_inset
 
@@ -31426,12 +33558,14 @@ Debugger, serves nicely as GUI to SDCDB
 
 \begin_layout Standard
 d52
-\begin_inset LatexCommand \index{d52}
+\begin_inset LatexCommand index
+name "d52"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{d52 (disassembler)}
+\begin_inset LatexCommand index
+name "d52 (disassembler)"
 
 \end_inset
 
@@ -31445,7 +33579,8 @@ d52
 
 \begin_layout Standard
 Disassembler, can count instruction cycles
-\begin_inset LatexCommand \index{instruction cycles (count)}
+\begin_inset LatexCommand index
+name "instruction cycles (count)"
 
 \end_inset
 
@@ -31458,7 +33593,8 @@ Disassembler, can count instruction cycles
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://www.8052.com/users/disasm/}
+\begin_inset LatexCommand url
+target "http://www.8052.com/users/disasm/"
 
 \end_inset
 
@@ -31474,7 +33610,8 @@ Disassembler, can count instruction cycles
 
 \begin_layout Standard
 cmake
-\begin_inset LatexCommand \index{cmake}
+\begin_inset LatexCommand index
+name "cmake"
 
 \end_inset
 
@@ -31488,12 +33625,14 @@ cmake
 
 \begin_layout Standard
 Cross platform build system, generates Makefiles
-\begin_inset LatexCommand \index{Makefile}
+\begin_inset LatexCommand index
+name "Makefile"
 
 \end_inset
 
  and project workspaces
-\begin_inset LatexCommand \index{project workspace}
+\begin_inset LatexCommand index
+name "project workspace"
 
 \end_inset
 
@@ -31506,7 +33645,8 @@ Cross platform build system, generates Makefiles
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://www.cmake.org}
+\begin_inset LatexCommand url
+target "http://www.cmake.org"
 
 \end_inset
 
@@ -31514,8 +33654,9 @@ Cross platform build system, generates Makefiles
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-and a dedicated wiki entry:
-\begin_inset LatexCommand \url{http://www.cmake.org/Wiki/CmakeSdcc}
+and a dedicated wiki entry: 
+\begin_inset LatexCommand url
+target "http://www.cmake.org/Wiki/CmakeSdcc"
 
 \end_inset
 
@@ -31605,7 +33746,8 @@ c-refcard.pdf
 
 \begin_layout Standard
 C Reference Card
-\begin_inset LatexCommand \index{C Reference card}
+\begin_inset LatexCommand index
+name "C Reference card"
 
 \end_inset
 
@@ -31618,7 +33760,8 @@ C Reference Card
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://refcards.com/refcards/c/index.html}
+\begin_inset LatexCommand url
+target "http://refcards.com/refcards/c/index.html"
 
 \end_inset
 
@@ -31643,7 +33786,8 @@ c-faq
 
 \begin_layout Standard
 C-FAQ
-\begin_inset LatexCommand \index{C FAQ}
+\begin_inset LatexCommand index
+name "C FAQ"
 
 \end_inset
 
@@ -31656,7 +33800,8 @@ C-FAQ
 \begin_inset Text
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://www.c-faq.com}
+\begin_inset LatexCommand url
+target "http://www.c-faq.com"
 
 \end_inset
 
@@ -31698,7 +33843,8 @@ C-Standard
 \begin_layout Standard
 
 \size footnotesize
-\begin_inset LatexCommand \url{http://www.open-std.org/jtc1/sc22/wg14/www/standards.html#9899}
+\begin_inset LatexCommand url
+target "http://www.open-std.org/jtc1/sc22/wg14/www/standards.html#9899"
 
 \end_inset
 
@@ -31740,7 +33886,8 @@ Extensions for Embedded C
 \begin_layout Standard
 
 \size footnotesize
-\begin_inset LatexCommand \url{http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1021.pdf}
+\begin_inset LatexCommand url
+target "http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1021.pdf"
 
 \end_inset
 
@@ -31824,7 +33971,8 @@ Application notes specifically for SDCC
 \begin_layout Standard
 SDCC makes no claims about the completeness of this list and about up-to-datenes
 s or correctness of the application notes
-\begin_inset LatexCommand \index{Application notes}
+\begin_inset LatexCommand index
+name "Application notes"
 
 \end_inset
 
@@ -31898,7 +34046,8 @@ Maxim / Dallas
 
 \size footnotesize
 Using the SDCC Compiler for the DS80C400
-\begin_inset LatexCommand \index{DS80C400}
+\begin_inset LatexCommand index
+name "DS80C400"
 
 \end_inset
 
@@ -31913,7 +34062,8 @@ Using the SDCC Compiler for the DS80C400
 \begin_layout Standard
 
 \size footnotesize
-\begin_inset LatexCommand \url{http://pdfserv.maxim-ic.com/en/an/AN3346.pdf}
+\begin_inset LatexCommand url
+target "http://pdfserv.maxim-ic.com/en/an/AN3346.pdf"
 
 \end_inset
 
@@ -31942,7 +34092,8 @@ Maxim / Dallas
 
 \size footnotesize
 Using the Free SDCC C Compiler to Develop Firmware for the DS89C420/430/440/450
-\begin_inset LatexCommand \index{DS89C4x0}
+\begin_inset LatexCommand index
+name "DS89C4x0"
 
 \end_inset
 
@@ -31957,7 +34108,8 @@ Using the Free SDCC C Compiler to Develop Firmware for the DS89C420/430/440/450
 \begin_layout Standard
 
 \size footnotesize
-\begin_inset LatexCommand \url{http://pdfserv.maxim-ic.com/en/an/AN3477.pdf}
+\begin_inset LatexCommand url
+target "http://pdfserv.maxim-ic.com/en/an/AN3477.pdf"
 
 \end_inset
 
@@ -31986,7 +34138,8 @@ Silicon Laboratories / Cygnal
 
 \size footnotesize
 Integrating SDCC 8051 Tools Into The Silicon Labs IDE
-\begin_inset LatexCommand \index{IDE}
+\begin_inset LatexCommand index
+name "IDE"
 
 \end_inset
 
@@ -32001,7 +34154,8 @@ Integrating SDCC 8051 Tools Into The Silicon Labs IDE
 \begin_layout Standard
 
 \size footnotesize
-\begin_inset LatexCommand \url{http://www.silabs.com/public/documents/tpub_doc/anote/Microcontrollers/en/an198.pdf}
+\begin_inset LatexCommand url
+target "http://www.silabs.com/public/documents/tpub_doc/anote/Microcontrollers/en/an198.pdf"
 
 \end_inset
 
@@ -32040,7 +34194,8 @@ Interfacing SDCC to Syn and Textpad
 \begin_layout Standard
 
 \size footnotesize
-\begin_inset LatexCommand \url{http://www.ramtron.com/doc/Products/Microcontroller/Support_Tools.asp}
+\begin_inset LatexCommand url
+target "http://www.ramtron.com/doc/Products/Microcontroller/Support_Tools.asp"
 
 \end_inset
 
@@ -32068,7 +34223,7 @@ Ramtron / Goal Semiconductor
 \begin_layout Standard
 
 \size footnotesize
-Installing and Configuring SDCC and Crimson Editor
+Installing and Configuring SDCC and Crimson Editor 
 \end_layout
 
 \end_inset
@@ -32079,7 +34234,8 @@ Installing and Configuring SDCC and Crimson Editor
 \begin_layout Standard
 
 \size footnotesize
-\begin_inset LatexCommand \url{http://www.ramtron.com/doc/Products/Microcontroller/Support_Tools.asp}
+\begin_inset LatexCommand url
+target "http://www.ramtron.com/doc/Products/Microcontroller/Support_Tools.asp"
 
 \end_inset
 
@@ -32118,7 +34274,8 @@ MSC12xx Programming with SDCC
 \begin_layout Standard
 
 \size footnotesize
-\begin_inset LatexCommand \url{http://focus.ti.com/general/docs/lit/getliterature.tsp?literatureNumber=sbaa109&fileType=pdf}
+\begin_inset LatexCommand url
+target "http://focus.ti.com/general/docs/lit/getliterature.tsp?literatureNumber=sbaa109&fileType=pdf"
 
 \end_inset
 
@@ -32141,11 +34298,11 @@ Some Questions
 
 \begin_layout Standard
 Some questions answered, some pointers given - it might be time to in turn
- ask
+ ask 
 \emph on
 you
 \emph default
- some questions:
+ some questions: 
 \end_layout
 
 \begin_layout Itemize
@@ -32188,7 +34345,7 @@ is your project adequately positioned in that magic triangle: fame, fortune,
 
 \begin_layout Standard
 Maybe not all answers to these questions are known and some answers may
- even be
+ even be 
 \emph on
 no
 \emph default
@@ -32208,7 +34365,8 @@ burnout is bad for electronic devices, programmers and motorcycle tyres
 
 \begin_layout Chapter
 Support
-\begin_inset LatexCommand \index{Support}
+\begin_inset LatexCommand index
+name "Support"
 
 \end_inset
 
@@ -32228,32 +34386,38 @@ SDCC has grown to be a large project.
  You can help by reporting the bugs and helping other SDCC users.
  There are lots of ways to contribute, and we encourage you to take part
  in making SDCC a great software package.
 \end_layout
 
 \begin_layout Standard
-The SDCC project is hosted on the SDCC sourceforge site at
-\begin_inset LatexCommand \htmlurl{http://sourceforge.net/projects/sdcc}
+The SDCC project is hosted on the SDCC sourceforge site at 
+\begin_inset LatexCommand htmlurl
+target "http://sourceforge.net/projects/sdcc"
 
 \end_inset
 
 .
  You'll find the complete set of mailing lists
-\begin_inset LatexCommand \index{Mailing list(s)}
+\begin_inset LatexCommand index
+name "Mailing list(s)"
 
 \end_inset
 
 , forums, bug reporting system, patch submission
-\begin_inset LatexCommand \index{Patch submission}
+\begin_inset LatexCommand index
+name "Patch submission"
 
 \end_inset
 
  system, download
-\begin_inset LatexCommand \index{download}
+\begin_inset LatexCommand index
+name "download"
 
 \end_inset
 
  area and Subversion code repository
-\begin_inset LatexCommand \index{Subversion code repository}
+\begin_inset LatexCommand index
+name "Subversion code repository"
 
 \end_inset
 
@@ -32262,12 +34426,14 @@ The SDCC project is hosted on the SDCC sourceforge site at
 
 \begin_layout Section
 Reporting Bugs
-\begin_inset LatexCommand \index{Bug reporting}
+\begin_inset LatexCommand index
+name "Bug reporting"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Reporting bugs}
+\begin_inset LatexCommand index
+name "Reporting bugs"
 
 \end_inset
 
@@ -32302,7 +34468,8 @@ status collapsed
 \end_inset
 
 -dumpall
-\begin_inset LatexCommand \index{-\/-dumpall}
+\begin_inset LatexCommand index
+name "-\\/-dumpall"
 
 \end_inset
 
@@ -32312,10 +34479,12 @@ status collapsed
 
 \begin_layout Enumerate
 Attach the code you are compiling with SDCC.
 \end_layout
 
 \begin_layout Enumerate
 Specify the exact command you use to run SDCC, or attach your Makefile.
 \end_layout
 
 \begin_layout Enumerate
@@ -32326,10 +34495,12 @@ sdcc -v
 \family default
 \series default
 "), your platform, and operating system.
 \end_layout
 
 \begin_layout Enumerate
 Provide an exact copy of any error message or incorrect output.
 \end_layout
 
 \begin_layout Enumerate
@@ -32343,20 +34514,22 @@ Please attempt to include these 5 important parts, as applicable, in all
  chance that SDCC users and developers will be able to help you.
  Some SDCC developers are frustrated by bug reports without code provided
  that they can use to reproduce and ultimately fix the problem, so please
- be sure to provide sample code if you are reporting a bug!
+ be sure to provide sample code if you are reporting a bug! 
 \end_layout
 
 \begin_layout Standard
 Please have a short check that you are using a recent version of SDCC and
  the bug is not yet known.
- This is the link for reporting bugs:
-\begin_inset LatexCommand \htmlurl{http://sourceforge.net/tracker/?group_id=599&atid=100599}
+ This is the link for reporting bugs: 
+\begin_inset LatexCommand htmlurl
+target "http://sourceforge.net/tracker/?group_id=599&atid=100599"
 
 \end_inset
 
 .
  With SDCC on average having more than 200 downloads
-\begin_inset LatexCommand \index{download}
+\begin_inset LatexCommand index
+name "download"
 
 \end_inset
 
@@ -32374,7 +34547,7 @@ status open
 
  there must be some users.
  So it's not exactly easy to find a new bug.
- If you find one we need it:
+ If you find one we need it: 
 \emph on
 reporting bugs is good
 \emph default
@@ -32383,17 +34556,20 @@ reporting bugs is good
 
 \begin_layout Section
 Requesting Features
-\begin_inset LatexCommand \label{sub:Requesting-Features}
+\begin_inset LatexCommand label
+name "sub:Requesting-Features"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Feature request}
+\begin_inset LatexCommand index
+name "Feature request"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Requesting features}
+\begin_inset LatexCommand index
+name "Requesting features"
 
 \end_inset
 
@@ -32403,8 +34579,9 @@ Requesting Features
 \begin_layout Standard
 Like bug reports feature requests are forwarded to the developer mailing
  list.
- This is the link for requesting features:
-\begin_inset LatexCommand \htmlurl{http://sourceforge.net/tracker/?group_id=599&atid=350599}
+ This is the link for requesting features: 
+\begin_inset LatexCommand htmlurl
+target "http://sourceforge.net/tracker/?group_id=599&atid=350599"
 
 \end_inset
 
@@ -32419,12 +34596,14 @@ Submitting patches
 Like bug reports contributed patches are forwarded to the developer mailing
  list.
  This is the link for submitting patches
-\begin_inset LatexCommand \index{Patch submission}
+\begin_inset LatexCommand index
+name "Patch submission"
 
 \end_inset
 
-:
-\begin_inset LatexCommand \url{http://sourceforge.net/tracker/?group_id=599&atid=300599}
+: 
+\begin_inset LatexCommand url
+target "http://sourceforge.net/tracker/?group_id=599&atid=300599"
 
 \end_inset
 
@@ -32432,13 +34611,13 @@ Like bug reports contributed patches are forwarded to the developer mailing
 \end_layout
 
 \begin_layout Standard
-You need to specify some parameters to the
+You need to specify some parameters to the 
 \family typewriter
 diff
 \family default
  command for the patches to be useful.
  If you modified more than one file a patch created f.e.
- with
+ with 
 \family sans
 \series bold
 
@@ -32452,7 +34631,7 @@ diff -Naur unmodified_directory modified_directory >my_changes.patch
 
 \family default
 \series default
- will be fine, otherwise
+ will be fine, otherwise 
 \family sans
 \series bold
 
@@ -32466,7 +34645,7 @@ diff -u sourcefile.c.orig sourcefile.c >my_changes.patch
 
 \family default
 \series default
-will do.
+ will do.
 \end_layout
 
 \begin_layout Section
@@ -32474,8 +34653,10 @@ Getting Help
 \end_layout
 
 \begin_layout Standard
-These links should take you directly to the
-\begin_inset LatexCommand \url[Mailing lists]{http://sourceforge.net/mail/?group_id=599}
+These links should take you directly to the 
+\begin_inset LatexCommand url
+name "Mailing lists"
+target "http://sourceforge.net/mail/?group_id=599"
 
 \end_inset
 
@@ -32490,13 +34671,16 @@ Traffic on sdcc-devel and sdcc-user is about 100 mails/month each not counting
 
 \end_inset
 
- and the
-\begin_inset LatexCommand \url[Forums]{http://sourceforge.net/forum/?group_id=599}
+ and the 
+\begin_inset LatexCommand url
+name "Forums"
+target "http://sourceforge.net/forum/?group_id=599"
 
 \end_inset
 
 , lists
-\begin_inset LatexCommand \index{Mailing list(s)}
+\begin_inset LatexCommand index
+name "Mailing list(s)"
 
 \end_inset
 
@@ -32513,19 +34697,22 @@ ChangeLog
 
 \begin_layout Standard
 You can follow the status of the Subversion version
-\begin_inset LatexCommand \index{version}
+\begin_inset LatexCommand index
+name "version"
 
 \end_inset
 
  of SDCC by watching the Changelog
-\begin_inset LatexCommand \index{Changelog}
+\begin_inset LatexCommand index
+name "Changelog"
 
 \end_inset
 
  in the Subversion repository
 \size footnotesize
-
-\begin_inset LatexCommand \htmlurl{http://sdcc.svn.sourceforge.net/viewcvs.cgi/*checkout*/sdcc/trunk/sdcc/ChangeLog}
+\begin_inset LatexCommand htmlurl
+target "http://sdcc.svn.sourceforge.net/viewcvs.cgi/*checkout*/sdcc/trunk/sdcc/ChangeLog"
 
 \end_inset
 
@@ -32537,7 +34724,7 @@ Subversion Source Code Repository
 \end_layout
 
 \begin_layout Standard
-The output of
+The output of 
 \family sans
 \series bold
 sdcc -
@@ -32562,13 +34749,16 @@ status open
 \series default
  or the filenames of the snapshot versions of SDCC include date and its
  Subversion
-\begin_inset LatexCommand \index{Subversion code repository}
+\begin_inset LatexCommand index
+name "Subversion code repository"
 
 \end_inset
 
  number.
  Subversion allows to download the source of recent or previous versions
-\begin_inset LatexCommand \url{http://sourceforge.net/svn/?group_id=599}
+\begin_inset LatexCommand url
+target "http://sourceforge.net/svn/?group_id=599"
 
 \end_inset
 
@@ -32577,7 +34767,8 @@ status open
  there.
  SDCC versions starting from 1999 up to now are available (currently the
  versions prior to the conversion from cvs
-\begin_inset LatexCommand \index{cvs|see{Subversion}}
+\begin_inset LatexCommand index
+name "cvs|see{Subversion}"
 
 \end_inset
 
@@ -32587,7 +34778,8 @@ status open
 
 \begin_layout Section
 Release policy
-\begin_inset LatexCommand \index{Release policy}
+\begin_inset LatexCommand index
+name "Release policy"
 
 \end_inset
 
@@ -32601,30 +34793,37 @@ Historically there often were long delays between official releases and
  but as this was fixed a while ago, the current problem is that another
  excuse has to be found.
  Kidding aside, we have to get better there! On the other hand there are
- daily snapshots available at
-\begin_inset LatexCommand \htmlurl[snap]{http://sdcc.sourceforge.net/snap.php}
+ daily snapshots available at 
+\begin_inset LatexCommand htmlurl
+name "snap"
+target "http://sdcc.sourceforge.net/snap.php"
 
 \end_inset
 
 , and you can always build the very last version (hopefully with many bugs
- fixed, and features added) from the source code available at
-\begin_inset LatexCommand \htmlurl[Source]{http://sdcc.sourceforge.net/snap.php#Source}
+ fixed, and features added) from the source code available at 
+\begin_inset LatexCommand htmlurl
+name "Source"
+target "http://sdcc.sourceforge.net/snap.php#Source"
 
 \end_inset
 
 .
  The SDCC Wiki
-\begin_inset LatexCommand \index{wiki}
+\begin_inset LatexCommand index
+name "wiki"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{SDCC Wiki}
+\begin_inset LatexCommand index
+name "SDCC Wiki"
 
 \end_inset
 
- at
-\begin_inset LatexCommand \url{http://sdcc.wiki.sourceforge.net/}
+ at 
+\begin_inset LatexCommand url
+target "http://sdcc.wiki.sourceforge.net/"
 
 \end_inset
 
@@ -32633,7 +34832,8 @@ Historically there often were long delays between official releases and
 
 \begin_layout Section
 Examples
-\begin_inset LatexCommand \index{Examples}
+\begin_inset LatexCommand index
+name "Examples"
 
 \end_inset
 
@@ -32641,21 +34841,24 @@ Examples
 \end_layout
 
 \begin_layout Standard
-You'll find some small examples in the directory
+You'll find some small examples in the directory 
 \emph on
 sdcc/device/examples/.
+
 \emph default
-More examples and libraries are available at
+ More examples and libraries are available at 
 \emph on
- The SDCC Open Knowledge Resource
-\begin_inset LatexCommand \url{http://sdccokr.dl9sec.de/}
+The SDCC Open Knowledge Resource 
+\begin_inset LatexCommand url
+target "http://sdccokr.dl9sec.de/"
 
 \end_inset
 
 
 \emph default
-web site or at
-\begin_inset LatexCommand \url{http://www.pjrc.com/tech/8051/}
+ web site or at 
+\begin_inset LatexCommand url
+target "http://www.pjrc.com/tech/8051/"
 
 \end_inset
 
@@ -32687,12 +34890,14 @@ Maybe we should include some links to real world applications.
 
 \begin_layout Section
 Quality control
-\begin_inset LatexCommand \label{sec:Quality-control}
+\begin_inset LatexCommand label
+name "sec:Quality-control"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Quality control}
+\begin_inset LatexCommand index
+name "Quality control"
 
 \end_inset
 
@@ -32701,12 +34906,13 @@ Quality control
 
 \begin_layout Standard
 The compiler is passed through snaphot build compile and build checks.
- The so called
+ The so called 
 \shape italic
 regression tests
 \shape default
 
-\begin_inset LatexCommand \index{Regression test}
+\begin_inset LatexCommand index
+name "Regression test"
 
 \end_inset
 
@@ -32717,8 +34923,9 @@ regression tests
  The regression test suite comprises more than 100 files which expand to
  more than 500 test cases which include more than 4500 tests.
  The results of these tests are published daily on SDCC's snapshot page
- (click on the red or green symbols on the right side of
-\begin_inset LatexCommand \url{http://sdcc.sourceforge.net/snap.php}
+ (click on the red or green symbols on the right side of 
+\begin_inset LatexCommand url
+target "http://sdcc.sourceforge.net/snap.php"
 
 \end_inset
 
@@ -32726,17 +34933,19 @@ regression tests
 \end_layout
 
 \begin_layout Standard
-There is a separate document
+There is a separate document 
 \shape italic
-test_suite.pdf
-\begin_inset LatexCommand \index{Test suite}
+test_suite.pdf 
+\begin_inset LatexCommand index
+name "Test suite"
 
 \end_inset
 
 
 \shape default
-
-\begin_inset LatexCommand \url{http://sdcc.sourceforge.net/doc/test_suite_spec.pdf}
+\begin_inset LatexCommand url
+target "http://sdcc.sourceforge.net/doc/test_suite_spec.pdf"
 
 \end_inset
 
@@ -32744,16 +34953,17 @@ test_suite.pdf
 \end_layout
 
 \begin_layout Standard
-You'll find the test code in the directory
+You'll find the test code in the directory 
 \shape italic
 sdcc/support/regression
 \shape default
 .
- You can run these tests manually by running
+ You can run these tests manually by running 
 \family sans
 make
 \family default
  in this directory (or f.e.
 \family sans
 \series bold
 
@@ -32769,12 +34979,14 @@ make test-mcs51
 \series default
  if you don't want to run the complete tests).
  The test code might also be interesting if you want to look for examples
-\begin_inset LatexCommand \index{Examples}
+\begin_inset LatexCommand index
+name "Examples"
 
 \end_inset
 
  checking corner cases of SDCC or if you plan to submit patches
-\begin_inset LatexCommand \index{Patch submission}
+\begin_inset LatexCommand index
+name "Patch submission"
 
 \end_inset
 
@@ -32782,12 +34994,13 @@ make test-mcs51
 \end_layout
 
 \begin_layout Standard
-The PIC14 port uses a different set of regression tests
-\begin_inset LatexCommand \index{Regression test (PIC14)}
+The PIC14 port uses a different set of regression tests 
+\begin_inset LatexCommand index
+name "Regression test (PIC14)"
 
 \end_inset
 
-, you'll find them in the directory
+, you'll find them in the directory 
 \shape italic
 sdcc/src/regression
 \shape default
@@ -32799,7 +35012,7 @@ Use of SDCC in Education
 \end_layout
 
 \begin_layout Standard
-In short:
+In short: 
 \emph on
 highly
 \emph default
@@ -32824,7 +35037,7 @@ only
 \end_layout
 
 \begin_layout Enumerate
-give students a chance to understand the
+give students a chance to understand the 
 \emph on
 complete
 \emph default
@@ -32835,17 +35048,23 @@ complete
 have a curriculum that can be extended for years.
  Then you could use an fpga board as target and your curriculum will seamlessly
  extend from logic synthesis (
-\begin_inset LatexCommand \url[http://www.opencores.org]{opencores.org}
+\begin_inset LatexCommand url
+name "http://www.opencores.org"
+target "opencores.org"
 
 \end_inset
 
-,
-\begin_inset LatexCommand \url[Oregano]{http://www.oregano.at/ip/ip01.htm}
+, 
+\begin_inset LatexCommand url
+name "Oregano"
+target "http://www.oregano.at/ip/ip01.htm"
 
 \end_inset
 
 ), over assembly programming, to C to FPGA compilers (
-\begin_inset LatexCommand \url[FPGAC]{http://sf.net/projects/fpgac}
+\begin_inset LatexCommand url
+name "FPGAC"
+target "http://sf.net/projects/fpgac"
 
 \end_inset
 
@@ -32855,27 +35074,34 @@ have a curriculum that can be extended for years.
 \begin_layout Enumerate
 be able to insert excursions about skills like using a revision control
  system, submitting/applying patches, using a type-setting (as opposed to
- word-processing) engine LyX/LaTeX, using
-\begin_inset LatexCommand \url[SourceForge]{http://www.sf.net}
+ word-processing) engine LyX/LaTeX, using 
+\begin_inset LatexCommand url
+name "SourceForge"
+target "http://www.sf.net"
 
 \end_inset
 
-, following some
-\begin_inset LatexCommand \url[netiquette]{http://en.wikipedia.org/wiki/Netiquette}
+, following some 
+\begin_inset LatexCommand url
+name "netiquette"
+target "http://en.wikipedia.org/wiki/Netiquette"
 
 \end_inset
 
 , understanding BSD/LGPL/GPL/Proprietary licensing, growth models of Open
  Source Software, CPU simulation, compiler regression tests
-\begin_inset LatexCommand \index{Regression test}
+\begin_inset LatexCommand index
+name "Regression test"
 
 \end_inset
 
 .
 \newline
 And if there should be a shortage of ideas then you can always point students
- to the ever-growing feature request list
-\begin_inset LatexCommand \htmlurl{http://sourceforge.net/tracker/?group_id=599&atid=350599}
+ to the ever-growing feature request list 
+\begin_inset LatexCommand htmlurl
+target "http://sourceforge.net/tracker/?group_id=599&atid=350599"
 
 \end_inset
 
@@ -32884,13 +35110,15 @@ And if there should be a shortage of ideas then you can always point students
 
 \begin_layout Enumerate
 not tie students to a specific host platform and instead allow them to use
- a host platform of
+ a host platform of 
 \emph on
 their
 \emph default
  choice (among them Alpha, i386, i386_64, Mac OS X, Mips, Sparc, Windows
- and eventually
-\begin_inset LatexCommand \url[OLPC]{http://www.laptop.org}
+ and eventually 
+\begin_inset LatexCommand url
+name "OLPC"
+target "http://www.laptop.org"
 
 \end_inset
 
@@ -32920,13 +35148,13 @@ make your students aware about the pros and cons of open source software
 \end_layout
 
 \begin_layout Enumerate
-give back to the public as you are probably at least partially publically
+give back to the public as you are probably at least partially publicly
  funded
 \end_layout
 
 \begin_layout Enumerate
-give students a chance to publically prove their skills and to possibly
see a world wide impact
+give students a chance to publicly prove their skills and to possibly see
+ a world wide impact
 \end_layout
 
 \begin_layout Standard
@@ -32942,7 +35170,8 @@ SDCC Technical Data
 
 \begin_layout Section
 Optimizations
-\begin_inset LatexCommand \index{Optimizations}
+\begin_inset LatexCommand index
+name "Optimizations"
 
 \end_inset
 
@@ -32952,11 +35181,13 @@ Optimizations
 \begin_layout Standard
 SDCC performs a host of standard optimizations in addition to some MCU specific
  optimizations.
 \end_layout
 
 \begin_layout Subsection
 Sub-expression Elimination
-\begin_inset LatexCommand \index{Subexpression elimination}
+\begin_inset LatexCommand index
+name "Subexpression elimination"
 
 \end_inset
 
@@ -32964,29 +35195,29 @@ Sub-expression Elimination
 \end_layout
 
 \begin_layout Standard
-The compiler does local and
+The compiler does local and 
 \emph on
 g
 \emph default
-lobal
+lobal 
 \emph on
 c
 \emph default
-ommon
+ommon 
 \emph on
 s
 \emph default
-ubexpression
+ubexpression 
 \emph on
 e
 \emph default
-limination, e.g.:
+limination, e.g.: 
 \end_layout
 
 \begin_layout Verse
 
 \family typewriter
-i = x + y + 1;
+i = x + y + 1; 
 \newline
 j = x + y;
 \end_layout
@@ -32998,9 +35229,9 @@ will be translated to
 \begin_layout Verse
 
 \family typewriter
-iTemp = x + y;
+iTemp = x + y; 
 \newline
-i = iTemp + 1;
+i = iTemp + 1; 
 \newline
 j = iTemp;
 \end_layout
@@ -33012,7 +35243,7 @@ Some subexpressions are not as obvious as the above example, e.g.:
 \begin_layout Verse
 
 \family typewriter
-a->b[i].c = 10;
+a->b[i].c = 10; 
 \newline
 a->b[i].d = 11;
 \end_layout
@@ -33025,9 +35256,9 @@ In this case the address arithmetic a->b[i] will be computed only once;
 \begin_layout Verse
 
 \family typewriter
-iTemp = a->b[i];
+iTemp = a->b[i]; 
 \newline
-iTemp.c = 10;
+iTemp.c = 10; 
 \newline
 iTemp.d = 11;
 \end_layout
@@ -33038,7 +35269,8 @@ The compiler will try to keep these temporary variables in registers.
 
 \begin_layout Subsection
 Dead-Code Elimination
-\begin_inset LatexCommand \index{Dead-code elimination}
+\begin_inset LatexCommand index
+name "Dead-code elimination"
 
 \end_inset
 
@@ -33052,11 +35284,11 @@ int global;
 \newline
 
 \newline
-void f () {
+void f () { 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-int i;
+int i; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -33065,26 +35297,26 @@ i = 1; \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-/* dead store */
+/* dead store */ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 global = 1;\InsetSpace ~
-/* dead store
- */
+/* dead
+ store */ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-global = 2;
+global = 2; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-return;
+return; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 global = 3;\InsetSpace ~
-/* unreachable */
+/* unreachable */ 
 \newline
 }
 \end_layout
@@ -33104,14 +35336,15 @@ void f () {
 \newline
 \InsetSpace ~
 \InsetSpace ~
-global = 2;
+global = 2; 
 \newline
 }
 \end_layout
 
 \begin_layout Subsection
 Copy-Propagation
-\begin_inset LatexCommand \index{Copy propagation}
+\begin_inset LatexCommand index
+name "Copy propagation"
 
 \end_inset
 
@@ -33121,51 +35354,51 @@ Copy-Propagation
 \begin_layout Verse
 
 \family typewriter
-int f() {
+int f() { 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-int i, j;
+int i, j; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-i = 10;
+i = 10; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-j = i;
+j = i; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-return j;
+return j; 
 \newline
 }
 \end_layout
 
 \begin_layout Standard
-will be changed to
+will be changed to 
 \end_layout
 
 \begin_layout Verse
 
 \family typewriter
-int f() {
+int f() { 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-int i, j;
+int i, j; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-i = 10;
+i = 10; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-j = 10;
+j = 10; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-return 10;
+return 10; 
 \newline
 }
 \end_layout
@@ -33177,12 +35410,14 @@ Note: the dead stores created by this copy propagation will be eliminated
 
 \begin_layout Subsection
 Loop Optimizations
-\begin_inset LatexCommand \index{Loop optimization}
+\begin_inset LatexCommand index
+name "Loop optimization"
 
 \end_inset
 
 
-\begin_inset LatexCommand \label{sub:Loop-Optimizations}
+\begin_inset LatexCommand label
+name "sub:Loop-Optimizations"
 
 \end_inset
 
@@ -33190,26 +35425,28 @@ Loop Optimizations
 \end_layout
 
 \begin_layout Standard
-Two types of loop optimizations are done by SDCC
+Two types of loop optimizations are done by SDCC 
 \emph on
 loop invariant
 \emph default
- lifting and
+ lifting and 
 \emph on
- strength reduction
+strength reduction
 \emph default
  of loop induction variables.
  In addition to the strength reduction the optimizer marks the induction
  variables and the register allocator tries to keep the induction variables
  in registers for the duration of the loop.
  Because of this preference of the register allocator
-\begin_inset LatexCommand \index{Register allocation}
+\begin_inset LatexCommand index
+name "Register allocation"
 
 \end_inset
 
 , loop induction optimization causes an increase in register pressure, which
  may cause unwanted spilling of other temporary variables into the stack
-\begin_inset LatexCommand \index{stack}
+\begin_inset LatexCommand index
+name "stack"
 
 \end_inset
 
@@ -33232,7 +35469,8 @@ status collapsed
 
 -noinduction option) or for a given function only using #pragma\InsetSpace ~
 noinduction
-\begin_inset LatexCommand \index{\#pragma noinduction}
+\begin_inset LatexCommand index
+name "\\#pragma noinduction"
 
 \end_inset
 
@@ -33246,7 +35484,7 @@ Loop Invariant:
 \begin_layout Verse
 
 \family typewriter
-for (i = 0 ; i < 100 ; i ++)
+for (i = 0 ; i < 100 ; i ++) 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -33262,9 +35500,9 @@ changed to
 \begin_layout Verse
 
 \family typewriter
-itemp = k + l;
+itemp = k + l; 
 \newline
-for (i = 0; i < 100; i++)
+for (i = 0; i < 100; i++) 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -33280,7 +35518,8 @@ As mentioned previously some loop invariants are not as apparent, all static
 
 \newline
 Strength Reduction
-\begin_inset LatexCommand \index{Strength reduction}
+\begin_inset LatexCommand index
+name "Strength reduction"
 
 \end_inset
 
@@ -33306,37 +35545,38 @@ changed to
 \begin_layout Verse
 
 \family typewriter
-itemp1 = 0;
+itemp1 = 0; 
 \newline
-itemp2 = 0;
+itemp2 = 0; 
 \newline
-for (i=0;i< 100;i++) {
+for (i=0;i< 100;i++) { 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-ar[itemp1] = itemp2;
+ar[itemp1] = itemp2; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-itemp1 +=
- 5;
+itemp1
+ += 5; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-itemp2 += 3;
+itemp2 += 3; 
 \newline
 }
 \end_layout
 
 \begin_layout Standard
 The more expensive multiplication
-\begin_inset LatexCommand \index{Multiplication}
+\begin_inset LatexCommand index
+name "Multiplication"
 
 \end_inset
 
@@ -33345,7 +35585,8 @@ The more expensive multiplication
 
 \begin_layout Subsection
 Loop Reversing
-\begin_inset LatexCommand \index{Loop reversing}
+\begin_inset LatexCommand index
+name "Loop reversing"
 
 \end_inset
 
@@ -33355,7 +35596,7 @@ Loop Reversing
 \begin_layout Standard
 This optimization is done to reduce the overhead of checking loop boundaries
  for every iteration.
- Some simple loops can be reversed and implemented using a
+ Some simple loops can be reversed and implemented using a 
 \begin_inset Quotes eld
 \end_inset
 
@@ -33370,7 +35611,7 @@ decrement and jump if not zero
 \end_layout
 
 \begin_layout Itemize
-The 'for' loop is of the form
+The 'for' loop is of the form 
 \newline
 
 \newline
@@ -33387,7 +35628,7 @@ for(<symbol> = <expression>; <sym> [< | <=] <expression>; [<sym>++ | <sym>
 \end_layout
 
 \begin_layout Itemize
-The <for body> does not contain
+The <for body> does not contain 
 \begin_inset Quotes eld
 \end_inset
 
@@ -33443,7 +35684,7 @@ i = j + 0;\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
- i = j;
+ i = j; 
 \newline
 i /= 2;\InsetSpace ~
 \InsetSpace ~
@@ -33456,10 +35697,10 @@ i /= 2;\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
- i >>= 1;
+ i >>= 1; 
 \newline
-i =
- j - j;\InsetSpace ~
+i
j - j;\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -33467,7 +35708,7 @@ i =
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
- i = 0;
+ i = 0; 
 \newline
 i = j / 1;\InsetSpace ~
 \InsetSpace ~
@@ -33482,7 +35723,8 @@ i = j / 1;\InsetSpace ~
 
 \begin_layout Standard
 Note the subexpressions
-\begin_inset LatexCommand \index{Subexpression}
+\begin_inset LatexCommand index
+name "Subexpression"
 
 \end_inset
 
@@ -33492,12 +35734,14 @@ Note the subexpressions
 
 \begin_layout Subsection
 'switch' Statements
-\begin_inset LatexCommand \label{sub:'switch'-Statements}
+\begin_inset LatexCommand label
+name "sub:'switch'-Statements"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{switch statement}
+\begin_inset LatexCommand index
+name "switch statement"
 
 \end_inset
 
@@ -33506,13 +35750,14 @@ Note the subexpressions
 
 \begin_layout Standard
 SDCC can optimize switch statements to jump tables
-\begin_inset LatexCommand \index{jump tables}
+\begin_inset LatexCommand index
+name "jump tables"
 
 \end_inset
 
 .
  It makes the decision based on an estimate of the generated code size.
- SDCC is quite liberal in the requirements for jump table generation:
+ SDCC is quite liberal in the requirements for jump table generation: 
 \end_layout
 
 \begin_layout Itemize
@@ -33551,7 +35796,7 @@ switch(i) {\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-switch (i) {
+switch (i) { 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -33583,6 +35828,7 @@ case 4: ...\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 case 0: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -33614,6 +35860,7 @@ case 5: ...\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 case 1: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -33675,8 +35922,8 @@ case 6: ...\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-case
- 3: ...
+case 3: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -33708,6 +35955,7 @@ case 7: ...\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 case 4: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -33739,6 +35987,7 @@ case 8: ...\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 case 5: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -33770,6 +36019,7 @@ case 9: ...\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 case 6: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -33800,12 +36050,12 @@ case 10: ...\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 case 7: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-case
- 11: ...\InsetSpace ~
+case 11: ...\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -33831,6 +36081,7 @@ case
 \InsetSpace ~
 \InsetSpace ~
 case 8: ...
 \newline
 }\InsetSpace ~
 \InsetSpace ~
@@ -33887,6 +36138,7 @@ e.
 If the case labels are not in numerical sequence ('gaps' between cases)
  SDCC checks whether a jump table with additionally inserted dummy cases
  is still attractive.
 \end_layout
 
 \begin_layout Itemize
@@ -33905,64 +36157,77 @@ Switch statements which have large gaps in the numeric sequence or those
 \begin_layout Verse
 
 \family typewriter
-switch (i) {
+switch (i) { 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 1: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 2: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 3: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 4: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 5: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 6: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 7: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
-case
- 101: ...
+case 101: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 102: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 103: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 104: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 105: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 106: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 107: ...
 \newline
 }
 \end_layout
@@ -33974,35 +36239,42 @@ If the above switch statement is broken down into two switch statements
 \begin_layout Verse
 
 \family typewriter
-switch (i) {
+switch (i) { 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 1: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 2: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 3: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 4: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 5: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 6: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 7: ...
 \newline
 }
 \end_layout
@@ -34014,36 +36286,42 @@ and
 \begin_layout Verse
 
 \family typewriter
-switch (i) {
+switch (i) { 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 101: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 102: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 103: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 104: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 105: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
-case 106:
- ...
+case 106: ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 case 107: ...
 \newline
 }
 \end_layout
@@ -34072,26 +36350,28 @@ There might be reasons which SDCC cannot know about to either favour or
 
 \begin_layout Standard
 The pragma nojtbound
-\begin_inset LatexCommand \index{\#pragma nojtbound}
+\begin_inset LatexCommand index
+name "\\#pragma nojtbound"
 
 \end_inset
 
- can be used to turn off checking the
+ can be used to turn off checking the 
 \emph on
 j
 \emph default
-ump
+ump 
 \emph on
 t
 \emph default
-able
+able 
 \emph on
 bound
 \emph default
 aries.
  It has no effect if a default label is supplied.
  Use of this pragma is dangerous: if the switch
-\begin_inset LatexCommand \index{switch statement}
+\begin_inset LatexCommand index
+name "switch statement"
 
 \end_inset
 
@@ -34101,7 +36381,8 @@ aries.
 
 \begin_layout Subsection
 Bit-shifting Operations
-\begin_inset LatexCommand \index{Bit shifting}
+\begin_inset LatexCommand index
+name "Bit shifting"
 
 \end_inset
 
@@ -34121,8 +36402,9 @@ g.
 unsigned char i;
 \newline
 ...
 \newline
-i >>= 4;
+i >>= 4; 
 \newline
 ...
 \end_layout
@@ -34135,12 +36417,12 @@ generates the following code:
 
 \family typewriter
 mov\InsetSpace ~
- a,_i
+ a,_i 
 \newline
-swap a
+swap a 
 \newline
 anl\InsetSpace ~
- a,#0x0f
+ a,#0x0f 
 \newline
 mov\InsetSpace ~
  _i,a
@@ -34154,11 +36436,12 @@ In general SDCC will never setup a loop if the shift count is known.
 \begin_layout Verse
 
 \family typewriter
-unsigned int i;
+unsigned int i; 
 \newline
 ...
 \newline
-i >>= 9;
+i >>= 9; 
 \newline
 ...
 \end_layout
@@ -34172,19 +36455,19 @@ will generate:
 \family typewriter
 mov\InsetSpace ~
 \InsetSpace ~
-a,(_i + 1)
+a,(_i + 1) 
 \newline
 mov\InsetSpace ~
 \InsetSpace ~
-(_i + 1),#0x00
+(_i + 1),#0x00 
 \newline
 clr\InsetSpace ~
 \InsetSpace ~
-c
+c 
 \newline
 rrc\InsetSpace ~
 \InsetSpace ~
-a
+a 
 \newline
 mov\InsetSpace ~
 \InsetSpace ~
@@ -34193,7 +36476,8 @@ _i,a
 
 \begin_layout Subsection
 Bit-rotation
-\begin_inset LatexCommand \index{Bit rotation}
+\begin_inset LatexCommand index
+name "Bit rotation"
 
 \end_inset
 
@@ -34202,7 +36486,8 @@ Bit-rotation
 
 \begin_layout Standard
 A special case of the bit-shift operation is bit rotation
-\begin_inset LatexCommand \index{rotating bits}
+\begin_inset LatexCommand index
+name "rotating bits"
 
 \end_inset
 
@@ -34228,13 +36513,14 @@ char i;\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-/* unsigned is needed for rotation */
+/* unsigned is needed for rotation */ 
 \newline
 ...
 \newline
 i = ((i << 1) | (i >> 7));
 \family default
-
 \newline
 
 \family typewriter
@@ -34250,12 +36536,12 @@ will generate the following code:
 \family typewriter
 mov\InsetSpace ~
 \InsetSpace ~
-a,_i
+a,_i 
 \newline
 rl\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-a
+a 
 \newline
 mov\InsetSpace ~
 \InsetSpace ~
@@ -34264,7 +36550,7 @@ _i,a
 
 \begin_layout Standard
 SDCC uses pattern matching on the parse tree to determine this operation.Variatio
-ns of this case will also be recognized as bit-rotation, i.e.:
+ns of this case will also be recognized as bit-rotation, i.e.: 
 \end_layout
 
 \begin_layout Verse
@@ -34279,7 +36565,8 @@ Nibble and Byte Swapping
 
 \begin_layout Standard
 Other special cases of the bit-shift operations are nibble or byte swapping
-\begin_inset LatexCommand \index{swapping nibbles/bytes}
+\begin_inset LatexCommand index
+name "swapping nibbles/bytes"
 
 \end_inset
 
@@ -34294,7 +36581,7 @@ unsigned
 \series default
 \InsetSpace ~
 \InsetSpace ~
-char i;
+char i; 
 \newline
 
 \series bold
@@ -34302,32 +36589,35 @@ unsigned
 \series default
 \InsetSpace ~
 \InsetSpace ~
-int j;
+int j; 
 \newline
 ...
 \newline
 i = ((i << 4) | (i >> 4));
 \family default
-
 \newline
 
 \family typewriter
-j = ((j << 8) | (j >> 8));
+j = ((j << 8) | (j >> 8)); 
 \end_layout
 
 \begin_layout Standard
 and generates a swap instruction for the nibble swapping
-\begin_inset LatexCommand \index{Nibble swapping}
+\begin_inset LatexCommand index
+name "Nibble swapping"
 
 \end_inset
 
  or move instructions for the byte swapping
-\begin_inset LatexCommand \index{Byte swapping}
+\begin_inset LatexCommand index
+name "Byte swapping"
 
 \end_inset
 
 .
- The
+ The 
 \begin_inset Quotes sld
 \end_inset
 
 \end_inset
 
  example can be used to convert from little to big-endian or vice versa.
- If you want to change the endianness of a
+ If you want to change the endianness of a 
 \emph on
 signed
 \emph default
- integer you have to cast to
+ integer you have to cast to 
 \family typewriter
 (unsigned int)
 \family default
@@ -34355,27 +36645,30 @@ status open
 \begin_layout Standard
 Usually 8-bit processors don't care much about endianness.
  This is not the case for the standard 8051 which only has an instruction
- to increment its
+ to increment its 
 \emph on
 dptr
 \emph default
 
-\begin_inset LatexCommand \index{DPTR}
+\begin_inset LatexCommand index
+name "DPTR"
 
 \end_inset
 
--datapointerso little-endian is the more efficient byte order.
+-datapointer so little-endian is the more efficient byte order.
 \end_layout
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{little-endian}
+\begin_inset LatexCommand index
+name "little-endian"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Endianness}
+\begin_inset LatexCommand index
+name "Endianness"
 
 \end_inset
 
@@ -34385,12 +36678,14 @@ dptr
 
 \begin_layout Subsection
 Highest Order Bit
-\begin_inset LatexCommand \index{Highest Order Bit}
+\begin_inset LatexCommand index
+name "Highest Order Bit"
 
 \end_inset
 
  / Any Order Bit
-\begin_inset LatexCommand \index{Any Order Bit}
+\begin_inset LatexCommand index
+name "Any Order Bit"
 
 \end_inset
 
@@ -34408,53 +36703,55 @@ It is frequently required to obtain the highest order bit of an integral
 \begin_layout Verse
 
 \family typewriter
-unsigned int gint;
+unsigned int gint; 
 \newline
 
 \newline
-foo () {
+foo () { 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-unsigned char hob1, aob1;
+unsigned char hob1, aob1; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 bit hob2, hob3, aob2,
- aob3;
+ aob3; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
-hob1 = (gint >> 15) & 1;
+hob1 = (gint >> 15) & 1; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-hob2 = (gint >> 15) & 1;
+hob2 = (gint >> 15) & 1; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 hob3 = gint & 0x8000;
 \newline
 \InsetSpace ~
 \InsetSpace ~
-aob1
- = (gint >> 9) & 1;
+aob1 = (gint >> 9) & 1; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-aob2 = (gint >> 8) & 1;
+aob2 = (gint >> 8) & 1; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-aob3 = gint & 0x0800;
+aob3 = gint & 0x0800; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 ..
 \newline
 }
 \end_layout
@@ -34492,7 +36789,7 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
  61 ;\InsetSpace ~
- hob.c 7
+ hob.c 7 
 \newline
 000A E5*01\InsetSpace ~
 \InsetSpace ~
@@ -34519,7 +36816,7 @@ will generate the following code:
 \InsetSpace ~
  mov\InsetSpace ~
 \InsetSpace ~
- a,(_gint + 1)
+ a,(_gint + 1) 
 \newline
 000C 23\InsetSpace ~
 \InsetSpace ~
@@ -34550,7 +36847,7 @@ will generate the following code:
  rl\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
- a
+ a 
 \newline
 000D 54 01\InsetSpace ~
 \InsetSpace ~
@@ -34567,6 +36864,7 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
+
  64\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -34575,10 +36873,9 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-
  anl\InsetSpace ~
 \InsetSpace ~
- a,#0x01
+ a,#0x01 
 \newline
 000F F5*02\InsetSpace ~
 \InsetSpace ~
@@ -34605,7 +36902,7 @@ will generate the following code:
 \InsetSpace ~
  mov\InsetSpace ~
 \InsetSpace ~
- _foo_hob1_1_1,a
+ _foo_hob1_1_1,a 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -34633,7 +36930,7 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
  66 ;\InsetSpace ~
- hob.c 8
+ hob.c 8 
 \newline
 0011 E5*01\InsetSpace ~
 \InsetSpace ~
@@ -34650,6 +36947,7 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
+
  67\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -34660,8 +36958,7 @@ will generate the following code:
 \InsetSpace ~
  mov\InsetSpace ~
 \InsetSpace ~
-
- a,(_gint + 1)
+ a,(_gint + 1) 
 \newline
 0013 33\InsetSpace ~
 \InsetSpace ~
@@ -34691,7 +36988,7 @@ will generate the following code:
 \InsetSpace ~
  rlc\InsetSpace ~
 \InsetSpace ~
- a
+ a 
 \newline
 0014 92*00\InsetSpace ~
 \InsetSpace ~
@@ -34719,6 +37016,7 @@ will generate the following code:
  mov\InsetSpace ~
 \InsetSpace ~
  _foo_hob2_1_1,c
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -34746,8 +37044,7 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
  66 ;\InsetSpace ~
- hob.c
- 9
+ hob.c 9 
 \newline
 0016 E5*01\InsetSpace ~
 \InsetSpace ~
@@ -34774,7 +37071,7 @@ will generate the following code:
 \InsetSpace ~
  mov\InsetSpace ~
 \InsetSpace ~
- a,(_gint + 1)
+ a,(_gint + 1) 
 \newline
 0018 33\InsetSpace ~
 \InsetSpace ~
@@ -34804,7 +37101,7 @@ will generate the following code:
 \InsetSpace ~
  rlc\InsetSpace ~
 \InsetSpace ~
- a
+ a 
 \newline
 0019 92*01\InsetSpace ~
 \InsetSpace ~
@@ -34821,6 +37118,7 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
+
  69\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -34831,8 +37129,7 @@ will generate the following code:
 \InsetSpace ~
  mov\InsetSpace ~
 \InsetSpace ~
- _foo_hob3_1_1
-,c
+ _foo_hob3_1_1,c 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -34860,7 +37157,7 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
  70 ;\InsetSpace ~
- hob.c 10
+ hob.c 10 
 \newline
 001B E5*01\InsetSpace ~
 \InsetSpace ~
@@ -34887,9 +37184,10 @@ will generate the following code:
 \InsetSpace ~
  mov\InsetSpace ~
 \InsetSpace ~
- a,(_gint + 1)
+ a,(_gint + 1) 
 \newline
-001D 03\InsetSpace ~
+001D
+ 03\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -34918,7 +37216,7 @@ will generate the following code:
  rr\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
- a
+ a 
 \newline
 001E 54 01\InsetSpace ~
 \InsetSpace ~
@@ -34935,7 +37233,6 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-
  73\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -34946,7 +37243,7 @@ will generate the following code:
 \InsetSpace ~
  anl\InsetSpace ~
 \InsetSpace ~
- a,#0x01
+ a,#0x01 
 \newline
 0020 F5*03\InsetSpace ~
 \InsetSpace ~
@@ -34974,6 +37271,7 @@ will generate the following code:
  mov\InsetSpace ~
 \InsetSpace ~
  _foo_aob1_1_1,a
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -35001,7 +37299,7 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
  75 ;\InsetSpace ~
- hob.c 11
+ hob.c 11 
 \newline
 0022 E5*01\InsetSpace ~
 \InsetSpace ~
@@ -35018,7 +37316,6 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-
  76\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -35029,7 +37326,7 @@ will generate the following code:
 \InsetSpace ~
  mov\InsetSpace ~
 \InsetSpace ~
- a,(_gint + 1)
+ a,(_gint + 1) 
 \newline
 0024 13\InsetSpace ~
 \InsetSpace ~
@@ -35059,7 +37356,7 @@ will generate the following code:
 \InsetSpace ~
  rrc\InsetSpace ~
 \InsetSpace ~
- a
+ a 
 \newline
 0025 92*02\InsetSpace ~
 \InsetSpace ~
@@ -35076,6 +37373,7 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
+
  78\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -35086,7 +37384,7 @@ will generate the following code:
 \InsetSpace ~
  mov\InsetSpace ~
 \InsetSpace ~
- _foo_aob2_1_1,c
+ _foo_aob2_1_1,c 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -35113,9 +37411,8 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
- 79
- ;\InsetSpace ~
- hob.c 12
+ 79 ;\InsetSpace ~
+ hob.c 12 
 \newline
 0027 E5*01\InsetSpace ~
 \InsetSpace ~
@@ -35142,9 +37439,10 @@ will generate the following code:
 \InsetSpace ~
  mov\InsetSpace ~
 \InsetSpace ~
- a,(_gint + 1)
+ a,(_gint + 1) 
 \newline
-0029 A2 E3\InsetSpace ~
+0029
+ A2 E3\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -35169,10 +37467,9 @@ will generate the following code:
 \InsetSpace ~
  mov\InsetSpace ~
 \InsetSpace ~
- c,acc[3]
+ c,acc[3] 
 \newline
-002B
- 92*03\InsetSpace ~
+002B 92*03\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -35197,11 +37494,11 @@ will generate the following code:
 \InsetSpace ~
  mov\InsetSpace ~
 \InsetSpace ~
- _foo_aob3_1_1,c
+ _foo_aob3_1_1,c 
 \end_layout
 
 \begin_layout Standard
-Other variations of these cases however will
+Other variations of these cases however will 
 \emph on
 not
 \emph default
@@ -35224,12 +37521,14 @@ will still be recognized.
 
 \begin_layout Subsection
 Higher Order Byte
-\begin_inset LatexCommand \index{Higher Order Byte}
+\begin_inset LatexCommand index
+name "Higher Order Byte"
 
 \end_inset
 
  / Higher Order Word
-\begin_inset LatexCommand \index{Higher Order Word}
+\begin_inset LatexCommand index
+name "Higher Order Word"
 
 \end_inset
 
@@ -35246,47 +37545,49 @@ It is also frequently required to obtain a higher order byte or word of
 \begin_layout Verse
 
 \family typewriter
-unsigned int gint;
+unsigned int gint; 
 \newline
-unsigned long int glong;
+unsigned long int glong; 
 \newline
 
 \newline
-foo () {
+foo () { 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-unsigned char hob1, hob2;
+unsigned char hob1,
+ hob2; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-unsig
-ned int how1, how2;
+unsigned int how1, how2; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
-hob1 = (gint >> 8) & 0xFF;
+hob1 = (gint >> 8) & 0xFF; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-hob2 = glong >> 24;
+hob2 = glong >> 24; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-how1 = (glong
- >> 16) & 0xFFFF;
+how1 = (glong >> 16) & 0xFFFF;
 \newline
 \InsetSpace ~
 \InsetSpace ~
-how2 = glong >> 8;
+how2 = glong >> 8; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 ..
 \newline
 }
 \end_layout
@@ -35324,7 +37625,7 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
  91 ;\InsetSpace ~
- hob.c 15
+ hob.c 15 
 \newline
 0037 85*01*06\InsetSpace ~
 \InsetSpace ~
@@ -35348,7 +37649,7 @@ will generate the following code:
 \InsetSpace ~
  mov\InsetSpace ~
 \InsetSpace ~
- _foo_hob1_1_1,(_gint + 1)
+ _foo_hob1_1_1,(_gint + 1) 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -35376,10 +37677,10 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
  93 ;\InsetSpace ~
- hob.c 16
+ hob.c
+ 16 
 \newline
-003A
- 85*05*07\InsetSpace ~
+003A 85*05*07\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -35401,7 +37702,7 @@ will generate the following code:
 \InsetSpace ~
  mov\InsetSpace ~
 \InsetSpace ~
- _foo_hob2_1_1,(_glong + 3)
+ _foo_hob2_1_1,(_glong + 3) 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -35429,7 +37730,7 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
  95 ;\InsetSpace ~
- hob.c 17
+ hob.c 17 
 \newline
 003D 85*04*08\InsetSpace ~
 \InsetSpace ~
@@ -35443,6 +37744,7 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
+
  96\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -35451,10 +37753,9 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-
  mov\InsetSpace ~
 \InsetSpace ~
- _foo_how1_1_1,(_glong + 2)
+ _foo_how1_1_1,(_glong + 2) 
 \newline
 0040 85*05*09\InsetSpace ~
 \InsetSpace ~
@@ -35478,8 +37779,8 @@ will generate the following code:
 \InsetSpace ~
  mov\InsetSpace ~
 \InsetSpace ~
- (_foo_how1_1_1 + 1),(_glong
- + 3)
+ (_foo_how1_1_1 +
+ 1),(_glong + 3) 
 \newline
 0043 85*03*0A\InsetSpace ~
 \InsetSpace ~
@@ -35503,7 +37804,7 @@ will generate the following code:
 \InsetSpace ~
  mov\InsetSpace ~
 \InsetSpace ~
- _foo_how2_1_1,(_glong + 1)
+ _foo_how2_1_1,(_glong + 1) 
 \newline
 0046 85*04*0B\InsetSpace ~
 \InsetSpace ~
@@ -35517,6 +37818,7 @@ will generate the following code:
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
+
  99\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -35527,12 +37829,11 @@ will generate the following code:
 \InsetSpace ~
  mov\InsetSpace ~
 \InsetSpace ~
-
- (_foo_how2_1_1 + 1),(_glong + 2)
+ (_foo_how2_1_1 + 1),(_glong + 2) 
 \end_layout
 
 \begin_layout Standard
-Again, variations of these cases may
+Again, variations of these cases may 
 \emph on
 not
 \emph default
@@ -35555,12 +37856,14 @@ will still be recognized.
 
 \begin_layout Subsection
 Peephole Optimizer
-\begin_inset LatexCommand \label{sub:Peephole-Optimizer}
+\begin_inset LatexCommand label
+name "sub:Peephole-Optimizer"
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{Peephole optimizer}
+\begin_inset LatexCommand index
+name "Peephole optimizer"
 
 \end_inset
 
@@ -35570,7 +37873,7 @@ Peephole Optimizer
 \begin_layout Standard
 The compiler uses a rule based, pattern matching and re-writing mechanism
  for peep-hole optimization.
- It is inspired by
+ It is inspired by 
 \emph on
 copt
 \emph default
@@ -35579,7 +37882,7 @@ copt
 @\InsetSpace ~
 microsoft.com).
  A default set of rules are compiled into the compiler, additional rules
- may be added with the
+ may be added with the 
 \emph on
 -
 \begin_inset ERT
@@ -35595,7 +37898,8 @@ status collapsed
 \end_inset
 
 -peep-file
-\begin_inset LatexCommand \index{-\/-peep-file}
+\begin_inset LatexCommand index
+name "-\\/-peep-file"
 
 \end_inset
 
@@ -35608,11 +37912,11 @@ status collapsed
 \begin_layout Verse
 
 \family typewriter
-replace {
+replace { 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-mov %1,a
+mov %1,a 
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -35629,7 +37933,8 @@ mov %1,a
 
 \begin_layout Standard
 The above rule will change the following assembly
-\begin_inset LatexCommand \index{Assembler routines}
+\begin_inset LatexCommand index
+name "Assembler routines"
 
 \end_inset
 
@@ -35639,7 +37944,7 @@ The above rule will change the following assembly
 \begin_layout Verse
 
 \family typewriter
-mov r1,a
+mov r1,a 
 \newline
 mov a,r1
 \end_layout
@@ -35655,7 +37960,7 @@ mov r1,a
 \end_layout
 
 \begin_layout Standard
-Note: All occurrences of a
+Note: All occurrences of a 
 \emph on
 %n
 \emph default
@@ -35666,7 +37971,7 @@ Note: All occurrences of a
 \begin_layout Verse
 
 \family typewriter
-mov r1,a
+mov r1,a 
 \newline
 mov a,r2
 \end_layout
@@ -35677,7 +37982,7 @@ will remain unmodified.
 
 \newline
 Other special case optimizations may be added by the
- user (via
+ user (via 
 \emph on
 -
 \begin_inset ERT
@@ -35697,32 +38002,33 @@ status collapsed
 ).
  E.g.
  some variants of the 8051 MCU
-\begin_inset LatexCommand \index{MCS51 variants}
+\begin_inset LatexCommand index
+name "MCS51 variants"
 
 \end_inset
 
- allow only
+ allow only 
 \family typewriter
 ajmp
 \family default
- and
+ and 
 \family typewriter
 acall
 \family default
 .
- The following two rules will change all
+ The following two rules will change all 
 \family typewriter
 ljmp
 \family default
- and
+ and 
 \family typewriter
 lcall
 \family default
- to
+ to 
 \family typewriter
 ajmp
 \family default
- and
+ and 
 \family typewriter
 acall
 \end_layout
@@ -35730,7 +38036,7 @@ acall
 \begin_layout Verse
 
 \family typewriter
-replace { lcall %1 } by { acall %1 }
+replace { lcall %1 } by { acall %1 } 
 \newline
 replace { ljmp %1 } by { ajmp %1 }
 \end_layout
@@ -35754,7 +38060,8 @@ status collapsed
 
 \emph default
 -acall-ajmp
-\begin_inset LatexCommand \index{-\/-acall-ajmp}
+\begin_inset LatexCommand index
+name "-\\/-acall-ajmp"
 
 \end_inset
 
@@ -35764,7 +38071,7 @@ status collapsed
 \end_layout
 
 \begin_layout Standard
-The
+The 
 \emph on
 inline-assembler code
 \emph default
@@ -35785,7 +38092,7 @@ The syntax for a rule is as follows:
 \family typewriter
 rule := replace [ restart ] '{' <assembly sequence> '
 \backslash
-n'
+n' 
 \newline
 \InsetSpace ~
  \InsetSpace ~
@@ -35803,7 +38110,7 @@ n'
  \InsetSpace ~
  '}' by '{' '
 \backslash
-n'
+n' 
 \newline
 \InsetSpace ~
  \InsetSpace ~
@@ -35823,7 +38130,7 @@ n'
  \InsetSpace ~
  <assembly sequence> '
 \backslash
-n'
+n' 
 \newline
 \InsetSpace ~
  \InsetSpace ~
@@ -35841,7 +38148,7 @@ n'
  \InsetSpace ~
  '}' [if <functionName> ] '
 \backslash
-n'
+n' 
 \end_layout
 
 \begin_layout Standard
@@ -35864,19 +38171,19 @@ The optimizer will apply to the rules
 \begin_layout Verse
 
 \family typewriter
-replace restart {
+replace restart { 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-pop %1
+pop %1 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-push %1 } by {
+push %1 } by { 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-; nop
+; nop 
 \newline
 }
 \end_layout
@@ -35890,11 +38197,11 @@ Note that the replace pattern cannot be a blank, but can be a comment line.
 \begin_layout Verse
 
 \family typewriter
-pop ar1
+pop ar1 
 \newline
-pop ar2
+pop ar2 
 \newline
-push ar2
+push ar2 
 \newline
 push ar1
 \end_layout
@@ -35906,9 +38213,9 @@ would result in:
 \begin_layout Verse
 
 \family typewriter
-pop ar1
+pop ar1 
 \newline
-; nop
+; nop 
 \newline
 push ar1
 \end_layout
@@ -35925,7 +38232,7 @@ with
 \begin_layout Verse
 
 \family typewriter
-; nop
+; nop 
 \newline
 ; nop
 \end_layout
@@ -35939,21 +38246,21 @@ A conditional function can be attached to a rule.
 \begin_layout Verse
 
 \family typewriter
-replace {
+replace { 
 \newline
 \InsetSpace ~
  \InsetSpace ~
  \InsetSpace ~
-ljmp %5
+ljmp %5 
 \newline
 %2:
 \newline
-} by {
+} by { 
 \newline
 \InsetSpace ~
  \InsetSpace ~
  \InsetSpace ~
-sjmp %5
+sjmp %5 
 \newline
 %2:
 \newline
@@ -35962,21 +38269,22 @@ sjmp %5
 
 \begin_layout Standard
 The optimizer does a look-up of a function name table defined in function
 \emph on
 callFuncByName
 \emph default
- in the source file SDCCpeeph.c, with the name
+ in the source file SDCCpeeph.c, with the name 
 \emph on
 labelInRange
 \emph default
 .
  If it finds a corresponding entry the function is called.
  Note there can be no parameters specified for these functions, in this
- case the use of
+ case the use of 
 \emph on
 %5
 \emph default
- is crucial, since the function
+ is crucial, since the function 
 \emph on
 labelInRange
 \emph default
@@ -35984,14 +38292,14 @@ labelInRange
 g the variable bindings is passed as a parameter).
  If you want to code more such functions, take a close look at the function
  labelInRange and the calling mechanism in source file SDCCpeeph.c.
- Currently implemented are
+ Currently implemented are 
 \emph on
 labelInRange, labelRefCount, labelIsReturnOnly, operandsNotSame, xramMovcOption,
  24bitMode, portIsDS390, 24bitModeAndPortDS390
 \emph default
-and
+ and 
 \emph on
- notVolatile
+notVolatile
 \emph default
 .
 \end_layout
@@ -36019,12 +38327,14 @@ status collapsed
 
 \begin_layout Section
 ANSI-Compliance
-\begin_inset LatexCommand \index{ANSI-compliance}
+\begin_inset LatexCommand index
+name "ANSI-compliance"
 
 \end_inset
 
 
-\begin_inset LatexCommand \label{sub:ANSI-Compliance}
+\begin_inset LatexCommand label
+name "sub:ANSI-Compliance"
 
 \end_inset
 
@@ -36032,12 +38342,13 @@ ANSI-Compliance
 \end_layout
 
 \begin_layout Standard
-The latest publically available version of the standard
+The latest publicly available version of the standard 
 \emph on
- ISO/IEC 9899 - Programming languages - C
+ISO/IEC 9899 - Programming languages - C
 \emph default
- should be available at:
-\begin_inset LatexCommand \url{http://www.open-std.org/jtc1/sc22/wg14/www/standards.html#9899}
+ should be available at: 
+\begin_inset LatexCommand url
+target "http://www.open-std.org/jtc1/sc22/wg14/www/standards.html#9899"
 
 \end_inset
 
@@ -36052,11 +38363,12 @@ Deviations from the compliance:
 
 \begin_layout Itemize
 functions are not reentrant
-\begin_inset LatexCommand \index{reentrant}
+\begin_inset LatexCommand index
+name "reentrant"
 
 \end_inset
 
- unless explicitly declared as such or the
+ unless explicitly declared as such or the 
 \series bold
 -
 \begin_inset ERT
@@ -36072,7 +38384,8 @@ status collapsed
 \end_inset
 
 -stack-auto
-\begin_inset LatexCommand \index{-\/-stack-auto}
+\begin_inset LatexCommand index
+name "-\\/-stack-auto"
 
 \end_inset
 
@@ -36083,18 +38396,21 @@ status collapsed
 
 \begin_layout Itemize
 structures
-\begin_inset LatexCommand \index{struct}
+\begin_inset LatexCommand index
+name "struct"
 
 \end_inset
 
  and unions
-\begin_inset LatexCommand \index{union}
+\begin_inset LatexCommand index
+name "union"
 
 \end_inset
 
  cannot be assigned values directly, cannot be passed as function parameters
  or assigned to each other and cannot be a return value
-\begin_inset LatexCommand \index{return value}
+\begin_inset LatexCommand index
+name "return value"
 
 \end_inset
 
@@ -36106,65 +38422,73 @@ structures
 
 \family typewriter
 struct s { ...
- };
+ }; 
 \newline
-struct s s1, s2;
+struct s s1, s2; 
 \newline
-foo()
+foo() 
 \newline
-{
+{ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-s1 = s2 ; /* is invalid in SDCC although allowed
- in ANSI */
+s1 = s2 ; /* is invalid in SDCC although allowed in ANSI */ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 ...
 \newline
 }
 \newline
 
 \series bold
 struct
+\family default
 \series default
- s foo1 (
+\family typewriter
+s foo1 (
 \series bold
 struct
+\family default
 \series default
- s parms) /* invalid in SDCC although allowed in ANSI */
+\family typewriter
+s parms) /* invalid in SDCC although allowed in ANSI */
 \newline
-{
+{ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 struct s rets;
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 ...
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-return
- rets; /* is invalid in SDCC although allowed in ANSI */
+return rets; /* is invalid in SDCC although allowed in ANSI */ 
 \newline
 }
 \end_layout
@@ -36192,12 +38516,14 @@ struct s { char x
 \end_deeper
 \begin_layout Itemize
 'long long
-\begin_inset LatexCommand \index{long long (not supported)}
+\begin_inset LatexCommand index
+name "long long (not supported)"
 
 \end_inset
 
 ' (64 bit integers
-\begin_inset LatexCommand \index{int (64 bit) (not supported)}
+\begin_inset LatexCommand index
+name "int (64 bit) (not supported)"
 
 \end_inset
 
@@ -36206,12 +38532,14 @@ struct s { char x
 
 \begin_layout Itemize
 'double
-\begin_inset LatexCommand \index{double (not supported)}
+\begin_inset LatexCommand index
+name "double (not supported)"
 
 \end_inset
 
-' precision floating point
-\begin_inset LatexCommand \index{Floating point support}
+' precision floating point 
+\begin_inset LatexCommand index
+name "Floating point support"
 
 \end_inset
 
@@ -36220,7 +38548,8 @@ not supported.
 
 \begin_layout Itemize
 Old K&R style
-\begin_inset LatexCommand \index{K\&R style}
+\begin_inset LatexCommand index
+name "K\\&R style"
 
 \end_inset
 
@@ -36231,18 +38560,19 @@ Old K&R style
 \begin_layout Verse
 
 \family typewriter
-foo(i,j) /* this old style of function declarations */
+foo(i,j) /* this old style of function declarations */ 
 \newline
 int i,j; /* is valid
- in ANSI but not valid in SDCC */
+ in ANSI but not valid in SDCC */ 
 \newline
-{
+{ 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 ...
 \newline
 }
 \end_layout
@@ -36259,8 +38589,11 @@ Most enhancements in C99 are not supported, e.g.:
 for (
 \series bold
 int
+\family default
 \series default
- i=0; i<10; i++) /* is invalid in SDCC although allowed in C99 */
+\family typewriter
+i=0; i<10; i++) /* is invalid in SDCC although allowed in C99 */
 \end_layout
 
 \end_deeper
@@ -36275,33 +38608,44 @@ But some have been added recently in SDCC 2.7.0.
 \family typewriter
 \series bold
 inline
-\begin_inset LatexCommand \index{inline (not supported)}
+\begin_inset LatexCommand index
+name "inline (not supported)"
 
 \end_inset
 
 
+\family default
 \series default
- int increment (int a) { return a+1; } /* inlines the increment without
- function call overhead */
+\family typewriter
+int increment (int a) { return a+1; } /* inlines the increment without function
+ call overhead */
 \newline
 int *
+\family default
+\family typewriter
 \series bold
 restrict
-\begin_inset LatexCommand \index{inline (not supported)}
+\begin_inset LatexCommand index
+name "inline (not supported)"
 
 \end_inset
 
 
+\family default
 \series default
- p; /* accepted but ignored */
+\family typewriter
+p; /* accepted but ignored */
 \end_layout
 
 \end_deeper
 \begin_layout Itemize
 Certain words that are valid identifiers in the standard may be reserved
- words in SDCC unless the
+ words in SDCC unless the 
 \series bold
- -
+-
 \begin_inset ERT
 status collapsed
 
@@ -36315,11 +38659,16 @@ status collapsed
 \end_inset
 
 -std-c89
-\begin_inset LatexCommand \index{-\/-std-c89}
+\begin_inset LatexCommand index
+name "-\\/-std-c89"
 
 \end_inset
 
- or -
+
+\series default
+ or 
+\series bold
+-
 \begin_inset ERT
 status collapsed
 
@@ -36333,7 +38682,8 @@ status collapsed
 \end_inset
 
 -std-c99
-\begin_inset LatexCommand \index{-\/-std-c99}
+\begin_inset LatexCommand index
+name "-\\/-std-c99"
 
 \end_inset
 
@@ -36347,7 +38697,8 @@ t', 'near', 'nonbanked', 'pdata', 'reentrant', 'sbit', 'sfr', 'shadowregs',
  '_naked'.
  Compliant equivalents of these keywords are always available in a form
  that begin with two underscores
-\begin_inset LatexCommand \index{\_\_ (prefix for extended keywords)}
+\begin_inset LatexCommand index
+name "\\_\\_ (prefix for extended keywords)"
 
 \end_inset
 
@@ -36356,10 +38707,10 @@ t', 'near', 'nonbanked', 'pdata', 'reentrant', 'sbit', 'sfr', 'shadowregs',
 \end_layout
 
 \begin_layout Itemize
-integer promotion of variable arguments is not performed if the argument
- is explicitly taypecasted unless the
+Integer promotion of variable arguments is not performed if the argument
+ is explicitly taypecasted unless the 
 \series bold
- -
+-
 \begin_inset ERT
 status collapsed
 
@@ -36373,11 +38724,16 @@ status collapsed
 \end_inset
 
 -std-c89
-\begin_inset LatexCommand \index{-\/-std-c89}
+\begin_inset LatexCommand index
+name "-\\/-std-c89"
 
 \end_inset
 
- or -
+
+\series default
+ or 
+\series bold
+-
 \begin_inset ERT
 status collapsed
 
@@ -36391,7 +38747,8 @@ status collapsed
 \end_inset
 
 -std-c99
-\begin_inset LatexCommand \index{-\/-std-c99}
+\begin_inset LatexCommand index
+name "-\\/-std-c99"
 
 \end_inset
 
@@ -36404,7 +38761,7 @@ status collapsed
 \begin_layout Verse
 
 \family typewriter
-void vararg_func (char *str, ...) { atr; }
+void vararg_func (char *str, ...) { str; }
 \newline
 
 \newline
@@ -36430,21 +38787,14 @@ char c = 10;
 \newline
 \InsetSpace ~
 \InsetSpace ~
-vararg_func (
-\begin_inset Quotes sld
-\end_inset
-
-%c
-\begin_inset Quotes srd
-\end_inset
-
-, c);
+vararg_func ("%c", c);
 \newline
 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-/* argument u is not promoted to int,
+/*
+ argument u is not promoted to int,
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -36454,8 +38804,8 @@ vararg_func (
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-*
if --std-cXX is not defined;
+* if
+ --std-cXX is not defined;
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -36470,15 +38820,7 @@ vararg_func (
 \newline
 \InsetSpace ~
 \InsetSpace ~
-vararg_func (
-\begin_inset Quotes sld
-\end_inset
-
-%bc
-\begin_inset Quotes srd
-\end_inset
-
-, (char)u);
+vararg_func ("%bc", (char)u);
 \newline
 }
 \end_layout
@@ -36486,7 +38828,8 @@ vararg_func (
 \end_deeper
 \begin_layout Section
 Cyclomatic Complexity
-\begin_inset LatexCommand \index{Cyclomatic complexity}
+\begin_inset LatexCommand index
+name "Cyclomatic complexity"
 
 \end_inset
 
@@ -36505,6 +38848,7 @@ Cyclomatic complexity of a function is defined as the number of independent
  code in a function.
  Large functions can have low complexity, and small functions can have large
  complexity levels.
 \newline
 
 \newline
@@ -36601,7 +38945,8 @@ This phase determines the live-ranges; by live range I mean those iTemp
  variables defined by the compiler that still survive after all the optimization
 s.
  Live range analysis
-\begin_inset LatexCommand \index{Live range analysis}
+\begin_inset LatexCommand index
+name "Live range analysis"
 
 \end_inset
 
@@ -36642,17 +38987,20 @@ As mentioned in the optimization section the peep-hole optimizer is rule
 
 \begin_layout Standard
 More information is available on SDCC Wiki
-\begin_inset LatexCommand \index{wiki}
+\begin_inset LatexCommand index
+name "wiki"
 
 \end_inset
 
- (preliminary link
-\begin_inset LatexCommand \url{http://sdcc.wiki.sourceforge.net/SDCC+internals+and+porting}
+ (preliminary link 
+\begin_inset LatexCommand url
+target "http://sdcc.wiki.sourceforge.net/SDCC+internals+and+porting"
 
 \end_inset
 
-) and in the thread
-\begin_inset LatexCommand \url{http://sf.net/mailarchive/message.php?msg_id=13954144}
+) and in the thread 
+\begin_inset LatexCommand url
+target "http://sf.net/mailarchive/message.php?msg_id=13954144"
 
 \end_inset
 
@@ -36661,7 +39009,8 @@ More information is available on SDCC Wiki
 
 \begin_layout Chapter
 Compiler internals
-\begin_inset LatexCommand \index{Compiler internals}
+\begin_inset LatexCommand index
+name "Compiler internals"
 
 \end_inset
 
@@ -36670,7 +39019,8 @@ Compiler internals
 
 \begin_layout Section
 The anatomy of the compiler
-\begin_inset LatexCommand \label{sub:The-anatomy-of}
+\begin_inset LatexCommand label
+name "sub:The-anatomy-of"
 
 \end_inset
 
@@ -36682,7 +39032,10 @@ The anatomy of the compiler
 \shape italic
 This is an excerpt from an article published in Circuit Cellar Magazine
  in
+\shape default
 \series bold
+\shape italic
 August 2000
 \series default
 .
@@ -36696,20 +39049,23 @@ per friendly), but pretty well exposes the guts of it all.
 The current version of SDCC can generate code for Intel 8051 and Z80 MCU.
  It is fairly easy to retarget for other 8-bit MCU.
  Here we take a look at some of the internals of the compiler.
 \end_layout
 
 \begin_layout Paragraph*
 Parsing
-\begin_inset LatexCommand \index{Parsing}
+\begin_inset LatexCommand index
+name "Parsing"
 
 \end_inset
 
-
 \end_layout
 
 \begin_layout Standard
 Parsing the input source file and creating an AST (Annotated Syntax Tree
-\begin_inset LatexCommand \index{Annotated syntax tree}
+\begin_inset LatexCommand index
+name "Annotated syntax tree"
 
 \end_inset
 
@@ -36728,7 +39084,8 @@ Parsing the input source file and creating an AST (Annotated Syntax Tree
 
 \begin_layout Paragraph*
 Generating iCode
-\begin_inset LatexCommand \index{iCode}
+\begin_inset LatexCommand index
+name "iCode"
 
 \end_inset
 
@@ -36746,7 +39103,8 @@ Intermediate code generation.
 
 \begin_layout Paragraph*
 Optimizations
-\begin_inset LatexCommand \index{Optimizations}
+\begin_inset LatexCommand index
+name "Optimizations"
 
 \end_inset
 
@@ -36762,7 +39120,8 @@ on, loop invariant code movement, strength reduction of loop induction variables
 
 \begin_layout Paragraph*
 Live range analysis
-\begin_inset LatexCommand \index{Live range analysis}
+\begin_inset LatexCommand index
+name "Live range analysis"
 
 \end_inset
 
@@ -36787,7 +39146,8 @@ nerated temporaries.
 
 \begin_layout Paragraph*
 Register Allocation
-\begin_inset LatexCommand \index{Register allocation}
+\begin_inset LatexCommand index
+name "Register allocation"
 
 \end_inset
 
@@ -36811,6 +39171,7 @@ The register allocation determines the type and number of registers needed
  basic block being processed, if there are any found then it will push that
  operand and use the registers in this block, the operand will then be popped
  at the end of the basic block.
 \end_layout
 
 \begin_layout Standard
@@ -36825,7 +39186,8 @@ Code generation
 
 \begin_layout Standard
 Figure II gives a table of iCode
-\begin_inset LatexCommand \index{iCode}
+\begin_inset LatexCommand index
+name "iCode"
 
 \end_inset
 
@@ -36837,6 +39199,7 @@ Figure II gives a table of iCode
  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.
 \newline
 
 \end_layout
@@ -36844,7 +39207,7 @@ Figure II gives a table of iCode
 \begin_layout Standard
 
 \size footnotesize
-Figure II
+Figure II 
 \begin_inset Tabular
 <lyxtabular version="3" rows="39" columns="4">
 <features islongtable="true" headBottomDL="true">
@@ -36862,7 +39225,8 @@ Figure II
 iCode
 \series default
 
-\begin_inset LatexCommand \index{iCode}
+\begin_inset LatexCommand index
+name "iCode"
 
 \end_inset
 
@@ -36934,7 +39298,7 @@ IC_LEFT() IC_RESULT()
 \begin_layout Standard
 
 \size footnotesize
-NOT operation
+NOT operation 
 \end_layout
 
 \end_inset
@@ -36980,7 +39344,7 @@ IC_LEFT() IC_RESULT()
 \begin_layout Standard
 
 \size footnotesize
-Bitwise complement of
+Bitwise complement of 
 \end_layout
 
 \end_inset
@@ -37256,7 +39620,7 @@ IC_LEFT()
 \begin_layout Standard
 
 \size footnotesize
-Pop the operand from the stack
+Pop the operand from the stack 
 \end_layout
 
 \end_inset
@@ -37302,7 +39666,7 @@ IC_LEFT() IC_RESULT()
 \begin_layout Standard
 
 \size footnotesize
-Call the function represented by IC_LEFT
+Call the function represented by IC_LEFT 
 \end_layout
 
 \end_inset
@@ -37394,7 +39758,7 @@ IC_LEFT()
 \begin_layout Standard
 
 \size footnotesize
-Return the value in operand IC_LEFT
+Return the value in operand IC_LEFT 
 \end_layout
 
 \end_inset
@@ -37429,7 +39793,7 @@ LABEL
 \begin_layout Standard
 
 \size footnotesize
-IC_LABEL()
+IC_LABEL() 
 \end_layout
 
 \end_inset
@@ -37475,7 +39839,7 @@ GOTO
 \begin_layout Standard
 
 \size footnotesize
-IC_LABEL()
+IC_LABEL() 
 \end_layout
 
 \end_inset
@@ -37589,7 +39953,7 @@ Subtraction
 \begin_layout Standard
 
 \size footnotesize
-IC_RESULT = IC_LEFT - IC_RIGHT
+IC_RESULT = IC_LEFT - IC_RIGHT 
 \end_layout
 
 \end_inset
@@ -37624,7 +39988,7 @@ IC_LEFT() IC_RIGHT() IC_RESULT()
 \begin_layout Standard
 
 \size footnotesize
-Multiplication
+Multiplication 
 \end_layout
 
 \end_inset
@@ -37808,7 +40172,7 @@ IC_LEFT() IC_RIGHT() IC_RESULT()
 \begin_layout Standard
 
 \size footnotesize
-Greater than
+Greater than 
 \end_layout
 
 \end_inset
@@ -37854,7 +40218,7 @@ IC_LEFT() IC_RIGHT() IC_RESULT()
 \begin_layout Standard
 
 \size footnotesize
-Equal to
+Equal to 
 \end_layout
 
 \end_inset
@@ -37889,7 +40253,7 @@ AND_OP
 \begin_layout Standard
 
 \size footnotesize
-IC_LEFT() IC_RIGHT() IC_RESULT()
+IC_LEFT() IC_RIGHT() IC_RESULT() 
 \end_layout
 
 \end_inset
@@ -37911,7 +40275,7 @@ Logical and operation
 \begin_layout Standard
 
 \size footnotesize
-IC_RESULT = IC_LEFT && IC_RIGHT;
+IC_RESULT = IC_LEFT && IC_RIGHT; 
 \end_layout
 
 \end_inset
@@ -37935,7 +40299,7 @@ OR_OP
 \begin_layout Standard
 
 \size footnotesize
-IC_LEFT() IC_RIGHT() IC_RESULT()
+IC_LEFT() IC_RIGHT() IC_RESULT() 
 \end_layout
 
 \end_inset
@@ -37946,7 +40310,7 @@ IC_LEFT() IC_RIGHT() IC_RESULT()
 \begin_layout Standard
 
 \size footnotesize
-Logical or operation
+Logical or operation 
 \end_layout
 
 \end_inset
@@ -37957,7 +40321,7 @@ Logical or operation
 \begin_layout Standard
 
 \size footnotesize
-IC_RESULT = IC_LEFT || IC_RIGHT;
+IC_RESULT = IC_LEFT || IC_RIGHT; 
 \end_layout
 
 \end_inset
@@ -37981,7 +40345,7 @@ IC_RESULT = IC_LEFT || IC_RIGHT;
 \begin_layout Standard
 
 \size footnotesize
-IC_LEFT() IC_RIGHT() IC_RESULT()
+IC_LEFT() IC_RIGHT() IC_RESULT() 
 \end_layout
 
 \end_inset
@@ -38027,7 +40391,7 @@ IC_RESULT = IC_LEFT ^ IC_RIGHT;
 \begin_layout Standard
 
 \size footnotesize
-IC_LEFT() IC_RIGHT() IC_RESULT()
+IC_LEFT() IC_RIGHT() IC_RESULT() 
 \end_layout
 
 \end_inset
@@ -38038,7 +40402,7 @@ IC_LEFT() IC_RIGHT() IC_RESULT()
 \begin_layout Standard
 
 \size footnotesize
-Bitwise OR
+Bitwise OR 
 \end_layout
 
 \end_inset
@@ -38084,7 +40448,7 @@ IC_LEFT() IC_RIGHT() IC_RESULT()
 \begin_layout Standard
 
 \size footnotesize
-Bitwise AND
+Bitwise AND 
 \end_layout
 
 \end_inset
@@ -38130,7 +40494,7 @@ IC_LEFT() IC_RIGHT() IC_RESULT()
 \begin_layout Standard
 
 \size footnotesize
-Left shift
+Left shift 
 \end_layout
 
 \end_inset
@@ -38141,7 +40505,7 @@ Left shift
 \begin_layout Standard
 
 \size footnotesize
-IC_RESULT = IC_LEFT << IC_RIGHT
+IC_RESULT = IC_LEFT << IC_RIGHT 
 \end_layout
 
 \end_inset
@@ -38187,7 +40551,7 @@ Right shift
 \begin_layout Standard
 
 \size footnotesize
-IC_RESULT = IC_LEFT >> IC_RIGHT
+IC_RESULT = IC_LEFT >> IC_RIGHT 
 \end_layout
 
 \end_inset
@@ -38224,7 +40588,7 @@ IC_LEFT() IC_RESULT()
 \begin_layout Standard
 
 \size footnotesize
-Indirect fetch
+Indirect fetch 
 \end_layout
 
 \end_inset
@@ -38259,7 +40623,7 @@ POINTER_SET
 \begin_layout Standard
 
 \size footnotesize
-IC_RIGHT() IC_RESULT()
+IC_RIGHT() IC_RESULT() 
 \end_layout
 
 \end_inset
@@ -38364,7 +40728,7 @@ IC_COND IC_TRUE IC_LABEL
 \size footnotesize
 Conditional jump.
  If true label is present then jump to true label if condition is true else
- jump to false label if condition is false
+ jump to false label if condition is false 
 \end_layout
 
 \end_inset
@@ -38375,11 +40739,11 @@ Conditional jump.
 \begin_layout Standard
 
 \size footnotesize
-if (IC_COND) goto IC_TRUE;
+if (IC_COND) goto IC_TRUE; 
 \newline
 \InsetSpace ~
 \InsetSpace ~
-Or
+Or 
 \newline
 If (!IC_COND) goto IC_FALSE;
 \end_layout
@@ -38416,7 +40780,7 @@ IC_LEFT() IC_RESULT()
 \begin_layout Standard
 
 \size footnotesize
-Address of
+Address of 
 \end_layout
 
 \end_inset
@@ -38508,7 +40872,7 @@ IC_RIGHT() IC_LEFT() IC_RESULT()
 \begin_layout Standard
 
 \size footnotesize
-Cast types
+Cast types 
 \end_layout
 
 \end_inset
@@ -38554,7 +40918,7 @@ IC_LEFT()
 \begin_layout Standard
 
 \size footnotesize
-This is used for passing parameters in registers;
+This is used for passing parameters in registers; 
 \newline
 move IC_LEFT to the next
  available parameter register.
@@ -38606,7 +40970,7 @@ IC_RESULT()
 This is used for receiving parameters passed in registers;
 \newline
 Move the values
- in the next parameter register to IC_RESULT
+ in the next parameter register to IC_RESULT 
 \end_layout
 
 \end_inset
@@ -38662,11 +41026,21 @@ None
 \shape slanted
 \size footnotesize
 see f.e.
+
+\shape default
 \family typewriter
+\shape slanted
 gen51Code()
 \family default
- in
+\shape default
+\shape slanted
+in
+\shape default
 \family typewriter
+\shape slanted
 src/mcs51/gen.c
 \end_layout
 
@@ -38685,7 +41059,7 @@ src/mcs51/gen.c
 status collapsed
 
 \begin_layout Standard
-In the original article Figure II was announced to be downloadable on
+In the original article Figure II was announced to be downloadable on 
 \shape italic
 Circuit Cellar
 \shape default
@@ -38700,7 +41074,8 @@ Circuit Cellar
 
 \begin_layout Paragraph*
 ICode Example
-\begin_inset LatexCommand \index{iCode}
+\begin_inset LatexCommand index
+name "iCode"
 
 \end_inset
 
@@ -38764,13 +41139,13 @@ int j ;
 11.\InsetSpace ~
 \InsetSpace ~
 while (*x) *x++
- = *p++;
+ = *p++; 
 \newline
 12.\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-sum = 0 ;
+sum = 0 ; 
 \newline
 13.\InsetSpace ~
 \InsetSpace ~
@@ -38778,8 +41153,8 @@ mul = 0;
 \newline
 14.\InsetSpace ~
 \InsetSpace ~
-/* compiler detects i,j to be induction variables
- */
+/* compiler detects i,j to be induction
variables */
 \newline
 15.\InsetSpace ~
 \InsetSpace ~
@@ -38857,14 +41232,16 @@ Then follows the human readable form of the ICode operation.
  Note that local variables and parameters are replaced by compiler generated
  temporaries.
  Live ranges
-\begin_inset LatexCommand \index{Live range analysis}
+\begin_inset LatexCommand index
+name "Live range analysis"
 
 \end_inset
 
  are computed only for temporaries (i.e.
  live ranges are not computed for global variables).
  Registers
-\begin_inset LatexCommand \index{Register allocation}
+\begin_inset LatexCommand index
+name "Register allocation"
 
 \end_inset
 
@@ -38881,7 +41258,7 @@ Operand Name [lr live-from : live-to ] { type information } [ registers
 
 \newline
 As mentioned earlier the live ranges are computed in terms of the execution
- sequence number of the iCodes, for example
+ sequence number of the iCodes, for example 
 \newline
 the iTemp0 is live from (i.e.
  first defined in iCode with execution sequence number 3, and is last used
@@ -38906,14 +41283,16 @@ The register allocator
 \newline
 There are several
  loop optimizations
-\begin_inset LatexCommand \index{Loop optimization}
+\begin_inset LatexCommand index
+name "Loop optimization"
 
 \end_inset
 
  performed by the compiler.
  It can detect induction variables iTemp21(i) and iTemp23(j).
  Also note the compiler does selective strength reduction
-\begin_inset LatexCommand \index{Strength reduction}
+\begin_inset LatexCommand index
+name "Strength reduction"
 
 \end_inset
 
@@ -38922,7 +41301,8 @@ There are several
  changed to addition, a new temporary iTemp17 is allocated and assigned
  a initial value, a constant 3 is then added for each iteration of the loop.
  The compiler does not change the multiplication
-\begin_inset LatexCommand \index{Multiplication}
+\begin_inset LatexCommand index
+name "Multiplication"
 
 \end_inset
 
@@ -38930,7 +41310,8 @@ There are several
 \newline
 
 Note the dead code elimination
-\begin_inset LatexCommand \index{Dead-code elimination}
+\begin_inset LatexCommand index
+name "Dead-code elimination"
 
 \end_inset
 
@@ -38955,7 +41336,7 @@ Sample.c(5:2:1:0) proc _function [lr0:0]{function short}
 \begin_layout Standard
 
 \size footnotesize
-Sample.c(11:3:2:0) iTemp0 [lr3:5]{_near * int}[r2] = recv
+Sample.c(11:3:2:0) iTemp0 [lr3:5]{_near * int}[r2] = recv 
 \end_layout
 
 \begin_layout Standard
@@ -39253,7 +41634,7 @@ _function:
 \begin_layout Standard
 
 \size footnotesize
-; iTemp0 [lr3:5]{_near * int}[r2] = recv
+; iTemp0 [lr3:5]{_near * int}[r2] = recv 
 \end_layout
 
 \begin_layout Standard
@@ -39519,13 +41900,13 @@ mov @r0,ar3
 \begin_layout Standard
 
 \size footnotesize
-; iTemp6 [lr5:16]{_near * int}[r0] =
+; iTemp6 [lr5:16]{_near * int}[r0] = 
 \end_layout
 
 \begin_layout Standard
 
 \size footnotesize
-; iTemp6 [lr5:16]{_near * int}[r0] +
+; iTemp6 [lr5:16]{_near * int}[r0] + 
 \end_layout
 
 \begin_layout Standard
@@ -39727,7 +42108,7 @@ jnc 00107$
 \begin_layout Standard
 
 \size footnotesize
-; iTemp2 [lr18:40]{short}[r2] = iTemp2 [lr18:40]{short}[r2] +
+; iTemp2 [lr18:40]{short}[r2] = iTemp2 [lr18:40]{short}[r2] + 
 \end_layout
 
 \begin_layout Standard
@@ -39801,7 +42182,7 @@ mov r1,a
 \begin_layout Standard
 
 \size footnotesize
-; iTemp11 [lr19:40]{short}[r3] = iTemp11 [lr19:40]{short}[r3] +
+; iTemp11 [lr19:40]{short}[r3] = iTemp11 [lr19:40]{short}[r3] + 
 \end_layout
 
 \begin_layout Standard
@@ -40062,7 +42443,8 @@ A few words about basic block successors, predecessors and dominators
 
 \begin_layout Standard
 Successors are basic blocks
-\begin_inset LatexCommand \index{Basic blocks}
+\begin_inset LatexCommand index
+name "Basic blocks"
 
 \end_inset
 
@@ -40130,7 +42512,8 @@ Acknowledgments
 \end_layout
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://sdcc.sourceforge.net#Who}
+\begin_inset LatexCommand url
+target "http://sdcc.sourceforge.net/#Who"
 
 \end_inset
 
@@ -40150,8 +42533,9 @@ Thanks to all the other volunteer developers who have helped with coding,
 \newline
 
 \emph on
-Thanks to Sourceforge
-\begin_inset LatexCommand \url{http://www.sf.net}
+Thanks to Sourceforge 
+\begin_inset LatexCommand url
+target "http://www.sf.net"
 
 \end_inset
 
@@ -40176,11 +42560,13 @@ This document was initially written by Sandeep Dutta
 
 \begin_layout Standard
 All product names mentioned herein may be trademarks
-\begin_inset LatexCommand \index{Trademarks}
+\begin_inset LatexCommand index
+name "Trademarks"
 
 \end_inset
 
  of their respective companies.
 \end_layout
 
 \begin_layout Section*
@@ -40193,7 +42579,7 @@ To avoid confusion, the installation and building options for SDCC itself
 \end_layout
 
 \begin_layout Standard
-\begin_inset LatexCommand \printindex{}
+\begin_inset LatexCommand printindex
 
 \end_inset