Discussion:
Dependancies and New release ?
n***@atelier-web.com
2011-08-07 14:56:13 UTC
Permalink
Hi all,

I can see that there are a lot of commits on the cvs server :)
When should we exepect to have a new (stable) release of pcc ?

I have too an other question,
what are exactly the dependencies of pcc ?

Thanks for your answers,
Nick
Henri Kemppainen
2011-08-07 17:11:46 UTC
Permalink
Post by n***@atelier-web.com
I 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/ .
n***@atelier-web.com
2011-08-07 18:59:05 UTC
Permalink
Thanks for your answer (and Szabolcs Nagy)
It's a good news, so pcc is really portable ^^

Cheers,
Nick

On Sun, 7 Aug 2011 20:11:46 +0300 (EEST), Henri Kemppainen
Post by Henri Kemppainen
Post by n***@atelier-web.com
I 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
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*
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
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/ .
Szabolcs Nagy
2011-08-07 18:26:21 UTC
Permalink
Post by n***@atelier-web.com
what are exactly the dependencies of pcc ?
to build it you need a posix environment with
sh, flex, bison, make, etc and a c compiler

to use it you need pcc-libs, an assembler, a
linker (eg. as and ld from gnu binutils) and
a libc provided by the system

..so nothing unreasonable
Anders Magnusson
2011-08-07 19:24:43 UTC
Permalink
Post by n***@atelier-web.com
I can see that there are a lot of commits on the cvs server :)
When should we exepect to have a new (stable) release of pcc ?
Difficult to say, but most likely this year.

-- Ragge

Loading...