PDA

View Full Version : Any command-line C interpreter on Ubuntu?



Zacinfinite
February 25th, 2011, 08:01 AM
Is there anything like C interpreter on Ubuntu?
Python interpreter makes it really easy to test and experiment codes. So i was wondering if there is any C interpreters available for ubuntu.

schauerlich
February 25th, 2011, 08:41 AM
C is generally a compiled language, but interpreters do exist.

http://en.wikipedia.org/wiki/Ch_interpreter

MadCow108
February 25th, 2011, 12:23 PM
there is CINT
http://root.cern.ch/drupal/content/cint

which is even a C++ interpreter.
it is included in the package root-system. But it is very outdated, better grab it from the main site

there is also some work on a new version based on llvm:
http://indico.cern.ch/materialDisplay.py?contribId=3&materialId=slides&confId=71078
but I'm not sure how far this is.

foxmuldr
February 25th, 2011, 12:58 PM
Is there anything like C interpreter on Ubuntu?
Python interpreter makes it really easy to test and experiment codes. So i was wondering if there is any C interpreters available for ubuntu.

The TinyCC (Tiny C Compiler) can be run from the command line. It can be used in shell scripts, etc. It's very fast.