New in Wolfram
Mathematica
8: Integrated C Workflow
◄
previous
|
next
►
Software Development
Call Unsupported C Compilers
Call unsupported C compilers using the GenericCCompiler interface. Here, the TinyCC compiler is invoked.
In[1]:=
X
Needs["CCompilerDriver`"]
In[2]:=
X
Needs["CCompilerDriver`GenericCCompiler`"]
In[3]:=
X
greeter = CreateExecutable[" #include <stdio.h> int main() { printf(\"Hello TinyCC world.\\n\"); }", "hiworld", "Compiler" -> GenericCCompiler, "CompilerInstallation" -> "/home/abdul/usr/bin", "CompilerName" -> "tcc"]
Out[3]=
In[4]:=
X
Import["!\"" <> greeter <> "\"", "Text"]
Out[4]=