* support/regression/tests/bug1057979.c:
[fw/sdcc] / doc / sdccman.lyx
index 66a4ae743cca9fb77edad044bf4577ef8d7cc8c8..38436d89dcbbdda8adad09f1efc17ba1e055ee0b 100644 (file)
@@ -1,4 +1,4 @@
-#LyX 1.5.0 created this file. For more info see http://www.lyx.org/
+#LyX 1.4.5 created this file. For more info see http://www.lyx.org/
 \lyxformat 245
 \begin_document
 \begin_header
@@ -45,9 +45,7 @@
 \papersides 1
 \paperpagestyle fancy
 \tracking_changes false
-\output_changes false
-\author ""
-\author ""
+\output_changes true
 \end_header
 
 \begin_body
@@ -106,11 +104,11 @@ SDCC Compiler User Guide
 \begin_layout Date
 
 \size normal
-SDCC 2.7.3
+SDCC 2.8.4
 \size footnotesize
 
 \newline
-$Date::             
+$Date::            $ 
 \newline
 $Revision$
 \end_layout
@@ -691,7 +689,10 @@ The latest SDCC version can be downloaded from
 \end_inset
 
 .
+
+\series bold
  
+\series default
 \emph on
 Please note: the compiler will probably always be some steps ahead of this
  documentation
@@ -863,11 +864,55 @@ 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{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{-\/-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{-\/-std-c99}
 
 \end_inset
 
- functions are casted to int unless explicitly casted
+
+\series default
+ command line option are not defined 
 \begin_inset Marginal
 status collapsed
 
@@ -896,7 +941,97 @@ 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{-\/-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{-\/-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{-\/-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{-\/-std-c99}
+
+\end_inset
+
+
+\series default
+ command line option is defined.
 \end_layout
 
 \begin_layout Itemize
@@ -962,7 +1097,7 @@ bit
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_sbit}
+\begin_inset LatexCommand \index{\_\_sbit}
 
 \end_inset
 
@@ -995,7 +1130,7 @@ bit b;
 \InsetSpace ~
 \InsetSpace ~
 b = ~
-\begin_inset LatexCommand \index{\\~\\/ Operator}
+\begin_inset LatexCommand \index{\~\/ Operator}
 
 \end_inset
 
@@ -1023,10 +1158,22 @@ b = !b; /* toggles b */
 In previous versions, both forms would have toggled the bit.
 \end_layout
 
-\begin_layout Standard
+\begin_layout Itemize
+in older versions, the preprocessor was always called with -std=c99 regardless
+ of the --std-xxx setting.
+ This is no longer true, and can cause compilation failures on code built
+ with --std-c89 but using c99 preprocessor features, such as one-line (//)
+ comments
+\end_layout
 
-\emph on
-<pending: more incompatibilities?>
+\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 Section
@@ -1547,6 +1694,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.
@@ -3875,9 +4040,7 @@ Bring up a command line terminal, such as xterm.
 \begin_layout Enumerate
 
 \series medium
-Unpack the file using a command like:
-\series default
+Unpack the file using a command like: 
 \family sans
 \series bold
 "tar -xvzf sdcc-src-yyyymmdd-rrrr.tar.bz2
@@ -3902,9 +4065,7 @@ Change directory into the main SDCC directory, for example type:
 \begin_layout Enumerate
 
 \series medium
-Type
-\series default
+Type 
 \family sans
 \series bold
 "./configure
@@ -3917,9 +4078,7 @@ Type
 \begin_layout Enumerate
 
 \series medium
-Type
-\series default
+Type 
 \family sans
 \series bold
 "make
@@ -3936,9 +4095,7 @@ Type
 \begin_layout Enumerate
 
 \series medium
-Type
-\series default
+Type 
 \family sans
 \series bold
 "make install"
@@ -3978,6 +4135,36 @@ On Mac OS X 10.2.x it was reported, that the
 ./configure CC=gcc2 CXX=g++2
 \end_layout
 
+\begin_layout Standard
+Universal (ppc and i386) binaries can be produced on Mac OS X 10.4.x with
+ Xcode.
+ Run 'configure' with:
+\end_layout
+
+\begin_layout LyX-Code
+./configure 
+\backslash
+
+\end_layout
+
+\begin_layout LyX-Code
+LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch
+ ppc" 
+\backslash
+
+\end_layout
+
+\begin_layout LyX-Code
+CXXFLAGS = "-O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch
+ ppc" 
+\backslash
+
+\end_layout
+
+\begin_layout LyX-Code
+CFLAGS = "-O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
+\end_layout
+
 \begin_layout Subsection
 Cross compiling SDCC on Linux for Windows
 \end_layout
@@ -4903,9 +5090,9 @@ If it doesn't run, or gives a message about not finding sdcc program, then
  Make sure that the sdcc bin directory is in your executable search path
  defined by the PATH environment setting (
 \series medium
-see
+see 
 \series default
- section 
+section 
 \begin_inset LatexCommand \ref{sub:Install-Trouble-shooting}
 
 \end_inset
@@ -4923,9 +5110,9 @@ Install trouble-shooting for suggestions
 \newline
 
 \series medium
-SDCC
+SDCC 
 \series default
- is commonly installed as described in section 
+is commonly installed as described in section 
 \begin_inset Quotes sld
 \end_inset
 
@@ -4940,9 +5127,9 @@ Install and search paths
 
 \series medium
 Make sure the compiler works on a very simple example.
- Type in the following test.c program using your favorite
+ Type in the following test.c program using your favorite 
 \series default
- ASCII 
+ASCII 
 \series medium
 editor:
 \end_layout
@@ -4968,9 +5155,7 @@ test=0;
 \begin_layout Standard
 
 \series medium
-Compile this using the following command:
-\series default
+Compile this using the following command: 
 \family sans
 \series bold
 "sdcc -c test.c".
@@ -4991,9 +5176,7 @@ 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
+ Type in 
 \family sans
 \series bold
 "sdcc test.c
@@ -5009,21 +5192,21 @@ The next step is to try it with the linker.
  
 \series medium
 (no test.ihx, and the linker generates warnings), then the problem is most
- likely that
+ likely that 
 \series default
- SDCC 
+SDCC
 \series medium
-cannot find the
+ cannot find the 
 \series default
- /
+/
 \series medium
 usr/local/share/sdcc/lib directory
 \series default
  
 \series medium
-(see
+(see 
 \series default
- section 
+section 
 \begin_inset LatexCommand \ref{sub:Install-Trouble-shooting}
 
 \end_inset
@@ -5039,15 +5222,15 @@ Install trouble-shooting for suggestions).
 \newline
 
 \series medium
-The final test is to ensure
+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
 
@@ -5074,9 +5257,7 @@ strcpy(str1, "testing");
 \begin_layout Standard
 
 \series medium
-Compile this by typing
-\series default
+Compile this by typing 
 \family sans
 \series bold
 "sdcc test.c"
@@ -5085,17 +5266,17 @@ Compile this by typing
 .
  This should generate a test.ihx output file, and it should give no warnings
  such as not finding the string.h file.
- If it cannot find the string.h file, then the problem is that
+ 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
+ cannot find the /usr/local/share/sdcc/include directory
 \series default
  
 \series medium
-(see the
+(see the 
 \series default
- section 
+section 
 \begin_inset LatexCommand \ref{sub:Install-Trouble-shooting}
 
 \end_inset
@@ -5124,7 +5305,7 @@ status collapsed
 -print-search-dirs
 \series default
 
-\begin_inset LatexCommand \index{-\\/-print-search-dirs}
+\begin_inset LatexCommand \index{-\/-print-search-dirs}
 
 \end_inset
 
@@ -5302,9 +5483,9 @@ asx8051 - The assembler for 8051 type processors.
 \begin_layout Itemize
 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
@@ -5314,9 +5495,9 @@ aslink -The linker for 8051 type processors.
 \begin_layout Itemize
 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
@@ -5614,7 +5795,7 @@ status collapsed
 \end_inset
 
 -out-fmt-s19
-\begin_inset LatexCommand \index{-\\/-out-fmt-s19}
+\begin_inset LatexCommand \index{-\/-out-fmt-s19}
 
 \end_inset
 
@@ -5630,10 +5811,10 @@ objdump
 
 \end_inset
 
- or 
+ or
 \family sans
 \shape italic
-srecord
+ srecord
 \family default
 \shape default
 
@@ -5686,7 +5867,7 @@ status collapsed
 \end_inset
 
 -debug
-\begin_inset LatexCommand \index{-\\/-debug}
+\begin_inset LatexCommand \index{-\/-debug}
 
 \end_inset
 
@@ -5747,9 +5928,9 @@ status collapsed
 \end_inset
 
 -debug).
- The (Intel) 
+ The (Intel)
 \emph on
-a
+ a
 \emph default
 bsolute 
 \emph on
@@ -5850,19 +6031,19 @@ packihx
 \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)}
@@ -6042,9 +6223,9 @@ foo2.rel
 \newline
 Alternatively, 
 \emph on
-foomain.c
+foomain.c 
 \emph default
- can be separately compiled as well: 
+can be separately compiled as well: 
 \family sans
 \series bold
 
@@ -6066,7 +6247,10 @@ The file containing the
 \emph on
 main()
 \emph default
- function 
+ function
+\emph on
+\emph default
 \noun on
 must
 \noun default
@@ -6115,9 +6299,9 @@ Some reusable routines may be compiled into a library, see the documentation
 \emph on
 foomain.c
 \emph default
- and a library 
+ and a library
 \emph on
-foolib.lib
+ foolib.lib
 \emph default
  in the directory 
 \emph on
@@ -6137,9 +6321,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
@@ -6289,6 +6473,7 @@ sdcclib libint.lib _moduint.rel
 \family sans
 \series bold
 sdcclib libint.lib _mulint.rel
+\family default
 \series default
 
 \newline
@@ -6297,6 +6482,9 @@ sdcclib libint.lib _mulint.rel
 
 \begin_layout Standard
 Or, if you preffer:
+\family sans
+\series bold
+
 \newline
 
 \end_layout
@@ -6306,6 +6494,9 @@ Or, if you preffer:
 \family sans
 \series bold
 sdcclib libint.lib _divsint.rel _divuint.rel _modsint.rel _moduint.rel _mulint.rel
+\family default
+\series default
+
 \newline
 
 \end_layout
@@ -6315,6 +6506,9 @@ If the file already exists in the library, it will be replaced.
  If a list of .rel files is available, you can tell sdcclib to add those
  files to a library.
  For example, if the file 'myliblist.txt' contains
+\family sans
+\series bold
+
 \newline
 
 \end_layout
@@ -6352,6 +6546,7 @@ _moduint.rel
 \family sans
 \series bold
 _mulint.rel
+\family default
 \series default
 
 \newline
@@ -6359,7 +6554,10 @@ _mulint.rel
 \end_layout
 
 \begin_layout Standard
-Use 
+Use
+\family sans
+\series bold
+
 \newline
 
 \end_layout
@@ -6369,72 +6567,30 @@ Use
 \family sans
 \series bold
 sdcclib -l libint.lib myliblist.txt
-\newline
-
-\end_layout
-
-\begin_layout Standard
-Additionally, you can instruct sdcclib to compile the files before adding
- them to the library by setting environment variables SDCCLIB_CC
-\begin_inset LatexCommand \index{SDCCLIB_CC}
-
-\end_inset
-
- and/or SDCCLIB_AS
-\begin_inset LatexCommand \index{SDCCLIB_AS}
-
-\end_inset
+\family default
+\series default
 
-.
- For example:
 \newline
 
 \end_layout
 
 \begin_layout Standard
-
+Additionally, you can instruct sdcclib to compiles the files before adding
+ them to the library.
+ This is achieved using the environment variables SDCCLIB_CC and/or SDCCLIB_AS.
+ For example:
 \family sans
 \series bold
-set SDCCLIB_CC
-\begin_inset LatexCommand \index{SDCCLIB_CC}
-
-\end_inset
-
-=sdcc -
-\family default
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
 
+\newline
 
-\backslash
-/
 \end_layout
 
-\end_inset
-
-
-\family sans
--use-stdout -
-\family default
-
-\begin_inset ERT
-status collapsed
-
 \begin_layout Standard
 
-
-\backslash
-/
-\end_layout
-
-\end_inset
-
-
 \family sans
--model-small -c
+\series bold
+set SDCCLIB_CC=sdcc -c
 \end_layout
 
 \begin_layout Standard
@@ -6442,6 +6598,9 @@ status collapsed
 \family sans
 \series bold
 sdcclib -l libint.lib myliblist.txt
+\family default
+\series default
+
 \newline
 
 \end_layout
@@ -6601,7 +6760,7 @@ status collapsed
 \end_inset
 
 -debug
-\begin_inset LatexCommand \index{-\\/-debug}
+\begin_inset LatexCommand \index{-\/-debug}
 
 \end_inset
 
@@ -7014,10 +7173,12 @@ Preprocessor Options
 \end_inset
 
 
-\series default
 \size large
+\bar under
  
+\series default
 \size default
+\bar default
 Like `-M' but the output mentions only the user header files included with
  `#include 
 \begin_inset Quotes eld
@@ -7101,10 +7262,12 @@ file"'.
 \end_inset
 
 
-\series default
 \size large
+\bar under
  
+\series default
 \size default
+\bar default
 Like `-dD' except that the macro arguments and contents are omitted.
  Only `#define name' is included in the output.
 \end_layout
@@ -7131,11 +7294,10 @@ Like `-dD' except that the macro arguments and contents are omitted.
 
 \end_inset
 
-
-\series default
-\bar default
  
+\series default
 \size default
+\bar 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 
@@ -7250,12 +7412,12 @@ status collapsed
 
 \series bold
 -lib-path
-\begin_inset LatexCommand \index{-\\/-lib-path <path>}
+\begin_inset LatexCommand \index{-\/-lib-path <path>}
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{-L -\\/-lib-path}
+\begin_inset LatexCommand \index{-L -\/-lib-path}
 
 \end_inset
 
@@ -7294,7 +7456,7 @@ status collapsed
 -xram-loc
 \series default
 
-\begin_inset LatexCommand \index{-\\/-xram-loc <Value>}
+\begin_inset LatexCommand \index{-\/-xram-loc <Value>}
 
 \end_inset
 
@@ -7354,7 +7516,7 @@ status collapsed
 -code-loc
 \series default
 
-\begin_inset LatexCommand \index{-\\/-code-loc <Value>}
+\begin_inset LatexCommand \index{-\/-code-loc <Value>}
 
 \end_inset
 
@@ -7420,7 +7582,7 @@ status collapsed
 -stack-loc
 \series default
 
-\begin_inset LatexCommand \index{-\\/-stack-loc <Value>}
+\begin_inset LatexCommand \index{-\/-stack-loc <Value>}
 
 \end_inset
 
@@ -7485,7 +7647,7 @@ status collapsed
 \series default
 \InsetSpace ~
 
-\begin_inset LatexCommand \index{-\\/-pack-iram}
+\begin_inset LatexCommand \index{-\/-pack-iram}
 
 \end_inset
 
@@ -7509,7 +7671,7 @@ status collapsed
 \series default
 \InsetSpace ~
 
-\begin_inset LatexCommand \index{-\\/-no-pack-iram}
+\begin_inset LatexCommand \index{-\/-no-pack-iram}
 
 \end_inset
 
@@ -7536,7 +7698,7 @@ status collapsed
 -xstack-loc
 \series default
 
-\begin_inset LatexCommand \index{-\\/-xstack-loc <Value>}
+\begin_inset LatexCommand \index{-\/-xstack-loc <Value>}
 
 \end_inset
 
@@ -7606,7 +7768,7 @@ status collapsed
 -data-loc
 \series default
 
-\begin_inset LatexCommand \index{-\\/-data-loc <Value>}
+\begin_inset LatexCommand \index{-\/-data-loc <Value>}
 
 \end_inset
 
@@ -7685,7 +7847,7 @@ status collapsed
 -idata-loc
 \series default
 
-\begin_inset LatexCommand \index{-\\/-idata-loc <Value>}
+\begin_inset LatexCommand \index{-\/-idata-loc <Value>}
 
 \end_inset
 
@@ -7779,12 +7941,15 @@ status collapsed
 \end_inset
 
 -out-fmt-ihx
-\begin_inset LatexCommand \index{-\\/-out-fmt-ihx}
+\begin_inset LatexCommand \index{-\/-out-fmt-ihx}
 
 \end_inset
 
+
+\bar under
  
 \series default
+\bar default
 The linker output (final object code) is in Intel Hex format.
 \begin_inset LatexCommand \index{Intel hex format}
 
@@ -7817,12 +7982,15 @@ status collapsed
 \end_inset
 
 -out-fmt-s19
-\begin_inset LatexCommand \index{-\\/-out-fmt-s19}
+\begin_inset LatexCommand \index{-\/-out-fmt-s19}
 
 \end_inset
 
+
+\bar under
  
 \series default
+\bar default
 The linker output (final object code) is in Motorola S19 format
 \begin_inset LatexCommand \index{Motorola S19 format}
 
@@ -7850,17 +8018,20 @@ status collapsed
 \end_inset
 
 -out-fmt-elf
-\begin_inset LatexCommand \index{-\\/-out-fmt-s19}
+\begin_inset LatexCommand \index{-\/-out-fmt-s19}
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{HC08!Options!-\\/-out-fmt-elf}
+\begin_inset LatexCommand \index{HC08!Options!-\/-out-fmt-elf}
 
 \end_inset
 
+
+\bar under
  
 \series default
+\bar default
 The linker output (final object code) is in ELF format
 \begin_inset LatexCommand \index{ELF format}
 
@@ -7887,6 +8058,11 @@ linkOption[,linkOption]
 
 \end_inset
 
+
+\begin_inset LatexCommand \label{lyx:-Wl option}
+
+\end_inset
+
 ...
  Pass the linkOption to the linker.
  If a bootloader is used an option like 
@@ -7899,6 +8075,8 @@ linkOption[,linkOption]
 \end_inset
 
  would be typical to set the start of the code segment.
+ 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{sec:Pragmas}
 
@@ -7947,15 +8125,17 @@ status collapsed
 \end_inset
 
 -model-small
-\begin_inset LatexCommand \index{-\\/-model-small}
+\begin_inset LatexCommand \index{-\/-model-small}
 
 \end_inset
 
 
 \series default
 \size large
+\emph on
  
 \size default
+\emph default
 Generate code for Small Model programs, see section Memory Models for more
  details.
  This is the default model.
@@ -7979,7 +8159,7 @@ status collapsed
 \end_inset
 
 -model-medium
-\begin_inset LatexCommand \index{-\\/-model-medium}
+\begin_inset LatexCommand \index{-\/-model-medium}
 
 \end_inset
 
@@ -8010,7 +8190,7 @@ status collapsed
 \end_inset
 
 -model-large
-\begin_inset LatexCommand \index{-\\/-model-large}
+\begin_inset LatexCommand \index{-\/-model-large}
 
 \end_inset
 
@@ -8041,7 +8221,7 @@ status collapsed
 \end_inset
 
 -xstack
-\begin_inset LatexCommand \index{-\\/-xstack}
+\begin_inset LatexCommand \index{-\/-xstack}
 
 \end_inset
 
@@ -8084,7 +8264,7 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value>
-\begin_inset LatexCommand \index{-\\/-iram-size <Value>}
+\begin_inset LatexCommand \index{-\/-iram-size <Value>}
 
 \end_inset
 
@@ -8113,7 +8293,7 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value>
-\begin_inset LatexCommand \index{-\\/-xram-size <Value>}
+\begin_inset LatexCommand \index{-\/-xram-size <Value>}
 
 \end_inset
 
@@ -8142,7 +8322,7 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value>
-\begin_inset LatexCommand \index{-\\/-code-size <Value>}
+\begin_inset LatexCommand \index{-\/-code-size <Value>}
 
 \end_inset
 
@@ -8171,7 +8351,7 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value>
-\begin_inset LatexCommand \index{-\\/-stack-size <Value>}
+\begin_inset LatexCommand \index{-\/-stack-size <Value>}
 
 \end_inset
 
@@ -8199,7 +8379,7 @@ status collapsed
 \series default
 \InsetSpace ~
 
-\begin_inset LatexCommand \index{-\\/-pack-iram}
+\begin_inset LatexCommand \index{-\/-pack-iram}
 
 \end_inset
 
@@ -8229,7 +8409,7 @@ status collapsed
 \series default
 \InsetSpace ~
 
-\begin_inset LatexCommand \index{-\\/-no-pack-iram}
+\begin_inset LatexCommand \index{-\/-no-pack-iram}
 
 \end_inset
 
@@ -8257,7 +8437,7 @@ status collapsed
 \series default
 \InsetSpace ~
 
-\begin_inset LatexCommand \index{-\\/-acall-ajmp}
+\begin_inset LatexCommand \index{-\/-acall-ajmp}
 
 \end_inset
 
@@ -8265,7 +8445,7 @@ status collapsed
  acall/ajmp.
  Only use this option if your code is in the same 2k block of memory.
  You may need to use this option for some 8051 derivatives which lack the
- lcall/ljmp instructions.
+ lcall/ljmp instructions..
 \end_layout
 
 \begin_layout Standard
@@ -8309,14 +8489,16 @@ status collapsed
 -model-flat24
 \series default
 
-\begin_inset LatexCommand \index{DS390!Options!-\\/-model-flat24}
+\begin_inset LatexCommand \index{DS390!Options!-\/-model-flat24}
 
 \end_inset
 
 
 \size large
+\emph on
  
 \size default
+\emph 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 
@@ -8345,7 +8527,7 @@ status collapsed
 \end_inset
 
 -protect-sp-update
-\begin_inset LatexCommand \index{DS390!Options!-\\/-protect-sp-update}
+\begin_inset LatexCommand \index{DS390!Options!-\/-protect-sp-update}
 
 \end_inset
 
@@ -8374,7 +8556,7 @@ status collapsed
 -stack-10bit
 \series default
 
-\begin_inset LatexCommand \index{DS390!Options!-\\/-stack-10bit}
+\begin_inset LatexCommand \index{DS390!Options!-\/-stack-10bit}
 
 \end_inset
 
@@ -8413,7 +8595,7 @@ status collapsed
 \end_inset
 
 -stack-auto
-\begin_inset LatexCommand \index{-\\/-stack-auto}
+\begin_inset LatexCommand \index{-\/-stack-auto}
 
 \end_inset
 
@@ -8436,7 +8618,7 @@ status collapsed
 \end_inset
 
 -xstack
-\begin_inset LatexCommand \index{-\\/-xstack}
+\begin_inset LatexCommand \index{-\/-xstack}
 
 \end_inset
 
@@ -8510,7 +8692,7 @@ status collapsed
 \end_inset
 
 -stack-probe
-\begin_inset LatexCommand \index{DS390!Options!-\\/-stack-probe}
+\begin_inset LatexCommand \index{DS390!Options!-\/-stack-probe}
 
 \end_inset
 
@@ -8525,7 +8707,7 @@ status collapsed
 \series bold
 -
 \begin_inset ERT
-status collapsed
+status open
 
 \begin_layout Standard
 
@@ -8537,7 +8719,7 @@ status collapsed
 \end_inset
 
 -tini-libid
-\begin_inset LatexCommand \index{DS390!Options!-\\/-tini-libid}
+\begin_inset LatexCommand \index{DS390!Options!-\/-tini-libid}
 
 \end_inset
 
@@ -8565,7 +8747,7 @@ status collapsed
 \end_inset
 
 -use-accelerator
-\begin_inset LatexCommand \index{DS390!Options!-\\/-use-accelerator}
+\begin_inset LatexCommand \index{DS390!Options!-\/-use-accelerator}
 
 \end_inset
 
@@ -8616,14 +8798,16 @@ status collapsed
 -callee-saves-bc
 \series default
 
-\begin_inset LatexCommand \index{Z80!Options!-\\/-callee-saves-bc}
+\begin_inset LatexCommand \index{Z80!Options!-\/-callee-saves-bc}
 
 \end_inset
 
 
 \size large
+\emph on
  
 \size default
+\emph default
 Force a called function to always save BC.
 \end_layout
 
@@ -8647,7 +8831,7 @@ status collapsed
 -no-std-crt0
 \series default
 
-\begin_inset LatexCommand \index{Z80!Options!-\\/-no-std-crt0}
+\begin_inset LatexCommand \index{Z80!Options!-\/-no-std-crt0}
 
 \end_inset
 
@@ -8675,7 +8859,7 @@ status collapsed
 -portmode=
 \series default
 <Value>
-\begin_inset LatexCommand \index{Z80!Options!-\\/-portmode=<Value>}
+\begin_inset LatexCommand \index{Z80!Options!-\/-portmode=<Value>}
 
 \end_inset
 
@@ -8702,7 +8886,7 @@ status collapsed
 -asm=
 \series default
 <Value>
-\begin_inset LatexCommand \index{Z80!Options!-\\/-asm=<Value>}
+\begin_inset LatexCommand \index{Z80!Options!-\/-asm=<Value>}
 
 \end_inset
 
@@ -8730,7 +8914,7 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value>
-\begin_inset LatexCommand \index{Z80!Options!-\\/-codeseg <Value>}
+\begin_inset LatexCommand \index{Z80!Options!-\/-codeseg <Value>}
 
 \end_inset
 
@@ -8758,7 +8942,7 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value>
-\begin_inset LatexCommand \index{Z80!Options!-\\/-constseg <Value>}
+\begin_inset LatexCommand \index{Z80!Options!-\/-constseg <Value>}
 
 \end_inset
 
@@ -8807,20 +8991,50 @@ status collapsed
 -callee-saves-bc
 \series default
 
-\begin_inset LatexCommand \index{GBZ80!Options!-\\/-callee-saves-bc}
+\begin_inset LatexCommand \index{GBZ80!Options!-\/-callee-saves-bc}
 
 \end_inset
 
 
 \size large
+\emph on
  
 \size default
+\emph 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{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
@@ -8869,7 +9083,7 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value>
-\begin_inset LatexCommand \index{GBZ80!Options!-\\/-codeseg <Value>}
+\begin_inset LatexCommand \index{GBZ80!Options!-\/-codeseg <Value>}
 
 \end_inset
 
@@ -8897,7 +9111,7 @@ status collapsed
 \series default
 \InsetSpace ~
 <Value>
-\begin_inset LatexCommand \index{GBZ80!Options!-\\/-constseg <Value>}
+\begin_inset LatexCommand \index{GBZ80!Options!-\/-constseg <Value>}
 
 \end_inset
 
@@ -8943,7 +9157,7 @@ status collapsed
 \end_inset
 
 -nogcse
-\begin_inset LatexCommand \index{-\\/-nogcse}
+\begin_inset LatexCommand \index{-\/-nogcse}
 
 \end_inset
 
@@ -8969,7 +9183,7 @@ 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{\#pragma nogcse}
 
 \end_inset
 
@@ -8999,7 +9213,7 @@ status collapsed
 \end_inset
 
 -noinvariant
-\begin_inset LatexCommand \index{-\\/-noinvariant}
+\begin_inset LatexCommand \index{-\/-noinvariant}
 
 \end_inset
 
@@ -9016,7 +9230,7 @@ status collapsed
 .
  It is recommended that this option NOT be used, #pragma\InsetSpace ~
 noinvariant
-\begin_inset LatexCommand \index{\\#pragma noinvariant}
+\begin_inset LatexCommand \index{\#pragma noinvariant}
 
 \end_inset
 
@@ -9041,7 +9255,7 @@ status collapsed
 \end_inset
 
 -noinduction
-\begin_inset LatexCommand \index{-\\/-noinduction}
+\begin_inset LatexCommand \index{-\/-noinduction}
 
 \end_inset
 
@@ -9051,7 +9265,7 @@ 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{\#pragma noinduction}
 
 \end_inset
 
@@ -9076,15 +9290,17 @@ status collapsed
 \end_inset
 
 -nojtbound
-\begin_inset LatexCommand \index{-\\/-nojtbound}
+\begin_inset LatexCommand \index{-\/-nojtbound}
 
 \end_inset
 
 
 \size large
+\bar under
  
 \series default
 \size default
+\bar default
  Will not generate boundary condition check when switch statements
 \begin_inset LatexCommand \index{switch statement}
 
@@ -9100,7 +9316,7 @@ 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{\#pragma nojtbound}
 
 \end_inset
 
@@ -9126,7 +9342,7 @@ status collapsed
 \end_inset
 
 -noloopreverse
-\begin_inset LatexCommand \index{-\\/-noloopreverse}
+\begin_inset LatexCommand \index{-\/-noloopreverse}
 
 \end_inset
 
@@ -9163,7 +9379,7 @@ status collapsed
 nolabelopt
 \series default
  
-\begin_inset LatexCommand \index{-\\/-nolabelopt }
+\begin_inset LatexCommand \index{-\/-nolabelopt }
 
 \end_inset
 
@@ -9188,7 +9404,7 @@ status collapsed
 \end_inset
 
 -no-xinit-opt
-\begin_inset LatexCommand \index{-\\/-no-xinit-opt}
+\begin_inset LatexCommand \index{-\/-no-xinit-opt}
 
 \end_inset
 
@@ -9221,7 +9437,7 @@ status collapsed
 \end_inset
 
 -nooverlay
-\begin_inset LatexCommand \index{-\\/-nooverlay}
+\begin_inset LatexCommand \index{-\/-nooverlay}
 
 \end_inset
 
@@ -9249,7 +9465,7 @@ status collapsed
 \end_inset
 
 -no-peep
-\begin_inset LatexCommand \index{-\\/-no-peep}
+\begin_inset LatexCommand \index{-\/-no-peep}
 
 \end_inset
 
@@ -9278,7 +9494,7 @@ status collapsed
 -peep-file
 \series default
 
-\begin_inset LatexCommand \index{-\\/-peep-file}
+\begin_inset LatexCommand \index{-\/-peep-file}
 
 \end_inset
 
@@ -9312,7 +9528,7 @@ status collapsed
 \end_inset
 
 -peep-asm
-\begin_inset LatexCommand \index{-\\/-peep-asm}
+\begin_inset LatexCommand \index{-\/-peep-asm}
 
 \end_inset
 
@@ -9347,7 +9563,7 @@ status collapsed
 \end_inset
 
 -opt-code-speed
-\begin_inset LatexCommand \index{-\\/-opt-code-speed}
+\begin_inset LatexCommand \index{-\/-opt-code-speed}
 
 \end_inset
 
@@ -9375,7 +9591,7 @@ status collapsed
 \end_inset
 
 -opt-code-size
-\begin_inset LatexCommand \index{-\\/-opt-code-size}
+\begin_inset LatexCommand \index{-\/-opt-code-size}
 
 \end_inset
 
@@ -9420,12 +9636,12 @@ status collapsed
 \end_inset
 
 -compile-only
-\begin_inset LatexCommand \index{-\\/-compile-only}
+\begin_inset LatexCommand \index{-\/-compile-only}
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{-c -\\/-compile-only}
+\begin_inset LatexCommand \index{-c -\/-compile-only}
 
 \end_inset
 
@@ -9456,7 +9672,7 @@ status collapsed
 
 \series bold
 -c1mode
-\begin_inset LatexCommand \index{-\\/-c1mode}
+\begin_inset LatexCommand \index{-\/-c1mode}
 
 \end_inset
 
@@ -9492,13 +9708,17 @@ status collapsed
 
 \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
+
+\emph on
+\emph default
+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: 
@@ -9578,15 +9798,17 @@ status collapsed
 \end_inset
 
 -stack-auto
-\begin_inset LatexCommand \index{-\\/-stack-auto}
+\begin_inset LatexCommand \index{-\/-stack-auto}
 
 \end_inset
 
 
 \series default
 \size large
+\emph on
  
 \size default
+\emph default
 All functions in the source file will be compiled as 
 \emph on
 reentrant
@@ -9667,7 +9889,7 @@ status collapsed
 \end_inset
 
 -callee-saves
-\begin_inset LatexCommand \index{-\\/-callee-saves}
+\begin_inset LatexCommand \index{-\/-callee-saves}
 
 \end_inset
 
@@ -9728,7 +9950,7 @@ status collapsed
 -callee-saves option string.
  Also see #pragma\InsetSpace ~
 callee_saves 
-\begin_inset LatexCommand \index{\\#pragma callee\\_saves}
+\begin_inset LatexCommand \index{\#pragma callee\_saves}
 
 \end_inset
 
@@ -9758,13 +9980,17 @@ status collapsed
 \end_inset
 
 -all-callee-saves
-\begin_inset LatexCommand \index{-\\/-all-callee-saves}
+\begin_inset LatexCommand \index{-\/-all-callee-saves}
 
 \end_inset
 
-
+\series default
+Function of
+\series bold
 \series default
- Function of -
+-
 \begin_inset ERT
 status collapsed
 
@@ -9798,12 +10024,15 @@ status collapsed
 \end_inset
 
 -debug
-\begin_inset LatexCommand \index{-\\/-debug}
+\begin_inset LatexCommand \index{-\/-debug}
 
 \end_inset
 
+
+\bar under
  
 \series default
+\bar 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.
@@ -9826,10 +10055,12 @@ When this option is used the compiler will generate debug information.
 \end_inset
 
 
-\series default
 \size large
+\bar under
  
+\series default
 \size default
+\bar 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
@@ -9852,7 +10083,7 @@ status collapsed
 \end_inset
 
 -int-long-reent
-\begin_inset LatexCommand \index{-\\/-int-long-reent}
+\begin_inset LatexCommand \index{-\/-int-long-reent}
 
 \end_inset
 
@@ -9881,12 +10112,15 @@ status collapsed
 \end_inset
 
 -cyclomatic
-\begin_inset LatexCommand \index{-\\/-cyclomatic}
+\begin_inset LatexCommand \index{-\/-cyclomatic}
 
 \end_inset
 
+
+\bar under
  
 \series default
+\bar default
 This option will cause the compiler to generate an information message for
  each function in the source file.
  The message contains some 
@@ -9925,7 +10159,7 @@ status collapsed
 \end_inset
 
 -float-reent
-\begin_inset LatexCommand \index{-\\/-float-reent}
+\begin_inset LatexCommand \index{-\/-float-reent}
 
 \end_inset
 
@@ -9958,24 +10192,24 @@ status collapsed
 \end_inset
 
 -funsigned-char
-\begin_inset LatexCommand \index{-\\/-funsigned-char}
+\begin_inset LatexCommand \index{-\/-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 -
@@ -10019,7 +10253,7 @@ status collapsed
 \end_inset
 
 -main-return
-\begin_inset LatexCommand \index{-\\/-main-return}
+\begin_inset LatexCommand \index{-\/-main-return}
 
 \end_inset
 
@@ -10061,7 +10295,7 @@ status collapsed
 \end_inset
 
 -nostdinc
-\begin_inset LatexCommand \index{-\\/-nostdinc}
+\begin_inset LatexCommand \index{-\/-nostdinc}
 
 \end_inset
 
@@ -10089,7 +10323,7 @@ status collapsed
 \end_inset
 
 -nostdlib
-\begin_inset LatexCommand \index{-\\/-nostdlib}
+\begin_inset LatexCommand \index{-\/-nostdlib}
 
 \end_inset
 
@@ -10121,7 +10355,7 @@ status collapsed
 \end_inset
 
 -verbose
-\begin_inset LatexCommand \index{-\\/-verbose}
+\begin_inset LatexCommand \index{-\/-verbose}
 
 \end_inset
 
@@ -10162,7 +10396,7 @@ status collapsed
 \end_inset
 
 -no-c-code-in-asm
-\begin_inset LatexCommand \index{-\\/-no-c-code-in-asm}
+\begin_inset LatexCommand \index{-\/-no-c-code-in-asm}
 
 \end_inset
 
@@ -10190,7 +10424,7 @@ status collapsed
 \end_inset
 
 -fverbose-asm
-\begin_inset LatexCommand \index{-\\/-no-gen-comments}
+\begin_inset LatexCommand \index{-\/-no-gen-comments}
 
 \end_inset
 
@@ -10217,7 +10451,7 @@ status collapsed
 \end_inset
 
 -no-peep-comments
-\begin_inset LatexCommand \index{-\\/-no-peep-comments}
+\begin_inset LatexCommand \index{-\/-no-peep-comments}
 
 \end_inset
 
@@ -10261,7 +10495,7 @@ status collapsed
 \end_inset
 
 -i-code-in-asm
-\begin_inset LatexCommand \index{-\\/-i-code-in-asm}
+\begin_inset LatexCommand \index{-\/-i-code-in-asm}
 
 \end_inset
 
@@ -10294,7 +10528,7 @@ status collapsed
 \end_inset
 
 
-\begin_inset LatexCommand \index{-\\/-less-pedantic}
+\begin_inset LatexCommand \index{-\/-less-pedantic}
 
 \end_inset
 
@@ -10338,7 +10572,7 @@ status collapsed
 
 -disable-warning\InsetSpace ~
 <nnnn>
-\begin_inset LatexCommand \index{-\\/-disable-warning}
+\begin_inset LatexCommand \index{-\/-disable-warning}
 
 \end_inset
 
@@ -10358,6 +10592,33 @@ status collapsed
 \begin_layout Standard
 
 
+\backslash
+/
+\end_layout
+
+\end_inset
+
+-Werror
+\begin_inset LatexCommand \index{-\/-Werror}
+
+\end_inset
+
+
+\series default
+ Treat all warnings as errors.
+\end_layout
+
+\begin_layout List
+\labelwidthstring 00.00.0000
+
+\series bold
+-
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
 \backslash
 /
 \end_layout
@@ -10365,7 +10626,7 @@ status collapsed
 \end_inset
 
 -print-search-dirs
-\begin_inset LatexCommand \index{-\\/-print-search-dirs}
+\begin_inset LatexCommand \index{-\/-print-search-dirs}
 
 \end_inset
 
@@ -10392,7 +10653,7 @@ status collapsed
 \end_inset
 
 -vc
-\begin_inset LatexCommand \index{-\\/-vc}
+\begin_inset LatexCommand \index{-\/-vc}
 
 \end_inset
 
@@ -10432,7 +10693,7 @@ status collapsed
 \end_inset
 
 -use-stdout
-\begin_inset LatexCommand \index{-\\/-use-stdout}
+\begin_inset LatexCommand \index{-\/-use-stdout}
 
 \end_inset
 
@@ -10486,7 +10747,7 @@ status collapsed
 \end_inset
 
 -std-sdcc89
-\begin_inset LatexCommand \index{-\\/-std-sdcc89}
+\begin_inset LatexCommand \index{-\/-std-sdcc89}
 
 \end_inset
 
@@ -10514,7 +10775,7 @@ status collapsed
 \end_inset
 
 -std-c89
-\begin_inset LatexCommand \index{-\\/-std-c89}
+\begin_inset LatexCommand \index{-\/-std-c89}
 
 \end_inset
 
@@ -10542,7 +10803,7 @@ status collapsed
 \end_inset
 
 -std-sdcc99
-\begin_inset LatexCommand \index{-\\/-std-sdcc99}
+\begin_inset LatexCommand \index{-\/-std-sdcc99}
 
 \end_inset
 
@@ -10570,7 +10831,7 @@ status collapsed
 \end_inset
 
 -std-c99
-\begin_inset LatexCommand \index{-\\/-std-sdcc99}
+\begin_inset LatexCommand \index{-\/-std-sdcc99}
 
 \end_inset
 
@@ -10600,7 +10861,12 @@ status collapsed
 -codeseg
 \series default
 
-\begin_inset LatexCommand \index{-\\/-codeseg <Value>}
+\begin_inset LatexCommand \index{-\/-codeseg <Value>}
+
+\end_inset
+
+
+\begin_inset LatexCommand \label{lyx:-codeseg}
 
 \end_inset
 
@@ -10638,7 +10904,7 @@ status collapsed
 -constseg
 \series default
 
-\begin_inset LatexCommand \index{-\\/-constseg <Value>}
+\begin_inset LatexCommand \index{-\/-constseg <Value>}
 
 \end_inset
 
@@ -10674,7 +10940,7 @@ status collapsed
 \end_inset
 
 -fdollars-in-identifiers
-\begin_inset LatexCommand \index{-\\/-fdollars-in-identifiers}
+\begin_inset LatexCommand \index{-\/-fdollars-in-identifiers}
 
 \end_inset
 
@@ -10703,7 +10969,7 @@ status collapsed
 -more-pedantic
 \series default
 
-\begin_inset LatexCommand \index{-\\/-more-pedantic}
+\begin_inset LatexCommand \index{-\/-more-pedantic}
 
 \end_inset
 
@@ -10824,7 +11090,7 @@ status collapsed
 -short-is-8bits
 \series default
 
-\begin_inset LatexCommand \index{-\\/-short-is-8bits}
+\begin_inset LatexCommand \index{-\/-short-is-8bits}
 
 \end_inset
 
@@ -10912,7 +11178,7 @@ status collapsed
 \end_inset
 
 -dumpraw
-\begin_inset LatexCommand \index{-\\/-dumpraw}
+\begin_inset LatexCommand \index{-\/-dumpraw}
 
 \end_inset
 
@@ -10952,7 +11218,7 @@ status collapsed
 \end_inset
 
 -dumpgcse
-\begin_inset LatexCommand \index{-\\/-dumpgcse}
+\begin_inset LatexCommand \index{-\/-dumpgcse}
 
 \end_inset
 
@@ -10986,7 +11252,7 @@ status collapsed
 \end_inset
 
 -dumpdeadcode
-\begin_inset LatexCommand \index{-\\/-dumpdeadcode}
+\begin_inset LatexCommand \index{-\/-dumpdeadcode}
 
 \end_inset
 
@@ -11020,7 +11286,7 @@ status collapsed
 \end_inset
 
 -dumploop
-\begin_inset LatexCommand \index{-\\/-dumploop}
+\begin_inset LatexCommand \index{-\/-dumploop}
 
 \end_inset
 
@@ -11057,7 +11323,7 @@ status collapsed
 \end_inset
 
 -dumprange
-\begin_inset LatexCommand \index{-\\/-dumprange}
+\begin_inset LatexCommand \index{-\/-dumprange}
 
 \end_inset
 
@@ -11094,7 +11360,7 @@ status collapsed
 \end_inset
 
 -dumlrange
-\begin_inset LatexCommand \index{-\\/-dumlrange}
+\begin_inset LatexCommand \index{-\/-dumlrange}
 
 \end_inset
 
@@ -11126,12 +11392,15 @@ status collapsed
 \end_inset
 
 -dumpregassign
-\begin_inset LatexCommand \index{-\\/-dumpregassign}
+\begin_inset LatexCommand \index{-\/-dumpregassign}
 
 \end_inset
 
+
+\bar under
  
 \series default
+\bar default
 Will create a dump of iCodes, after register assignment
 \begin_inset LatexCommand \index{Register assignment}
 
@@ -11160,7 +11429,7 @@ status collapsed
 \end_inset
 
 -dumplrange
-\begin_inset LatexCommand \index{-\\/-dumplrange}
+\begin_inset LatexCommand \index{-\/-dumplrange}
 
 \end_inset
 
@@ -11187,15 +11456,17 @@ status collapsed
 \end_inset
 
 -dumpall
-\begin_inset LatexCommand \index{-\\/-dumpall}
+\begin_inset LatexCommand \index{-\/-dumpall}
 
 \end_inset
 
 
 \size large
+\bar under
  
 \series default
 \size default
+\bar default
 Will cause all the above mentioned dumps to be created.
 \end_layout
 
@@ -11252,7 +11523,7 @@ status collapsed
 -
 \series default
 use-stdout
-\begin_inset LatexCommand \index{-\\/-use-stdout}
+\begin_inset LatexCommand \index{-\/-use-stdout}
 
 \end_inset
 
@@ -11277,7 +11548,7 @@ status collapsed
 
 \emph default
 -vc
-\begin_inset LatexCommand \index{-\\/-vc}
+\begin_inset LatexCommand \index{-\/-vc}
 
 \end_inset
 
@@ -11359,7 +11630,7 @@ SDCC recognizes the following environment variables:
 
 \series bold
 SDCC_LEAVE_SIGNALS
-\begin_inset LatexCommand \index{SDCC\\_LEAVE\\_SIGNALS}
+\begin_inset LatexCommand \index{SDCC\_LEAVE\_SIGNALS}
 
 \end_inset
 
@@ -11400,7 +11671,7 @@ TMPDIR
 
 \series bold
 SDCC_HOME
-\begin_inset LatexCommand \index{SDCC\\_HOME}
+\begin_inset LatexCommand \index{SDCC\_HOME}
 
 \end_inset
 
@@ -11428,7 +11699,7 @@ SDCC_HOME
 
 \series bold
 SDCC_INCLUDE
-\begin_inset LatexCommand \index{SDCC\\_INCLUDE}
+\begin_inset LatexCommand \index{SDCC\_INCLUDE}
 
 \end_inset
 
@@ -11456,7 +11727,7 @@ Search Paths
 
 \series bold
 SDCC_LIB
-\begin_inset LatexCommand \index{SDCC\\_LIB}
+\begin_inset LatexCommand \index{SDCC\_LIB}
 
 \end_inset
 
@@ -11514,7 +11785,7 @@ data
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_data (mcs51, ds390 storage class)}
+\begin_inset LatexCommand \index{\_\_data (mcs51, ds390 storage class)}
 
 \end_inset
 
@@ -11524,7 +11795,7 @@ data
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_near (storage class)}
+\begin_inset LatexCommand \index{\_\_near (storage class)}
 
 \end_inset
 
@@ -11585,7 +11856,7 @@ xdata
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_xdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand \index{\_\_xdata (mcs51, ds390 storage class)}
 
 \end_inset
 
@@ -11595,7 +11866,7 @@ xdata
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_far (storage class)}
+\begin_inset LatexCommand \index{\_\_far (storage class)}
 
 \end_inset
 
@@ -11663,7 +11934,7 @@ idata
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_idata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand \index{\_\_idata (mcs51, ds390 storage class)}
 
 \end_inset
 
@@ -11732,7 +12003,7 @@ pdata
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_pdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand \index{\_\_pdata (mcs51, ds390 storage class)}
 
 \end_inset
 
@@ -11821,7 +12092,7 @@ status collapsed
 \end_inset
 
 -xstack
-\begin_inset LatexCommand \index{-\\/-xstack}
+\begin_inset LatexCommand \index{-\/-xstack}
 
 \end_inset
 
@@ -11836,7 +12107,7 @@ code
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_code}
+\begin_inset LatexCommand \index{\_\_code}
 
 \end_inset
 
@@ -11951,7 +12222,7 @@ bit
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_bit}
+\begin_inset LatexCommand \index{\_\_bit}
 
 \end_inset
 
@@ -12022,7 +12293,7 @@ sfr
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_sfr}
+\begin_inset LatexCommand \index{\_\_sfr}
 
 \end_inset
 
@@ -12032,7 +12303,7 @@ sfr
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_sfr16}
+\begin_inset LatexCommand \index{\_\_sfr16}
 
 \end_inset
 
@@ -12042,12 +12313,12 @@ sfr
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_sfr32}
+\begin_inset LatexCommand \index{\_\_sfr32}
 
 \end_inset
 
  / sbit
-\begin_inset LatexCommand \index{\\_\\_sbit}
+\begin_inset LatexCommand \index{\_\_sbit}
 
 \end_inset
 
@@ -12062,9 +12333,9 @@ sfr
 \begin_layout Standard
 Like the bit keyword, 
 \emph on
-sfr / sfr16 / sfr32 / sbit
+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
@@ -12097,7 +12368,7 @@ __sfr __at
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_at}
+\begin_inset LatexCommand \index{\_\_at}
 
 \end_inset
 
@@ -12125,7 +12396,7 @@ __sbit __at
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_at}
+\begin_inset LatexCommand \index{\_\_at}
 
 \end_inset
 
@@ -12145,9 +12416,9 @@ __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
@@ -12173,9 +12444,9 @@ 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 
 \emph on
-not
+not 
 \emph default
- compatible.
+compatible.
  Specifically the syntax 
 \family typewriter
 \InsetSpace ~
@@ -12202,10 +12473,8 @@ status collapsed
 \end_inset
 
 .
-
-\family default
  
-\series bold
+\family default
 Nevertheless it is possible to write header files
 \begin_inset LatexCommand \index{Header files}
 
@@ -12395,7 +12664,7 @@ idata
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_idata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand \index{\_\_idata (mcs51, ds390 storage class)}
 
 \end_inset
 
@@ -12410,7 +12679,7 @@ xdata
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_xdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand \index{\_\_xdata (mcs51, ds390 storage class)}
 
 \end_inset
 
@@ -12425,7 +12694,7 @@ data
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_data (mcs51, ds390 storage class)}
+\begin_inset LatexCommand \index{\_\_data (mcs51, ds390 storage class)}
 
 \end_inset
 
@@ -12464,7 +12733,7 @@ using
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_using (mcs51, ds390 register bank)}
+\begin_inset LatexCommand \index{\_\_using (mcs51, ds390 register bank)}
 
 \end_inset
 
@@ -12476,7 +12745,7 @@ using
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_interrupt}
+\begin_inset LatexCommand \index{\_\_interrupt}
 
 \end_inset
 
@@ -12520,7 +12789,7 @@ status collapsed
 \end_inset
 
 -data-loc
-\begin_inset LatexCommand \index{-\\/-data-loc <Value>}
+\begin_inset LatexCommand \index{-\/-data-loc <Value>}
 
 \end_inset
 
@@ -12542,7 +12811,7 @@ status collapsed
 \end_inset
 
 -iram-size
-\begin_inset LatexCommand \index{-\\/-iram-size <Value>}
+\begin_inset LatexCommand \index{-\/-iram-size <Value>}
 
 \end_inset
 
@@ -12577,7 +12846,7 @@ status collapsed
 \end_inset
 
 -stack-loc
-\begin_inset LatexCommand \index{-\\/-stack-loc <Value>}
+\begin_inset LatexCommand \index{-\/-stack-loc <Value>}
 
 \end_inset
 
@@ -12603,7 +12872,7 @@ status collapsed
 \end_inset
 
 -xdata-loc
-\begin_inset LatexCommand \index{-\\/-xdata-loc<Value>}
+\begin_inset LatexCommand \index{-\/-xdata-loc<Value>}
 
 \end_inset
 
@@ -12625,7 +12894,7 @@ status collapsed
 \end_inset
 
 -xram-size
-\begin_inset LatexCommand \index{-\\/-xram-size <Value>}
+\begin_inset LatexCommand \index{-\/-xram-size <Value>}
 
 \end_inset
 
@@ -12644,7 +12913,7 @@ status collapsed
 \end_inset
 
 -code-loc
-\begin_inset LatexCommand \index{-\\/-code-loc <Value>}
+\begin_inset LatexCommand \index{-\/-code-loc <Value>}
 
 \end_inset
 
@@ -12662,7 +12931,7 @@ status collapsed
 \end_inset
 
 -code-size
-\begin_inset LatexCommand \index{-\\/-code-size <Value>}
+\begin_inset LatexCommand \index{-\/-code-size <Value>}
 
 \end_inset
 
@@ -12713,7 +12982,7 @@ sfr
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_sfr}
+\begin_inset LatexCommand \index{\_\_sfr}
 
 \end_inset
 
@@ -12793,7 +13062,7 @@ banked sfr
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_sfr}
+\begin_inset LatexCommand \index{\_\_sfr}
 
 \end_inset
 
@@ -12817,7 +13086,7 @@ sfr banked at
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_at}
+\begin_inset LatexCommand \index{\_\_at}
 
 \end_inset
 
@@ -12860,7 +13129,7 @@ sfr
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_sfr}
+\begin_inset LatexCommand \index{\_\_sfr}
 
 \end_inset
 
@@ -12892,13 +13161,13 @@ status collapsed
 \end_inset
 
 -portmode
-\begin_inset LatexCommand \index{Z180!Options!-\\/-portmode}
+\begin_inset LatexCommand \index{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{Z180!Pragmas!\#pragma portmode}
 
 \end_inset
 
@@ -12935,7 +13204,7 @@ data
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_data (hc08 storage class)}
+\begin_inset LatexCommand \index{\_\_data (hc08 storage class)}
 
 \end_inset
 
@@ -12960,7 +13229,7 @@ xdata
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_xdata (hc08 storage class)}
+\begin_inset LatexCommand \index{\_\_xdata (hc08 storage class)}
 
 \end_inset
 
@@ -12976,6 +13245,31 @@ The xdata storage class declares a variable that can reside anywhere in
 \end_inset
 
 
+\end_layout
+
+\begin_layout Section
+Other SDCC language extensions
+\begin_inset LatexCommand \index{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
+
+
 \end_layout
 
 \begin_layout Section
@@ -12996,7 +13290,7 @@ at
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_at}
+\begin_inset LatexCommand \index{\_\_at}
 
 \end_inset
 
@@ -13014,7 +13308,7 @@ xdata
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_xdata (mcs51, ds390 storage class)}
+\begin_inset LatexCommand \index{\_\_xdata (mcs51, ds390 storage class)}
 
 \end_inset
 
@@ -13024,7 +13318,7 @@ xdata
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_at}
+\begin_inset LatexCommand \index{\_\_at}
 
 \end_inset
 
@@ -13367,7 +13661,7 @@ __bit __at
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_at}
+\begin_inset LatexCommand \index{\_\_at}
 
 \end_inset
 
@@ -13487,9 +13781,9 @@ They can be placed on the stack
 
 \end_inset
 
- by using the 
+ by using the
 \emph on
--
+ -
 \begin_inset ERT
 status collapsed
 
@@ -13503,7 +13797,7 @@ status collapsed
 \end_inset
 
 -stack-auto
-\begin_inset LatexCommand \index{-\\/-stack-auto}
+\begin_inset LatexCommand \index{-\/-stack-auto}
 
 \end_inset
 
@@ -13515,7 +13809,7 @@ status collapsed
 stackauto
 \emph default
 
-\begin_inset LatexCommand \index{\\#pragma stackauto}
+\begin_inset LatexCommand \index{\#pragma stackauto}
 
 \end_inset
 
@@ -13551,11 +13845,11 @@ unsigned char foo(char i) __reentrant
 \begin_layout Standard
 Since stack space on 8051 is limited, the 
 \emph on
-reentrant
+reentrant 
 \emph default
- keyword or the 
+keyword or the
 \emph on
--
+ -
 \begin_inset ERT
 status collapsed
 
 \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 
@@ -13767,7 +14061,7 @@ status collapsed
 
  should be preceded by a #pragma\InsetSpace ~
 nooverlay
-\begin_inset LatexCommand \index{\\#pragma nooverlay}
+\begin_inset LatexCommand \index{\#pragma nooverlay}
 
 \end_inset
 
@@ -13805,7 +14099,7 @@ tion
 #pragma save 
 \newline
 #pragma nooverlay
-\begin_inset LatexCommand \index{\\#pragma nooverlay}
+\begin_inset LatexCommand \index{\#pragma nooverlay}
 
 \end_inset
 
@@ -13936,7 +14230,7 @@ interrupt
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_interrupt}
+\begin_inset LatexCommand \index{\_\_interrupt}
 
 \end_inset
 
@@ -13965,7 +14259,7 @@ using
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_using (mcs51, ds390 register bank)}
+\begin_inset LatexCommand \index{\_\_using (mcs51, ds390 register bank)}
 
 \end_inset
 
@@ -14173,9 +14467,9 @@ A special note here, int (16 bit) and long (32 bit) integer division
  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
 
@@ -14189,7 +14483,7 @@ status collapsed
 \end_inset
 
 -stack-auto
-\begin_inset LatexCommand \index{-\\/-stack-auto}
+\begin_inset LatexCommand \index{-\/-stack-auto}
 
 \end_inset
 
@@ -14213,7 +14507,7 @@ status collapsed
 -int-long-reent
 \emph default
 
-\begin_inset LatexCommand \index{-\\/-int-long-reent}
+\begin_inset LatexCommand \index{-\/-int-long-reent}
 
 \end_inset
 
@@ -14242,13 +14536,9 @@ status collapsed
  See f.e.
  the cast 
 \family typewriter
-\series bold
 (unsigned char)(tail-1)
 \family default
-\series default
-\series bold
-within the if clause in section 
+ within the if clause in section 
 \begin_inset LatexCommand \ref{sub:A-Step-by Assembler Introduction}
 
 \end_inset
@@ -14262,7 +14552,7 @@ 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{\#pragma nooverlay}
 
 \end_inset
 
@@ -14271,9 +14561,9 @@ 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
@@ -14605,7 +14895,7 @@ using
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_using (mcs51, ds390 register bank)}
+\begin_inset LatexCommand \index{\_\_using (mcs51, ds390 register bank)}
 
 \end_inset
 
@@ -14779,7 +15069,7 @@ int foo () __critical
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_critical}
+\begin_inset LatexCommand \index{\_\_critical}
 
 \end_inset
 
@@ -14996,7 +15286,7 @@ 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{\_asm}
 
 \end_inset
 
@@ -15005,7 +15295,7 @@ On other architectures which have seperate opcodes for enabling and disabling
 cli\InsetSpace ~
 \InsetSpace ~
 _endasm
-\begin_inset LatexCommand \index{\\_endasm}
+\begin_inset LatexCommand \index{\_endasm}
 
 \end_inset
 
@@ -15114,7 +15404,15 @@ Some architectures (mcs51/ds390) have an atomic
 
 \end_inset
 
- bit test and clear instruction.
+ bit test and
+\emph on
+\emph default
+clear
+\emph on
+\emph default
+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
@@ -15215,7 +15513,7 @@ using
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_using (mcs51, ds390 register bank)}
+\begin_inset LatexCommand \index{\_\_using (mcs51, ds390 register bank)}
 
 \end_inset
 
@@ -15270,19 +15568,19 @@ possible exception: if a function is called ONLY from 'interrupt' functions
 \newline
 
 \emph on
-(pending: Note, nowadays the
+(pending: Note, nowadays the 
 \emph default
- using 
+using
 \emph on
-attribute has an effect on
+ attribute has an effect on
 \emph default
  
 \emph on
-the generated code for a
+the generated code for a 
 \emph default
- non-interrupt 
+non-interrupt
 \emph on
-function
+ function
 \emph default
 .
 \emph on
@@ -15886,6 +16184,17 @@ mov a,r0
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
+orl a,#(l_PSEG
+ >> 8)
+\newline
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
 jz 00006$
 \newline
 \InsetSpace ~
@@ -15896,8 +16205,7 @@ jz 00006$
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-mov
- r1,#s_PSEG
+mov r1,#s_PSEG
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -15920,7 +16228,8 @@ mov __XPAGE,#(s_PSEG >> 8)
 clr a
 \newline
 00005$:\InsetSpace ~
-movx @r1,a
+movx
+ @r1,a
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -15942,8 +16251,7 @@ inc r1
 \InsetSpace ~
 djnz r0,00005$
 \newline
-0
-0006$:
+00006$:
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -15973,7 +16281,8 @@ mov a,r0
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-orl a,#(l_XSEG >> 8)
+orl a,#(l_XSEG >>
+ 8)
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -15993,8 +16302,7 @@ jz 00008$
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-mov r1,#((l_XSEG
- + 255) >> 8)
+mov r1,#((l_XSEG + 255) >> 8)
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -16017,7 +16325,8 @@ mov dptr,#s_XSEG
 clr a
 \newline
 00007$:\InsetSpace ~
-movx @dptr,a
+movx
+ @dptr,a
 \newline
 \InsetSpace ~
 \InsetSpace ~
@@ -16047,8 +16356,7 @@ djnz r0,00007$
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-djnz
- r1,00007$
+djnz r1,00007$
 \newline
 00008$:
 \end_layout
@@ -16215,13 +16523,16 @@ sjmp .
 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{\_sdcc\_external\_startup()}
 
 \end_inset
 
 
+\series bold
 \emph default
- at the start of the CODE area.
+\series default
+at the start of the CODE area.
  This routine is also in the runtime library
 \begin_inset LatexCommand \index{Runtime library}
 
@@ -16273,7 +16584,7 @@ status collapsed
 \end_inset
 
 -iram-size
-\begin_inset LatexCommand \index{-\\/-iram-size <Value>}
+\begin_inset LatexCommand \index{-\/-iram-size <Value>}
 
 \end_inset
 
@@ -16306,7 +16617,7 @@ status collapsed
 opt
 \emph default
 
-\begin_inset LatexCommand \index{-\\/-no-xinit-opt}
+\begin_inset LatexCommand \index{-\/-no-xinit-opt}
 
 \end_inset
 
@@ -16328,7 +16639,7 @@ status collapsed
 -main-return
 \emph default
 
-\begin_inset LatexCommand \index{-\\/-main-return}
+\begin_inset LatexCommand \index{-\/-main-return}
 
 \end_inset
 
@@ -16338,6 +16649,75 @@ status collapsed
 \end_inset
 
  about MCS51-variants.
+\newline
+
+\end_layout
+
+\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 
+\emph on
+_sdcc_external_startup()
+\emph default
+ in 
+\emph on
+crtstart.asm
+\emph default
+ 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 
+\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}
+
+\end_inset
+
+) into the source directory, adapt it there, then assemble it with 
+\emph on
+asx8051 -plosgff
+\begin_inset Foot
+status open
+
+\begin_layout Standard
+\begin_inset Quotes sld
+\end_inset
+
+-plosgff
+\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 }
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+ crtstart.asm
+\emph default
+ and when linking your project explicitely specify 
+\emph on
+crtstart.rel
+\emph default
+.
+ As a bonus a listing of the relocated object file 
+\emph on
+crtstart.rst
+\emph default
+ is generated.
+\end_layout
+
+\begin_layout Standard
 \begin_inset VSpace bigskip
 \end_inset
 
@@ -16397,7 +16777,7 @@ status collapsed
 -no-std-crt0
 \emph default
 
-\begin_inset LatexCommand \index{-\\/-no-std-crt0}
+\begin_inset LatexCommand \index{-\/-no-std-crt0}
 
 \end_inset
 
@@ -16445,7 +16825,7 @@ unsigned char __far
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_far (storage class)}
+\begin_inset LatexCommand \index{\_\_far (storage class)}
 
 \end_inset
 
@@ -16455,7 +16835,7 @@ unsigned char __far
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_at}
+\begin_inset LatexCommand \index{\_\_at}
 
 \end_inset
 
@@ -16541,16 +16921,10 @@ section
 \end_inset
 
  about
-\family default
-\family typewriter
 \series bold
-volatile
-\family default
+ volatile
 \series default
-\family typewriter
-*/
+ */
 \newline
 
 \newline
@@ -16564,17 +16938,11 @@ void to_buffer( unsigned char c )
 \InsetSpace ~
 if( head != (unsigned char)(tail-1)
  )\InsetSpace ~
-/* cast
-\family default
-\family typewriter
+/* cast 
 \series bold
 needed
-\family default
 \series default
-\family typewriter
-to avoid promotion
+ to avoid promotion
 \begin_inset LatexCommand \index{promotion to signed int}
 
 \end_inset
@@ -16699,12 +17067,12 @@ void to_buffer_asm(
 \InsetSpace ~
 \InsetSpace ~
 _asm
-\begin_inset LatexCommand \index{\\_asm}
+\begin_inset LatexCommand \index{\_asm}
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_asm}
+\begin_inset LatexCommand \index{\_\_asm}
 
 \end_inset
 
@@ -16719,17 +17087,11 @@ mov\InsetSpace ~
 r2,dpl 
 \newline
 ;buffer.c if( head != (unsigned char)(tail-1) ) \InsetSpace ~
-/* cast
-\family default
-\family typewriter
+/* cast 
 \series bold
 needed
-\family default
 \series default
-\family typewriter
-to avoid promotion
+ to avoid promotion
 \begin_inset LatexCommand \index{promotion to signed int}
 
 \end_inset
@@ -16855,12 +17217,12 @@ ret
 \InsetSpace ~
 \InsetSpace ~
 _endasm
-\begin_inset LatexCommand \index{\\_endasm}
+\begin_inset LatexCommand \index{\_endasm}
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_endasm}
+\begin_inset LatexCommand \index{\_\_endasm}
 
 \end_inset
 
@@ -16938,12 +17300,12 @@ c; // to avoid warning: unreferenced function argument
 \InsetSpace ~
 \InsetSpace ~
 _asm
-\begin_inset LatexCommand \index{\\_asm}
+\begin_inset LatexCommand \index{\_asm}
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_asm}
+\begin_inset LatexCommand \index{\_\_asm}
 
 \end_inset
 
@@ -17136,12 +17498,12 @@ t_b_end$:
 \InsetSpace ~
 \InsetSpace ~
 _endasm
-\begin_inset LatexCommand \index{\\_endasm}
+\begin_inset LatexCommand \index{\_endasm}
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_endasm}
+\begin_inset LatexCommand \index{\_\_endasm}
 
 \end_inset
 
@@ -17179,12 +17541,12 @@ The inline assembler code can contain any valid code understood by the assembler
 The compiler does not do any validation of the code within the 
 \family typewriter
 _asm
-\begin_inset LatexCommand \index{\\_asm}
+\begin_inset LatexCommand \index{\_asm}
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_asm}
+\begin_inset LatexCommand \index{\_\_asm}
 
 \end_inset
 
@@ -17192,12 +17554,12 @@ _asm
  _endasm
 \size footnotesize
 
-\begin_inset LatexCommand \index{\\_endasm}
+\begin_inset LatexCommand \index{\_endasm}
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_endasm}
+\begin_inset LatexCommand \index{\_\_endasm}
 
 \end_inset
 
@@ -17235,7 +17597,7 @@ status collapsed
 -
 \emph on
 peep-asm
-\begin_inset LatexCommand \index{-\\/-peep-asm}
+\begin_inset LatexCommand \index{-\/-peep-asm}
 
 \end_inset
 
@@ -17275,19 +17637,19 @@ Naked Functions
 A special keyword may be associated with a function declaring it as 
 \emph on
 _naked
-\begin_inset LatexCommand \index{\\_naked}
+\begin_inset LatexCommand \index{\_naked}
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_naked}
+\begin_inset LatexCommand \index{\_\_naked}
 
 \end_inset
 
 .
-
 \emph default
- The 
+The 
 \emph on
 _naked
 \emph default
@@ -17334,7 +17696,7 @@ void simpleInterrupt(void) __interrupt
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_interrupt}
+\begin_inset LatexCommand \index{\_\_interrupt}
 
 \end_inset
 
@@ -17361,12 +17723,12 @@ void nakedInterrupt(void) __interrupt (2) __naked
 \InsetSpace ~
 \InsetSpace ~
 _asm
-\begin_inset LatexCommand \index{\\_asm}
+\begin_inset LatexCommand \index{\_asm}
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_asm}
+\begin_inset LatexCommand \index{\_\_asm}
 
 \end_inset
 
@@ -17403,12 +17765,12 @@ reti\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 _endasm
-\begin_inset LatexCommand \index{\\_endasm}
+\begin_inset LatexCommand \index{\_endasm}
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_endasm}
+\begin_inset LatexCommand \index{\_\_endasm}
 
 \end_inset
 
@@ -17424,29 +17786,17 @@ For an 8051 target, the generated simpleInterrupt looks like:
 \begin_layout Verse
 
 \family typewriter
-Note, this is an
-\family default
-\family typewriter
+Note, this is an 
 \emph on
 outdated
-\family default
 \emph default
-\family typewriter
-example, recent versions of SDCC generate
+ example, recent versions of SDCC generate
 \newline
-the
-\family default
-\family typewriter
+the 
 \emph on
 same
-\family default
 \emph default
-\family typewriter
-code for simpleInterrupt() and nakedInterrupt()!
+ code for simpleInterrupt() and nakedInterrupt()!
 \newline
 
 \newline
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
-pus
-h\InsetSpace ~
+pu
+sh\InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
@@ -17628,7 +17978,7 @@ reti\InsetSpace ~
 
 \begin_layout Standard
 The related directive #pragma exclude
-\begin_inset LatexCommand \index{\\#pragma exclude}
+\begin_inset LatexCommand \index{\#pragma exclude}
 
 \end_inset
 
@@ -17704,12 +18054,12 @@ The numeric part of local labels does not need to have 5 digits (although
 
 \family typewriter
 _asm
-\begin_inset LatexCommand \index{\\_asm}
+\begin_inset LatexCommand \index{\_asm}
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_asm}
+\begin_inset LatexCommand \index{\_\_asm}
 
 \end_inset
 
@@ -17739,12 +18089,12 @@ djnz\InsetSpace ~
 b,00001$ 
 \newline
 _endasm
-\begin_inset LatexCommand \index{\\_endasm}
+\begin_inset LatexCommand \index{\_endasm}
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_endasm}
+\begin_inset LatexCommand \index{\_\_endasm}
 
 \end_inset
 
@@ -17844,12 +18194,12 @@ _asm
 \InsetSpace ~
 \InsetSpace ~
 _endasm
-\begin_inset LatexCommand \index{\\_endasm}
+\begin_inset LatexCommand \index{\_endasm}
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_endasm}
+\begin_inset LatexCommand \index{\_\_endasm}
 
 \end_inset
 
@@ -17907,11 +18257,11 @@ DPL, DPH
 
 \end_inset
 
-
 \emph default
- and 
+and
 \emph on
-ACC
+ ACC
 \begin_inset LatexCommand \index{ACC (mcs51, ds390 register)}
 
 \end_inset
@@ -17958,9 +18308,9 @@ DPH
 \emph on
 DPL
 \emph default
-, 
+,
 \emph on
-B
+ B
 \emph default
  and 
 \emph on
@@ -18066,7 +18416,7 @@ status collapsed
 \end_inset
 
 -callee-saves
-\begin_inset LatexCommand \index{-\\/-callee-saves}
+\begin_inset LatexCommand \index{-\/-callee-saves}
 
 \end_inset
 
@@ -18914,7 +19264,7 @@ status collapsed
 \end_inset
 
 -stack-auto
-\begin_inset LatexCommand \index{-\\/-stack-auto}
+\begin_inset LatexCommand \index{-\/-stack-auto}
 
 \end_inset
 
@@ -18936,7 +19286,7 @@ status collapsed
 \end_inset
 
 -int-long-reent
-\begin_inset LatexCommand \index{-\\/-int-long-reent}
+\begin_inset LatexCommand \index{-\/-int-long-reent}
 
 \end_inset
 
@@ -19704,9 +20054,9 @@ getchar()
 
 \end_inset
 
-
 \family default
- and 
+and 
 \family typewriter
 putchar()
 \begin_inset LatexCommand \index{putchar()}
@@ -19785,18 +20135,18 @@ printf()
 \end_layout
 
 \begin_layout Standard
-The default 
+The default
 \family typewriter
-printf()
+ printf()
 \begin_inset LatexCommand \index{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 
@@ -19815,16 +20165,16 @@ status collapsed
 \end_inset
 
 DUSE_FLOATS=1
-\begin_inset LatexCommand \index{USE\\_FLOATS}
+\begin_inset LatexCommand \index{USE\_FLOATS}
 
 \end_inset
 
 
 \emph default
  on the command line.
- Use 
+ Use
 \emph on
--
+ -
 \begin_inset ERT
 status collapsed
 
@@ -19838,7 +20188,7 @@ status collapsed
 \end_inset
 
 -model-large
-\begin_inset LatexCommand \index{-\\/-model-large}
+\begin_inset LatexCommand \index{-\/-model-large}
 
 \end_inset
 
@@ -19851,7 +20201,7 @@ status collapsed
 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{printf\_small()}
 
 \end_inset
 
@@ -19861,15 +20211,15 @@ printf_small()
 \emph on
 instead
 \emph default
- of 
+ of
 \family typewriter
-printf().
+ printf().
 
 \family default
  For the mcs51 there additionally are assembly versions 
 \family typewriter
 printf_tiny()
-\begin_inset LatexCommand \index{printf\\_tiny() (mcs51)}
+\begin_inset LatexCommand \index{printf\_tiny() (mcs51)}
 
 \end_inset
 
@@ -19878,16 +20228,16 @@ printf_tiny()
  (subset of printf using less than 270 bytes) and 
 \family typewriter
 printf_fast()
-\begin_inset LatexCommand \index{printf\\_fast() (mcs51)}
+\begin_inset LatexCommand \index{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{printf\_fast\_f() (mcs51)}
 
 \end_inset
 
@@ -21284,7 +21634,7 @@ status collapsed
 \end_inset
 
 -xstack option
-\begin_inset LatexCommand \index{-\\/-xstack}
+\begin_inset LatexCommand \index{-\/-xstack}
 
 \end_inset
 
@@ -21331,7 +21681,7 @@ status collapsed
 \end_inset
 
 -stack-auto
-\begin_inset LatexCommand \index{-\\/-stack-auto}
+\begin_inset LatexCommand \index{-\/-stack-auto}
 
 \end_inset
 
@@ -21498,7 +21848,7 @@ SDCC supports the
 save
 \series default
 
-\begin_inset LatexCommand \index{\\#pragma save}
+\begin_inset LatexCommand \index{\#pragma save}
 
 \end_inset
 
@@ -21513,7 +21863,7 @@ restore.
 restore
 \series default
 
-\begin_inset LatexCommand \index{\\#pragma restore}
+\begin_inset LatexCommand \index{\#pragma restore}
 
 \end_inset
 
@@ -21533,7 +21883,7 @@ save.
 callee_saves
 \series default
 
-\begin_inset LatexCommand \index{\\#pragma callee\\_saves}
+\begin_inset LatexCommand \index{\#pragma callee\_saves}
 
 \end_inset
 
@@ -21583,7 +21933,7 @@ status collapsed
 
 ), the function names specified in #pragma\InsetSpace ~
 callee_saves
-\begin_inset LatexCommand \index{\\#pragma callee\\_saves}
+\begin_inset LatexCommand \index{\#pragma callee\_saves}
 
 \end_inset
 
@@ -21596,7 +21946,7 @@ callee_saves
 exclude
 \series default
 
-\begin_inset LatexCommand \index{\\#pragma exclude}
+\begin_inset LatexCommand \index{\#pragma exclude}
 
 \end_inset
 
@@ -21629,18 +21979,18 @@ 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{\#pragma exclude}
 
 \end_inset
 
 .
  See also the related keyword _naked
-\begin_inset LatexCommand \index{\\_naked}
+\begin_inset LatexCommand \index{\_naked}
 
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\_\\_naked}
+\begin_inset LatexCommand \index{\_\_naked}
 
 \end_inset
 
@@ -21658,7 +22008,7 @@ less_pedantic
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\#pragma less\\_pedantic}
+\begin_inset LatexCommand \index{\#pragma less\_pedantic}
 
 \end_inset
 
@@ -21779,7 +22129,7 @@ function '[function name]', # edges [number] , # nodes [number] , cyclomatic
 disable_warning
 \series default
  <nnnn>
-\begin_inset LatexCommand \index{\\#pragma disable\\_warning}
+\begin_inset LatexCommand \index{\#pragma disable\_warning}
 
 \end_inset
 
@@ -21792,7 +22142,7 @@ disable_warning
 nogcse
 \series default
 
-\begin_inset LatexCommand \index{\\#pragma nogcse}
+\begin_inset LatexCommand \index{\#pragma nogcse}
 
 \end_inset
 
@@ -21805,7 +22155,7 @@ nogcse
 noinduction
 \series default
 
-\begin_inset LatexCommand \index{\\#pragma noinduction}
+\begin_inset LatexCommand \index{\#pragma noinduction}
 
 \end_inset
 
@@ -21818,7 +22168,7 @@ noinduction
 noinvariant
 \series default
 
-\begin_inset LatexCommand \index{\\#pragma noinvariant}
+\begin_inset LatexCommand \index{\#pragma noinvariant}
 
 \end_inset
 
@@ -21837,7 +22187,7 @@ noinvariant
 noiv
 \series default
 
-\begin_inset LatexCommand \index{\\#pragma noiv}
+\begin_inset LatexCommand \index{\#pragma noiv}
 
 \end_inset
 
@@ -21872,7 +22222,7 @@ about interrupts.
 nojtbound
 \series default
 
-\begin_inset LatexCommand \index{\\#pragma nojtbound}
+\begin_inset LatexCommand \index{\#pragma nojtbound}
 
 \end_inset
 
@@ -21892,7 +22242,7 @@ nojtbound
 noloopreverse
 \series default
 
-\begin_inset LatexCommand \index{\\#pragma noloopreverse}
+\begin_inset LatexCommand \index{\#pragma noloopreverse}
 
 \end_inset
 
@@ -21905,7 +22255,7 @@ noloopreverse
 nooverlay
 \series default
 
-\begin_inset LatexCommand \index{\\#pragma nooverlay}
+\begin_inset LatexCommand \index{\#pragma nooverlay}
 
 \end_inset
 
@@ -21919,7 +22269,7 @@ nooverlay
 stackauto
 \series default
 
-\begin_inset LatexCommand \index{\\#pragma stackauto}
+\begin_inset LatexCommand \index{\#pragma stackauto}
 
 \end_inset
 
@@ -21937,7 +22287,7 @@ status collapsed
 \end_inset
 
 -stack-auto
-\begin_inset LatexCommand \index{-\\/-stack-auto}
+\begin_inset LatexCommand \index{-\/-stack-auto}
 
 \end_inset
 
@@ -21955,7 +22305,7 @@ status collapsed
 opt_code_speed
 \series default
  
-\begin_inset LatexCommand \index{\\#pragma opt\\_code\\_speed}
+\begin_inset LatexCommand \index{\#pragma opt\_code\_speed}
 
 \end_inset
 
@@ -21970,7 +22320,7 @@ opt_code_speed
 opt_code_size
 \series default
  
-\begin_inset LatexCommand \index{\\#pragma opt\\_code\\_size}
+\begin_inset LatexCommand \index{\#pragma opt\_code\_size}
 
 \end_inset
 
@@ -21985,7 +22335,7 @@ opt_code_size
 opt_code_balanced
 \series default
  
-\begin_inset LatexCommand \index{\\#pragma opt\\_code\\_balanced}
+\begin_inset LatexCommand \index{\#pragma opt\_code\_balanced}
 
 \end_inset
 
@@ -22001,7 +22351,7 @@ opt_code_balanced
 std_sdcc89
 \series default
  
-\begin_inset LatexCommand \index{\\#pragma std\\_sdcc89}
+\begin_inset LatexCommand \index{\#pragma std\_sdcc89}
 
 \end_inset
 
@@ -22015,7 +22365,7 @@ std_sdcc89
 std_c89
 \series default
  
-\begin_inset LatexCommand \index{\\#pragma std\\_c89}
+\begin_inset LatexCommand \index{\#pragma std\_c89}
 
 \end_inset
 
@@ -22029,7 +22379,7 @@ std_c89
 std_sdcc99
 \series default
  
-\begin_inset LatexCommand \index{\\#pragma std\\_sdcc99}
+\begin_inset LatexCommand \index{\#pragma std\_sdcc99}
 
 \end_inset
 
@@ -22043,7 +22393,7 @@ std_sdcc99
 std_c99
 \series default
  
-\begin_inset LatexCommand \index{\\#pragma std\\_c99}
+\begin_inset LatexCommand \index{\#pragma std\_c99}
 
 \end_inset
 
@@ -22057,7 +22407,7 @@ std_c99
 codeseg
 \series default
  <name>
-\begin_inset LatexCommand \index{\\#pragma codeseg}
+\begin_inset LatexCommand \index{\#pragma codeseg}
 
 \end_inset
 
@@ -22085,7 +22435,7 @@ status collapsed
 constseg
 \series default
  <name>
-\begin_inset LatexCommand \index{\\#pragma constseg}
+\begin_inset LatexCommand \index{\#pragma constseg}
 
 \end_inset
 
@@ -22127,7 +22477,7 @@ pedantic_parse_number
 \end_inset
 
 
-\begin_inset LatexCommand \index{\\#pragma pedantic\\_parse\\_number}
+\begin_inset LatexCommand \index{\#pragma pedantic\_parse\_number}
 
 \end_inset
 
@@ -22161,16 +22511,16 @@ status collapsed
  
 \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{\#pragma pedantic\_parse\_number}
 
 \end_inset
 
@@ -22210,7 +22560,7 @@ return c;
 preproc_asm
 \series default
 
-\begin_inset LatexCommand \index{\\#pragma preproc\\_asm}
+\begin_inset LatexCommand \index{\#pragma preproc\_asm}
 
 \end_inset
 
@@ -22226,7 +22576,7 @@ preproc_asm
 
 \family typewriter
 #pragma preproc_asm -
-\begin_inset LatexCommand \index{\\#pragma preproc\\_asm}
+\begin_inset LatexCommand \index{\#pragma preproc\_asm}
 
 \end_inset
 
@@ -22288,7 +22638,7 @@ void foo (void)
 sdcc_hash
 \series default
 
-\begin_inset LatexCommand \index{\\#pragma sdcc\\_hash}
+\begin_inset LatexCommand \index{\#pragma sdcc\_hash}
 
 \end_inset
 
@@ -22310,7 +22660,7 @@ Default is off.
 #pragma preproc_asm +
 \newline
 #pragma sdcc_hash +
-\begin_inset LatexCommand \index{\\#pragma sdcc\\_hash}
+\begin_inset LatexCommand \index{\#pragma sdcc\_hash}
 
 \end_inset
 
@@ -22370,7 +22720,7 @@ ons which might cause the compiler to generate extra stack and/or data space
 
 \family typewriter
 #pragma save
-\begin_inset LatexCommand \index{\\#pragma save}
+\begin_inset LatexCommand \index{\#pragma save}
 
 \end_inset
 
@@ -22384,7 +22734,7 @@ ons which might cause the compiler to generate extra stack and/or data space
 /* save the current settings */ 
 \newline
 #pragma nogcse
-\begin_inset LatexCommand \index{\\#pragma nogcse}
+\begin_inset LatexCommand \index{\#pragma nogcse}
 
 \end_inset
 
@@ -22396,7 +22746,7 @@ ons which might cause the compiler to generate extra stack and/or data space
 /* turnoff global subexpression elimination */ 
 \newline
 #pragma noinduction
-\begin_inset LatexCommand \index{\\#pragma noinduction}
+\begin_inset LatexCommand \index{\#pragma noinduction}
 
 \end_inset
 
@@ -22423,7 +22773,7 @@ int foo ()
 } 
 \newline
 #pragma restore
-\begin_inset LatexCommand \index{\\#pragma restore}
+\begin_inset LatexCommand \index{\#pragma restore}
 
 \end_inset
 
@@ -22448,7 +22798,7 @@ Defines Created by the Compiler
 
 \begin_layout Standard
 The compiler creates the following #defines
-\begin_inset LatexCommand \index{\\#defines}
+\begin_inset LatexCommand \index{\#defines}
 
 \end_inset
 
@@ -22464,7 +22814,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">
@@ -22525,17 +22875,17 @@ Always defined.
 
 \begin_layout Standard
 SDCC_mcs51
-\begin_inset LatexCommand \index{SDCC\\_mcs51}
+\begin_inset LatexCommand \index{SDCC\_mcs51}
 
 \end_inset
 
  or SDCC_ds390
-\begin_inset LatexCommand \index{SDCC\\_ds390}
+\begin_inset LatexCommand \index{SDCC\_ds390}
 
 \end_inset
 
  or SDCC_z80
-\begin_inset LatexCommand \index{SDCC\\_z80}
+\begin_inset LatexCommand \index{SDCC\_z80}
 
 \end_inset
 
@@ -22560,22 +22910,22 @@ depending on the model used (e.g.: -mds390)
 
 \begin_layout Standard
 __mcs51
-\begin_inset LatexCommand \index{\\_\\_mcs51}
+\begin_inset LatexCommand \index{\_\_mcs51}
 
 \end_inset
 
 , __ds390
-\begin_inset LatexCommand \index{\\_\\_ds390}
+\begin_inset LatexCommand \index{\_\_ds390}
 
 \end_inset
 
 , __hc08
-\begin_inset LatexCommand \index{\\_\\_hc08}
+\begin_inset LatexCommand \index{\_\_hc08}
 
 \end_inset
 
 , __z80
-\begin_inset LatexCommand \index{\\_\\_z80}
+\begin_inset LatexCommand \index{\_\_z80}
 
 \end_inset
 
@@ -22601,7 +22951,7 @@ depending on the model used (e.g.
 
 \begin_layout Standard
 SDCC_STACK_AUTO
-\begin_inset LatexCommand \index{SDCC\\_STACK\\_AUTO}
+\begin_inset LatexCommand \index{SDCC\_STACK\_AUTO}
 
 \end_inset
 
@@ -22643,7 +22993,7 @@ status collapsed
 
 \begin_layout Standard
 SDCC_MODEL_SMALL
-\begin_inset LatexCommand \index{SDCC\\_MODEL\\_SMALL}
+\begin_inset LatexCommand \index{SDCC\_MODEL\_SMALL}
 
 \end_inset
 
@@ -22685,7 +23035,7 @@ status collapsed
 
 \begin_layout Standard
 SDCC_MODEL_MEDIUM
-\begin_inset LatexCommand \index{SDCC\\_MODEL\\_MEDIUM}
+\begin_inset LatexCommand \index{SDCC\_MODEL\_MEDIUM}
 
 \end_inset
 
@@ -22727,7 +23077,7 @@ status collapsed
 
 \begin_layout Standard
 SDCC_MODEL_LARGE
-\begin_inset LatexCommand \index{SDCC\\_MODEL\\_LARGE}
+\begin_inset LatexCommand \index{SDCC\_MODEL\_LARGE}
 
 \end_inset
 
@@ -22769,7 +23119,217 @@ status collapsed
 
 \begin_layout Standard
 SDCC_USE_XSTACK
-\begin_inset LatexCommand \index{SDCC\\_USE\\_XSTACK}
+\begin_inset LatexCommand \index{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{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{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{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{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{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
+-
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+/
+\end_layout
+
+\end_inset
+
+-float-reent
+\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_layout Standard
+SDCC_INT_LONG_REENT
+\begin_inset LatexCommand \index{SDCC\_INT\_LONG\_REENT}
 
 \end_inset
 
@@ -22797,65 +23357,7 @@ status collapsed
 
 \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{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" bottomline="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{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
+-int-long-reent
 \emph default
  is used
 \end_layout
@@ -22930,7 +23432,7 @@ sfr
  should define an sfr with the name _XPAGE
 \family typewriter
 
-\begin_inset LatexCommand \index{\\_XPAGE (mcs51)}
+\begin_inset LatexCommand \index{\_XPAGE (mcs51)}
 
 \end_inset
 
@@ -23000,6 +23502,281 @@ 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{Bankswitching}
+
+\end_inset
+
+ (a.k.a.
+ code banking
+\begin_inset LatexCommand \index{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{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 upto 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{lyx:-codeseg}
+
+\end_inset
+
+) on the command line when compiling or #pragma codeseg BANK1 (See 
+\begin_inset LatexCommand \ref{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{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
 
@@ -23131,8 +23908,6 @@ The HC08 port passes the regression test suite (see section
 \end_inset
 
 
-\newpage
-
 \end_layout
 
 \begin_layout Section
@@ -23198,21 +23973,29 @@ 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
+16F: 913, 914, 916, 917, 946
+\end_layout
+
+\begin_layout Standard
+26HV: 626, 785
 \end_layout
 
 \begin_layout Standard
@@ -23484,9 +24267,9 @@ 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
@@ -23528,7 +24311,7 @@ status collapsed
 \end_inset
 
 -debug-xtra
-\begin_inset LatexCommand \index{PIC14!Options!-\\/-debug-extra}
+\begin_inset LatexCommand \index{PIC14!Options!-\/-debug-extra}
 
 \end_inset
 
@@ -23550,7 +24333,7 @@ status collapsed
 \end_inset
 
 -no-pcode-opt
-\begin_inset LatexCommand \index{PIC14!Options!-\\/-no-pcode-opt}
+\begin_inset LatexCommand \index{PIC14!Options!-\/-no-pcode-opt}
 
 \end_inset
 
@@ -23572,7 +24355,7 @@ status collapsed
 \end_inset
 
 -stack-loc
-\begin_inset LatexCommand \index{PIC14!Options!-\\/-stack-loc}
+\begin_inset LatexCommand \index{PIC14!Options!-\/-stack-loc}
 
 \end_inset
 
@@ -23595,7 +24378,7 @@ status collapsed
 \end_inset
 
 -stack-size
-\begin_inset LatexCommand \index{PIC14!Options!-\\/-stack-size}
+\begin_inset LatexCommand \index{PIC14!Options!-\/-stack-size}
 
 \end_inset
 
@@ -23707,7 +24490,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
 
@@ -23772,21 +24555,35 @@ 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, 2420, 2423, 2431, 2455, 2480, 24j10
 \end_layout
 
 \begin_layout Standard
-18F: 4220, 4221, 4320, 4321, 4331, 4431, 4455, 44j10, 4520, 4525, 4550,
- 45j10, 4620
+18F: 2520, 2523, 2525, 2550, 2580, 2585, 25j10, 2620, 2680, 2682, 2685
 \end_layout
 
 \begin_layout Standard
-18F: 6520, 6620, 6680, 6720
+18F: 4220, 4221, 4320, 4321, 4331, 4420, 4423, 4431, 4455, 4480, 44j10
 \end_layout
 
 \begin_layout Standard
-18F: 8520, 8620, 8680, 8720
+18F: 4520, 4523, 4525, 4550, 4580, 4585, 45j10, 4620, 4680, 4682, 4685
+\end_layout
+
+\begin_layout Standard
+18F: 6520, 6585, 6620, 6680, 6720
+\end_layout
+
+\begin_layout Standard
+18F: 8520, 8585, 8620, 8680, 8720
+\end_layout
+
+\begin_layout Standard
+A list of supported devices is also available via '
+\family typewriter
+sdcc -mpic16 -plist
+\family default
+'.
 \end_layout
 
 \begin_layout Subsection
@@ -23814,7 +24611,7 @@ status collapsed
 \end_inset
 
 -callee-saves
-\begin_inset LatexCommand \index{PIC16!Options!-\\/-callee-saves}
+\begin_inset LatexCommand \index{PIC16!Options!-\/-callee-saves}
 
 \end_inset
 
@@ -23849,7 +24646,7 @@ status collapsed
 \end_inset
 
 -fommit-frame-pointer
-\begin_inset LatexCommand \index{PIC16!Options!-\\/-fommit-frame-pointer}
+\begin_inset LatexCommand \index{PIC16!Options!-\/-fommit-frame-pointer}
 
 \end_inset
 
@@ -24047,7 +24844,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
@@ -24277,7 +25074,7 @@ status collapsed
 \end_inset
 
 -debug
-\begin_inset LatexCommand \index{-\\/-debug}
+\begin_inset LatexCommand \index{-\/-debug}
 
 \end_inset
 
@@ -24836,7 +25633,7 @@ The PIC16
 
 \begin_layout Description
 stack
-\begin_inset LatexCommand \index{PIC16!Pragmas!\\#pragma stack}
+\begin_inset LatexCommand \index{PIC16!Pragmas!\#pragma stack}
 
 \end_inset
 
@@ -24909,7 +25706,7 @@ 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{PIC16!Pragmas!\#pragma code}
 
 \end_inset
 
@@ -25523,7 +26320,7 @@ mv picDEVICE.c /path/to/sdcc/device/lib/pic16/libdev
 \begin_layout Enumerate
 Add DEVICE to 
 \family typewriter
-/path/to/sdcc/device/lib/pics.all
+/path/to/sdcc/device/lib/pic16/pics.all
 \family default
  (and 
 \family typewriter
@@ -25534,6 +26331,15 @@ Add DEVICE to
 Note: No 18f prefix here!
 \end_layout
 
+\begin_layout Enumerate
+Set up the I/O library by doing 
+\series bold
+one
+\series default
+ of the following:
+\end_layout
+
+\begin_deeper
 \begin_layout Enumerate
 Adjust 
 \family typewriter
@@ -25556,6 +26362,17 @@ usart
 .
 \end_layout
 
+\begin_layout Enumerate
+Adjust 
+\family typewriter
+/path/to/sdcc/device/include/pic16/adc.h
+\newline
+
+\family default
+Add the new devices to the correct ADC style class.
+\end_layout
+
+\end_deeper
 \begin_layout Enumerate
 Edit 
 \family typewriter
@@ -25578,16 +26395,16 @@ at the right place (keep it sorted).
 \begin_layout Enumerate
 Edit 
 \family typewriter
-/path/to/sdcc/src/pic16/devices.inc
+/path/to/sdcc/device/include/pic16devices.txt
+\newline
+
 \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...
+Copy and modify an existing entry or create a new one and insert it at the
+ correct place (keep the file sorted).
 \end_layout
 
 \begin_layout Enumerate
-Recompile SDCC, including the pic16 libraries.
+Recompile the pic16 libraries.
 \end_layout
 
 \begin_layout Subsection
@@ -26792,9 +27609,9 @@ extern FILE * stdout;
 The FILE type is actually a generic pointer which defines one more type
  of generic pointers, the 
 \emph on
-stream
+stream 
 \emph default
- pointer.
+pointer.
  This new type has the format:
 \end_layout
 
@@ -27181,9 +27998,9 @@ putchar dummy function.
 \begin_layout Standard
 In order to increase performance 
 \emph on
-putchar
+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.
@@ -27299,9 +28116,9 @@ extern unsigned int vfprintf(FILE *fp, char *fmt, va_list ap);
 \begin_layout Standard
 For sprintf and vsprintf 
 \emph on
-buf
+buf 
 \emph default
- should normally be a data pointer where the resulting string will be placed.
+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 
 \emph on
@@ -27809,9 +28626,9 @@ Additionally there are two more macros to simplify the declaration of the
 \labelwidthstring 00.00.0000
 
 \series medium
-SIGHANDLER(handler)
+SIGHANDLER(handler) 
 \series default
- this declares the function prototype for the 
+this declares the function prototype for the 
 \emph on
 handler
 \emph default
@@ -28324,7 +29141,7 @@ status collapsed
 \end_inset
 
 -debug
-\begin_inset LatexCommand \index{-\\/-debug}
+\begin_inset LatexCommand \index{-\/-debug}
 
 \end_inset
 
@@ -28856,9 +29673,9 @@ ion is complete.
 \newline
 
 \family typewriter
-(load-file sdcdbsrc.el)
+(load-file sdcdbsrc.el) 
 \family default
+
 \newline
 
 \newline
@@ -29988,16 +30805,16 @@ int
  more often than other compilers.
  Eventually insert explicit casts to 
 \family typewriter
-(char)
+(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{\~\/ Operator}
 
 \end_inset
 
@@ -30037,7 +30854,7 @@ 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{vararg, va\_arg}
 
 \end_inset
 
@@ -30596,9 +31413,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 ~
 
@@ -30632,9 +31449,9 @@ Changelog of SDCC
 \begin_inset Text
 
 \begin_layout Standard
-sdcc/Changelog 
+sdcc/Changelog
 \emph on
-\InsetSpace ~
+ \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 
@@ -30960,9 +31777,9 @@ cdbfileformat.pd
 \emph default
 \bar default
 \noun default
-f 
+f
 \emph on
-\InsetSpace ~
+ \InsetSpace ~
 \InsetSpace ~
 \InsetSpace ~
 
@@ -31008,11 +31825,11 @@ Related open source tools
 \begin_layout Standard
 \align left
 \begin_inset Tabular
-<lyxtabular version="3" rows="14" columns="3">
+<lyxtabular version="3" rows="16" columns="3">
 <features>
 <column alignment="left" valignment="top" leftline="true" width="0pt">
 <column alignment="block" valignment="top" leftline="true" width="30line%">
-<column alignment="left" valignment="top" leftline="true" rightline="true" width="0pt">
+<column alignment="left" valignment="top" leftline="true" rightline="true" width="40col%">
 <row topline="true" bottomline="true">
 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
 \begin_inset Text
@@ -31519,6 +32336,111 @@ Debugger, serves nicely as GUI to SDCDB
 \end_inset
 
 
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+d52
+\begin_inset LatexCommand \index{d52}
+
+\end_inset
+
+
+\begin_inset LatexCommand \index{d52 (disassembler)}
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+Disassembler, can count instruction cycles
+\begin_inset LatexCommand \index{instruction cycles (count)}
+
+\end_inset
+
+, use with options -pnd
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+\begin_inset LatexCommand \url{http://www.8052.com/users/disasm/}
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row bottomline="true">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+cmake
+\begin_inset LatexCommand \index{cmake}
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+Cross platform build system, generates Makefiles
+\begin_inset LatexCommand \index{Makefile}
+
+\end_inset
+
+ and project workspaces
+\begin_inset LatexCommand \index{project workspace}
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+\begin_inset LatexCommand \url{http://www.cmake.org}
+
+\end_inset
+
+ \InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+and a dedicated wiki entry: 
+\begin_inset LatexCommand \url{http://www.cmake.org/Wiki/CmakeSdcc}
+
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -32302,7 +33224,7 @@ status collapsed
 \end_inset
 
 -dumpall
-\begin_inset LatexCommand \index{-\\/-dumpall}
+\begin_inset LatexCommand \index{-\/-dumpall}
 
 \end_inset
 
@@ -32468,9 +33390,10 @@ diff -u sourcefile.c.orig sourcefile.c >my_changes.patch
 \end_inset
 
 
-\family default
 \series default
- will do.
+\family default
+will do.
 \end_layout
 
 \begin_layout Section
@@ -32649,18 +33572,18 @@ Examples
 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 
+ The SDCC Open Knowledge Resource 
 \begin_inset LatexCommand \url{http://sdccokr.dl9sec.de/}
 
 \end_inset
 
-
 \emph default
- web site or at 
+web site or at 
 \begin_inset LatexCommand \url{http://www.pjrc.com/tech/8051/}
 
 \end_inset
@@ -32717,9 +33640,9 @@ regression tests
 \end_inset
 
  check that SDCC itself compiles flawlessly on several host platforms (i386,
- Opteron, 64 bit Alpha, ppc64, Mac OS X on PPC, Solaris on Sparc) and checks
- the quality of the code generated by SDCC by running the code for several
- target platforms through simulators.
+ Opteron, 64 bit Alpha, ppc64, Mac OS X on ppc and i386, Solaris on Sparc)
+ and checks the quality of the code generated by SDCC by running the code
for several target platforms through simulators.
  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
@@ -33203,9 +34126,9 @@ 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
@@ -33241,7 +34164,7 @@ status collapsed
 
 -noinduction option) or for a given function only using #pragma\InsetSpace ~
 noinduction
-\begin_inset LatexCommand \index{\\#pragma noinduction}
+\begin_inset LatexCommand \index{\#pragma noinduction}
 
 \end_inset
 
@@ -34114,7 +35037,7 @@ 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{\#pragma nojtbound}
 
 \end_inset
 
@@ -34277,9 +35200,9 @@ char i;\InsetSpace ~
 ...
  
 \newline
-i = ((i << 1) | (i >> 7));
+i = ((i << 1) | (i >> 7)); 
 \family default
+
 \newline
 
 \family typewriter
@@ -34352,9 +35275,9 @@ int j;
 ...
  
 \newline
-i = ((i << 4) | (i >> 4));
+i = ((i << 4) | (i >> 4)); 
 \family default
+
 \newline
 
 \family typewriter
@@ -34410,7 +35333,11 @@ dptr
 
 \end_inset
 
--datapointer so little-endian is the more efficient byte order.
+-datapointer
+\emph on
+\emph default
+so little-endian is the more efficient byte order.
 \end_layout
 
 \end_inset
@@ -35645,7 +36572,7 @@ status collapsed
 \end_inset
 
 -peep-file
-\begin_inset LatexCommand \index{-\\/-peep-file}
+\begin_inset LatexCommand \index{-\/-peep-file}
 
 \end_inset
 
@@ -35804,7 +36731,7 @@ status collapsed
 
 \emph default
 -acall-ajmp
-\begin_inset LatexCommand \index{ajmp}
+\begin_inset LatexCommand \index{-\/-acall-ajmp}
 
 \end_inset
 
@@ -36038,11 +36965,11 @@ g the variable bindings is passed as a parameter).
  Currently implemented are 
 \emph on
 labelInRange, labelRefCount, labelIsReturnOnly, operandsNotSame, xramMovcOption,
- 24bitMode, portIsDS390, 24bitModeAndPortDS390
+ 24bitMode, portIsDS390, 24bitModeAndPortDS390 
 \emph default
- and 
+and
 \emph on
-notVolatile
+ notVolatile
 \emph default
 .
 \end_layout
@@ -36123,7 +37050,7 @@ status collapsed
 \end_inset
 
 -stack-auto
-\begin_inset LatexCommand \index{-\\/-stack-auto}
+\begin_inset LatexCommand \index{-\/-stack-auto}
 
 \end_inset
 
@@ -36190,18 +37117,12 @@ s1 = s2 ; /* is invalid in SDCC although allowed in ANSI */
 
 \series bold
 struct
-\family default
 \series default
-\family typewriter
-s foo1 (
+ s foo1 (
 \series bold
 struct
-\family default
 \series default
-\family typewriter
-s parms) /* invalid in SDCC although allowed in ANSI */
+ s parms) /* invalid in SDCC although allowed in ANSI */
 \newline
 { 
 \newline
@@ -36279,7 +37200,7 @@ not supported.
 
 \begin_layout Itemize
 Old K&R style
-\begin_inset LatexCommand \index{K\\&R style}
+\begin_inset LatexCommand \index{K\&R style}
 
 \end_inset
 
@@ -36319,11 +37240,8 @@ Most enhancements in C99 are not supported, e.g.:
 for (
 \series bold
 int
-\family default
 \series default
-\family typewriter
-i=0; i<10; i++) /* is invalid in SDCC although allowed in C99 */
+ i=0; i<10; i++) /* is invalid in SDCC although allowed in C99 */
 \end_layout
 
 \end_deeper
@@ -36343,17 +37261,11 @@ inline
 \end_inset
 
 
-\family default
 \series default
-\family typewriter
-int increment (int a) { return a+1; } /* inlines the increment without function
- call overhead */
+ int increment (int a) { return a+1; } /* inlines the increment without
+ function call overhead */
 \newline
-int *
-\family default
-\family typewriter
+int * 
 \series bold
 restrict
 \begin_inset LatexCommand \index{inline (not supported)}
@@ -36361,11 +37273,8 @@ restrict
 \end_inset
 
 
-\family default
 \series default
-\family typewriter
-p; /* accepted but ignored */
+ p; /* accepted but ignored */
 \end_layout
 
 \end_deeper
@@ -36387,11 +37296,15 @@ status collapsed
 \end_inset
 
 -std-c89
-\begin_inset LatexCommand \index{-\\/-std-c89}
+\begin_inset LatexCommand \index{-\/-std-c89}
 
 \end_inset
 
- or -
+\series default
+or
+\series bold
+ -
 \begin_inset ERT
 status collapsed
 
@@ -36405,7 +37318,7 @@ status collapsed
 \end_inset
 
 -std-c99
-\begin_inset LatexCommand \index{-\\/-std-c99}
+\begin_inset LatexCommand \index{-\/-std-c99}
 
 \end_inset
 
@@ -36419,7 +37332,7 @@ 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{\_\_ (prefix for extended keywords)}
 
 \end_inset
 
@@ -36427,6 +37340,124 @@ t', 'near', 'nonbanked', 'pdata', 'reentrant', 'sbit', 'sfr', 'shadowregs',
  '__data' instead of 'data'.
 \end_layout
 
+\begin_layout Itemize
+Integer promotion of variable arguments is not performed if the argument
+ is explicitly taypecasted unless the
+\series bold
+ -
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+/
+\end_layout
+
+\end_inset
+
+-std-c89
+\begin_inset LatexCommand \index{-\/-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{-\/-std-c99}
+
+\end_inset
+
+
+\series default
+ command line options are used.
+\end_layout
+
+\begin_deeper
+\begin_layout Verse
+
+\family typewriter
+void vararg_func (char *str, ...) { str; }
+\newline
+
+\newline
+void main (void)
+\newline
+{
+\newline
+\InsetSpace ~
+\InsetSpace ~
+char c = 10;
+\newline
+
+\newline
+\InsetSpace ~
+\InsetSpace ~
+/* argument
+ u is promoted to int before
+\newline
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+* passing to function */
+\newline
+\InsetSpace ~
+\InsetSpace ~
+vararg_func ("%c", c);
+\newline
+
+\newline
+\InsetSpace ~
+\InsetSpace ~
+/*
+ argument u is not promoted to int,
+\newline
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+* it is passed as char to function
+\newline
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+* if
+ --std-cXX is not defined;
+\newline
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+* is promoted to int before passing
+\newline
+\InsetSpace ~
+\InsetSpace ~
+\InsetSpace ~
+* to function
+ if --std-cXX is defined */
+\newline
+\InsetSpace ~
+\InsetSpace ~
+vararg_func ("%bc", (char)u);
+\newline
+}
+\end_layout
+
+\end_deeper
 \begin_layout Section
 Cyclomatic Complexity
 \begin_inset LatexCommand \index{Cyclomatic complexity}
@@ -36625,11 +37656,8 @@ The anatomy of the compiler
 
 \shape italic
 This is an excerpt from an article published in Circuit Cellar Magazine
- in
-\shape default
+ in 
 \series bold
-\shape italic
 August 2000
 \series default
 .
@@ -38612,21 +39640,12 @@ None
 \shape slanted
 \size footnotesize
 see f.e.
-
-\shape default
  
 \family typewriter
-\shape slanted
 gen51Code()
 \family default
-\shape default
-\shape slanted
-in
-\shape default
+ in 
 \family typewriter
-\shape slanted
 src/mcs51/gen.c
 \end_layout
 
@@ -40090,7 +41109,7 @@ Acknowledgments
 \end_layout
 
 \begin_layout Standard
-\begin_inset LatexCommand \url{http://sdcc.sourceforge.net#Who}
+\begin_inset LatexCommand \url{http://sdcc.sourceforge.net/#Who}
 
 \end_inset