Post by n***@atelier-web.comI have too an other question,
what are exactly the dependencies of pcc ?
PCC depends on the standard library, plus some functions
you should find in the libcs of most unix-like systems these
days. To compile it, you'll also need flex & yacc (or bison,
or something compatible) and perhaps make to make building
easy (no pun intended). Obviously you need something to compile
with.
It's hard to be more exact than that without listing every
function PCC calls. Inspecting the includes should give
you a good idea, though.
[1/0] 0 nanoha pcc-20110720% grep -oh '#include[ \t]<.*>' **/*.[ch]|sort|uniq
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <io.h>
#include <libgen.h>
#include <process.h>
#include <signal.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
#include <windows.h>
[1/0] 0 nanoha pcc-20110720% ldd ~/pre/bin/pcc
/home/duclare/pre/bin/pcc:
Start End Type Open Ref GrpRef Name
0000000000400000 000000000087c000 exe 1 0 0 /home/duclare/pre/bin/pcc
000000020b62a000 000000020bb10000 rlib 0 1 0 /usr/lib/libc.so.58.3
000000020f200000 000000020f200000 rtld 0 1 0 /usr/libexec/ld.so
[1/0] 0 nanoha pcc-20110720% ldd ~/pre/libexec/c*
/home/duclare/pre/libexec/ccom:
Start End Type Open Ref GrpRef Name
0000000000400000 0000000000880000 exe 1 0 0 /home/duclare/pre/libexec/ccom
00000002090c9000 00000002095af000 rlib 0 1 0 /usr/lib/libc.so.58.3
0000000207e00000 0000000207e00000 rtld 0 1 0 /usr/libexec/ld.so
/home/duclare/pre/libexec/cpp:
Start End Type Open Ref GrpRef Name
0000000000400000 000000000097a000 exe 1 0 0 /home/duclare/pre/libexec/cpp
00000002042cc000 00000002047b2000 rlib 0 1 0 /usr/lib/libc.so.58.3
000000020ad00000 000000020ad00000 rtld 0 1 0 /usr/libexec/ld.so
Don't forget to read http://pcc.ludd.ltu.se/building/ and
http://pcc.ludd.ltu.se/supported-platforms/ .