ncc: handle sizeof x + 2
[neatcc.git] / README
blob07f6332e4c59eaaf9bc8e8605570ba941a2162bc
1 NEATCC
2 ======
4 neatcc is a simple ARM/x86 C compiler.  I wrote it to complete my
5 development toolchain (see http://litcave.berlios.de/):
7 * cc:   git://repo.or.cz/neatcc.git
8 * ld:   git://repo.or.cz/ld.git
9 * as:   git://repo.or.cz/neatas.git
10 * libc: git://repo.or.cz/neatlibc.git
11 * gdb:  http://litcave.berlios.de/coredump.tar.gz
12         http://litcave.berlios.de/elfloc.tar.gz
14 neatcc supports a large subset of C language but lacks some of the
15 features that I didn't use much myself.  The most important missing
16 features are struct bitfields, inline asms and floating point and
17 long long types.
19 USAGE
20 =====
22 neatcc has been tested with neatlibc and dietlibc.  It can compile
23 itself and neat* toolchain.  I use this script to run neatcc:
25 # !/bin/sh
26 NEAT="/path/to/neatlibc"
27 CC="/path/to/neatcc/ncc"
28 LD="/path/to/ld/ld"
30 # these can be ignored
31 CPPFLAGS="-Dfloat=long -Ddouble=long"
33 for x in $*
35         if [ x$x == "x-c" ]
36         then
37                 exec ${CC} ${CPPFLAGS} -I${NEAT} $*
38         fi
39 done
41 exec ${LD} $* ${NEAT}/start.o ${NEAT}/libc.a