[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] autoconfiscation
From: |
Rob Landley |
Subject: |
Re: [Tinycc-devel] autoconfiscation |
Date: |
Tue, 28 Aug 2007 20:51:23 -0500 |
User-agent: |
KMail/1.9.6 |
On Tuesday 28 August 2007 5:38:20 pm Jakob Eriksson wrote:
> Shawn Rutledge wrote:
> > I'd suggest having a look at cmake. It seems to have worked well for
> > Chicken Scheme. The configuration is user-friendly (ncurses menus
> > rather than having to pass in a lot of --options to ./configure),
>
> Many things can work well enough. Now that we have cmake
> on the table, I can put forth omake too, I suppose.
>
> http://omake.metaprl.org/index.html
See "external dependencies", above. The one thing make has going for it is
it's already installed in every Linux development environment.
Building the entire project, including all cross compiler targets, the build
currently does this:
cc -O2 -g -Wall -fsigned-char -Os -mpreferred-stack-boundary=2 -m386 \
-malign-functions=0 -o tcc tcc.c -lm -ldl
cc -O2 -g -Wall -fsigned-char -Os -mpreferred-stack-boundary=2 -m386 \
-malign-functions=0 -DTCC_TARGET_ARM -DTCC_ARM_EABI \
-o arm-tcc tcc.c -lm -ldl
cc -O2 -g -Wall -fsigned-char -Os -mpreferred-stack-boundary=2 -m386 \
-malign-functions=0 -DTCC_TARGET_C67 -o c67-tcc tcc.c -lm -ldl
cc -O2 -g -Wall -fsigned-char -Os -mpreferred-stack-boundary=2 -m386 \
-malign-functions=0 -DTCC_TARGET_PE -o i386-win32-tcc tcc.c -lm -ldl
cc -O2 -Wall -c -o libtcc1.o libtcc1.c
cc -c -o i386/alloca86.o i386/alloca86.S
cc -c -o i386/bound-alloca86.o i386/bound-alloca86.S
ar rcs libtcc1.a libtcc1.o i386/alloca86.o i386/bound-alloca86.o
cc -O2 -Wall -c -o bcheck.o bcheck.c
cc -O2 -g -Wall -fsigned-char -Os -mpreferred-stack-boundary=2 -m386 \
-malign-functions=0 -DLIBTCC -c -o libtcc.o tcc.c
ar rcs libtcc.a libtcc.o
The above can actually be _simplified_ somewhat, I suspect. Why, exactly,
does this need more complexity than a very small shell script?
(For the moment, being able to tell it NOT to build the various cross
compilers is almost more trouble than it's worth. Maybe that'll change when
we get more cross-compilers. I'm also wondering what would be involved in
making them share more code, especially since there's a libtcc.o already...)
Rob
--
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson.
Re: [Tinycc-devel] autoconfiscation, Shawn Rutledge, 2007/08/28
- Re: [Tinycc-devel] autoconfiscation, Jakob Eriksson, 2007/08/28
- Re: [Tinycc-devel] autoconfiscation, Gregg Reynolds, 2007/08/28
- Re: [Tinycc-devel] autoconfiscation,
Rob Landley <=
- Re: [Tinycc-devel] autoconfiscation, Shawn Rutledge, 2007/08/28
- Re: [Tinycc-devel] autoconfiscation, Gregg Reynolds, 2007/08/29
- Re: [Tinycc-devel] autoconfiscation, Rob Landley, 2007/08/29
- Re: [Tinycc-devel] autoconfiscation, Simon 'corecode' Schubert, 2007/08/30
- Re: [Tinycc-devel] autoconfiscation, Rob Landley, 2007/08/30
Re: [Tinycc-devel] autoconfiscation, Peter Lund, 2007/08/29
Re: [Tinycc-devel] autoconfiscation, Jakob Eriksson, 2007/08/29