Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Tiny C Compiler< Next Oldest | Next Newest >
fparri Offline





Group: Members
Posts: 26
Joined: Jan. 2004
Posted: Jan. 11 2004,20:24 QUOTE

Would it be possible to have a newer version in next release of DSL ? I tried a simple hello world, and the stdio.h library is missing :(

http://fabrice.bellard.free.fr/tcc/changelog.html

Thanks a million in advance  :;):
Back to top
Profile PM 
enthusi Offline





Group: Members
Posts: 57
Joined: Dec. 2003
Posted: Jan. 11 2004,22:32 QUOTE

Hi there :)
DSL does not habe those .h - files
You dont need them anyway.
There is a tcclib.h which includes a lot of them.
You can just copy those you need into it.
Right now I'm writing a little tutorial for TCC and DSL.
try the following:
Code Sample
#include "/usr/lib/tcc/include/tcclib.h"

and compile it with
Code Sample
tcc -o yourfile  -lstdc++-3-libc6.1-2-2.10.0 yourfile.c

That should work.
The .h - files "only" contain the declaration. You can declare them yourself if you like...
Linking them to the correct libs is the important thing!
You can make your own .h-header-file or add needed functions to that tcclib.h

Hope this helped...
Ask again if not... I think TCC is wonderful
and if you are interessted watch out for that little example-proggy I'm gonna post soon :)

Off now,
enthusi


--------------
silence tells me secretly...
...everything
-------------------------------------------------------------
DSL on
cf-frugal-install on 700Mhz P3, 320 MB ram
cf-frugal & usb for via epia 5000, 512 MB ram
Back to top
Profile PM ICQ 
catfish Offline





Group: Members
Posts: 16
Joined: Sep. 2003
Posted: Jan. 13 2004,16:40 QUOTE

This is good information. I'm looking forward to your tutorial.

Since you seem to know something about tcc, do you know what  the problem is when compiling a simple "hello world" program results in:
tcc: _start not defined

Thanks,
Back to top
Profile PM 
enthusi Offline





Group: Members
Posts: 57
Joined: Dec. 2003
Posted: Jan. 13 2004,17:11 QUOTE

Hi :)
It will be ready soon :)
Your error sounds familiar but I dont remember :(
Maybe you can post or email your c-programm and the command line you use for compiling?
I could test it here then...

Greet's,
Enthusi


--------------
silence tells me secretly...
...everything
-------------------------------------------------------------
DSL on
cf-frugal-install on 700Mhz P3, 320 MB ram
cf-frugal & usb for via epia 5000, 512 MB ram
Back to top
Profile PM ICQ 
enthusi Offline





Group: Members
Posts: 57
Joined: Dec. 2003
Posted: Jan. 14 2004,02:04 QUOTE

Hi there :)
I just uploaded a small C/TCC - Tutorial for DSL.
I wrote a small program during christmas when I had nothing with me but my beloved DSL-cd :)
I commented almost every line of the code...
I was quite sceptical about TCC and wanted the good "old" GCC...
TCC may not suit for general source-compilation but it is astonishing powerful for own little projects.
Maybe someone's interessted - please feel free to comment on it. I will start a thread in HOW-TOs. And hopefully you can help me with
comments on how to improve it.
I think it would be nice to add stuff like this (ok, to be honest: please add THIS one :-) to DSL... It takes up almost no space and can add many many fun hours for the DSL-user...

Get it here:
http://allthegoodthings.tripod.com/damnsmalllinux

or type:
Code Sample

wget http://allthegoodthings.tripod.com/damnsmalllinux/tcc_tuturial_v0.1.zip

and unzip it...

Good night now,
Enthusi


--------------
silence tells me secretly...
...everything
-------------------------------------------------------------
DSL on
cf-frugal-install on 700Mhz P3, 320 MB ram
cf-frugal & usb for via epia 5000, 512 MB ram
Back to top
Profile PM ICQ 
12 replies since Jan. 11 2004,20:24 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: Tiny C Compiler

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code