C Cod - FAQ
Compile C on Demand
General Questions
C Cod allows for a C/C++, and Objective-C source
files to be "Compiled on Demand" prior to being executed.
The source files are compiled and executed on
the fly. This allows for C to be treated like a scripting
language. But, C Cod does not actually do the compiling.
Rather it acts as a front-end and uses
the the C compiler that is installed on the computer. This
is most often the GNU C
Compiler, and therefore designed to be used with GCC.
CSP is a shared library that exposes C Cod source
files to a friendly
CGI API.
It's modelled after
ASP,
and supports features such as
Page Buffering,
File Uploads,
Sessions,
Cookies,
Inline HTML,
and much more.
It is automatically installed along-side
C Cod.
(3) Is this a scripting language?
Yes and No. It looks and feels like a scripting language, but performs like a compiled application.
(4) Where can I get a copy of C Cod?
There is a download link on the http://ccod.sourceforge.net site.
(5) What Operating Systems are supported?
C Cod is an ANSI C compatible application and thus it should compile on witha ANSI C compatible compilers.
But it has been successfully compiled and tested on:
Download the sources from the http://ccod.sourceforge.net site.
Follows the
./configure && make install "For windows users, download the setup EXE binary. This will setup the MingW environment alongside C Cod and CSP.
Online at http://ccod.sourceforge.net/examples.html.
In the source/binary distribution under the examples directory.
(8) What C compatibility does C Cod provide?
Anything that is available to GNU C is available to C Cod. C++ and Objective-C are also available.
(9) Does C Cod actually compile the code?
No.
C Cod reformats the source file to be compatible with the GNU C Compiler.
It hands the compiling process off to GCC.
It caches and executes the compiled binary.
It also provides the CSP library available to CGI application.
(10) Does C Cod support garbage collection?
No. You have the responsibility of freeing the memory you allocate.
(11) I have an old C program I wrote about 10 years ago, can C Cod execute it?
Give it a try.
At the top of the original source file place...
#!/usr/bin/ccod
Make the source file an executable and run it...
$ chmod a+x myoldfile.c
|