Added exe transform support. Made the strip explicit. Change to help cross compiling
[fw/sdcc] / doc / SDCCUdoc-1.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2 <HTML>
3 <HEAD>
4  <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.7">
5  <TITLE>SDCC Compiler User Guide: Introduction</TITLE>
6  <LINK HREF="SDCCUdoc-2.html" REL=next>
7
8  <LINK HREF="SDCCUdoc.html#toc1" REL=contents>
9 </HEAD>
10 <BODY>
11 <A HREF="SDCCUdoc-2.html">Next</A>
12 Previous
13 <A HREF="SDCCUdoc.html#toc1">Contents</A>
14 <HR>
15 <H2><A NAME="s1">1. Introduction</A> </H2>
16
17 <P>SDCC is a Free ware , retargettable, optimizing ANSI-C compiler. The current
18 version targets Intel 8051 based MCUs, it can be retargetted for other 8 bit
19 MCUs or PICs. The entire source code for the compiler is distributed under
20 GPL. SDCC used ASXXXX &amp; ASLINK a Free ware, retargettable assembler &amp;
21 linker. SDCC has extensive MCU (8051) specific language extensions, which lets
22 it utilize the underlying hardware effectively. The front-end (parser) will
23 be enhanced to handle language extensions for other MCUs as and when they are
24 targetted. In addition to the MCU Specific optimizations SDCC also does a host
25 of standard optimizations like global sub expression elimination, loop optimizations
26 (loop invariant, strength reduction of induction variables and loop reversing),
27 constant folding &amp; propagation, copy propagation, dead code elimination
28 and jumptables for 'switch' statements. For the back-end SDCC uses a global
29 register allocation scheme which should be well suited for other 8 bit MCUs
30 , the peep hole optimizer uses a rule based substitution mechanism which is
31 MCU independent. Supported data-types are short (8 bits, 1 byte), char (8 bits,
32 1 byte), int (16 bits, 2 bytes ), long (32 bit, 4 bytes) &amp; float (4 byte
33 IEEE). The compiler also allows inline assembler code to be embedded anywhere
34 in a function. In addition routines developed in assembly can also be called.
35 SDCC also provides an option to report the relative complexity of a function,
36 these functions can then be further optimized , or hand coded in assembly if
37 need be. SDCC also comes with a companion source level debugger SDCDB, the
38 debugger currently uses S51 a freeware simulator for 8051, it can be easily
39 modified to use other simulators. The latest version can be downloaded from
40 <B>http://www.geocities.com/ResearchTriangle/Forum/1353</B>
41 <P>All packages used in this compiler system are opensource (freeware); source
42 code for all the sub-packages ( asxxxx assembler/linker , pre-processor and
43 gc a conservative garbage collector) are distributed with the package. Documentation
44 was created using a freeware word processor (LyX). 
45 <P>This program is free software; you can redistribute it and/or modify it
46 under the terms of the GNU General Public License as published by the Free
47 Software Foundation; either version 2, or (at your option) any later version.
48 This program is distributed in the hope that it will be useful, but WITHOUT
49 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
50 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
51 You should have received a copy of the GNU General Public License along with
52 this program; if not, write to the Free Software Foundation, 59 Temple Place
53 - Suite 330, Boston, MA 02111-1307, USA. In other words, you are welcome to
54 use, share and improve this program. You are forbidden to forbid anyone else
55 to use, share and improve what you give them. Help stamp out software-hoarding!
56 <P>
57 <HR>
58 <A HREF="SDCCUdoc-2.html">Next</A>
59 Previous
60 <A HREF="SDCCUdoc.html#toc1">Contents</A>
61 </BODY>
62 </HTML>