Hi
[The below is thanking -static issue]
I search through the list for /Fabrice Bellard/ and found nothing. His
famous Tiny C Compiler (http://en.wikipedia.org/wiki/Tiny_C_Compiler
http://bellard.org/tcc/) is well-known in Tcl community and they know
its strengths.
I want to share here my 2-minutes experiment (below is c&p from a
terminal):
Make the very virgin environment
sg@...:build> fossil clean -f
sg@...:build> ../configure --quiet --json --markdown
sg@...:build> ccache -Cc
Cleared cache
Cleaned cache
Build Fossil with `tcc' and run it
--
sg@...:build> time make -s BCC=tcc TCC=tcc && ./fossil version
../src/diffcmd.c:290: warning: assignment makes pointer from integer
without a cast
../src/diffcmd.c:447: warning: assignment makes pointer from integer
without a cast
../src/diffcmd.c:449: warning: assignment makes pointer from integer
without a cast
../src/rebuild.c:849: warning: assignment from incompatible pointer type
../src/vfile.c:467: warning: assignment from incompatible pointer type
../src/sqlite3.c:20089: warning: assignment makes pointer from integer
without a cast
../src/sqlite3.c:43635: warning: assignment makes pointer from integer
without a cast
real 0m1.926s
user 0m1.776s
sys 0m0.680s
This is fossil version 1.25 [8027c7e648] 2013-01-30 18:14:26 UTC
It took 2 seconds on my laptop and I've got working copy of Fossil!
Make again a virgin
---
sg@...:build> ccache -Cc
Cleared cache
Cleaned cache
sg@...:build> make clean
rm -rf bld/* fossil
Build Fossil with `gcc' (no `ccache') and run it
sg@...:build> time make -s && ./fossil version
real 1m8.647s
user 1m2.852s
sys 0m4.760s
This is fossil version 1.25 [8027c7e648] 2013-01-30 18:14:26 UTC
Yep, it takes about 1 minute. So, I use `ccache'. Though, no warnings
:-)
Just clean (but do not break ccache caches)
---
sg@...:build> make clean
rm -rf bld/* fossil
Repeat build and run with `gcc' + `ccache'
--
sg@...:build> time make -s && ./fossil version
real 0m7.823s
user 0m6.016s
sys 0m1.784s
This is fossil version 1.25 [8027c7e648] 2013-01-30 18:14:26 UTC
It took ~8 seconds.
What `tcc' I used here
--
sg@...:build> tcc -v
tcc version 0.9.24
Afterwords
--
I like to see how `tcc' compile sqlite3.c in a second :-)
Why this here? IMHO, it is cool, and if you pack `jimsh0' with
`autosetup', perhaps, some one can try to pack `tcc' with some ...
autobuild.
BTW, there is Windows binary distribution of `tcc':
http://bellard.org/tcc/
http://download.savannah.nongnu.org/releases/tinycc/tcc-0.9.25-win32-bin.zip
but, I have no chance to try it.
WARNING! Thus, I installed the built fossil with `tcc' under
/usr/local/bin, I do not test the build heavily!
Regards,
Sergei
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users