C Cod - FAQ
Compile C on Demand
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.
Yes and No. It looks and feels like a scripting language, but performs like a compiled application.
There is a download link on the http://ccod.sourceforge.net site.
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
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
Anything that is available to GNU C is available to C Cod. C++ and Objective-C are also available.
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.
No. You have the responsibility of freeing the memory you allocate.
Give it a try. At the top of the original source file place...
Make the source file an executable and run it...