New in Wolfram
Mathematica
8: Corriente de trabajo C integrada
◄
previous
|
next
►
Desarrollo de Software
Llame a compiladores C sin soporte
Llame a compiladores C sin soporte con la interfaz de GenericCCompiler. Aquí, se invoca al compilador TinyCC.
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]=