is there any good c interpreter?

C

Cong Wang

yuesefa said:
i am looking for an open source c interpreter. Thanks ;-) ,

As far as I know, writing a small C interpreter with Bash is NOT a hard
work. ;-p
 
E

Espen Myrland

TCC (for Tiny C Compiler) is a small, fast, unlimited and safe ANSI C
compiler. It generates optimized x86 code, and can compile, assemble,
and link several times faster than 'gcc -O0'. Any C dynamic library
can be used directly. It includes an optional memory and bounds
checker, and bounds-checked code can be mixed freely with standard
code. C script is also supported via the usual hash-bang mechanism.
.
 
C

Christopher Layne

Espen said:
Frogot to provide a link to the project pages:
http://fabrice.bellard.free.fr/tcc/

Okay, so why is tcc reinventing the wheel here rather than just helping the
gcc project in the first place - possibly with a small-gcc branch, etc.? I
see the need for ultra small compilation packages - but not for another
opensource compiler, currently.
 
M

Michael Mair

Christopher said:
Okay, so why is tcc reinventing the wheel here rather than just helping the
gcc project in the first place - possibly with a small-gcc branch, etc.? I
see the need for ultra small compilation packages - but not for another
opensource compiler, currently.

I do not know about the specific reasons of the tcc makers but
maybe they just _wanted_ to start from scratch or they did not
want to have a monopoly of open source compilers or they did not
like the nose of someone at the gcc project or wanted to reserve
the right to change the license at some point in the future or...

As far as I am concerned, they are welcome to their own compiler
and I am happy to know its out there and free :)


Cheers
Michael
 
?

=?ISO-8859-1?Q?=22Nils_O=2E_Sel=E5sdal=22?=

Christopher said:
Okay, so why is tcc reinventing the wheel here rather than just helping the
gcc project in the first place - possibly with a small-gcc branch, etc.? I
see the need for ultra small compilation packages - but not for another
opensource compiler, currently.

tcc has different goals than gcc.
And perhaps the author just thinks it's a fun project to do ?

It's not interpreter btw. For a C interpreter, search for
Cint or Ch.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top