Create an executable for a program in an interpreted language: Difference between revisions

(julia example)
 
Line 407:
using StaticCompiler, StaticTools
 
hello() = println(c"Hello world!") # the c"" hsyntaxsyntax defines a static C type string
compile_executable(hello, (), "./") # can now run this as executable "hello"
</syntaxhighlight>{{out}}
4,103

edits