static-julia
static-julia copied to clipboard
Static AOT Julia compilation, demos and instructions
This script is compiling Julia functions into an .so file (on Linux). So the functions can be called like C functions from other programming languages. What is missing is the...
It looks like the most recent change to support `julia v0.7` has broken my system running `v0.6.2`. The executable complains for some reason that it cannot find "libhello.dylib", despite it...
I tried using juliac.jl and get this error: ``` Build object file "hello.o": `'C:\Users\Christian\AppData\Local\Julia-0.6.1\bin\julia.exe' -Cx86-64 '-JC:\Users\Christian\AppData\Local\Julia-0.6.1\lib\julia\sys.dll' --compile=yes --depwarn=yes --startup-file=no --output-o hello.o -e 'include("C:\\Users\\Christian\ \Documents\\Julia\\static-julia-master\\hello.jl"); push!(Base.LOAD_CACHE_PATH, "C:\\Users\\Christian\\.julia\\lib\\v0.6"); empty!(Base.LOAD_CACHE_PATH)'` Build shared library...
Is there currently a way to deal with shared libraries referenced by other packages used in compiled code? I'm trying to create a standalone binary for a tool that should...
Windows CMD: ``` W:\git\static-julia>julia juliac.jl -vae juliac.jl Julia program file: "W:\git\static-julia\juliac.jl" C program file: "W:\git\static-julia\program.c" Build directory: "W:\git\static-julia\builddir" Change to build directory Build ".ji" files: `'C:\Users\zh\AppData\Local\Julia-0.6.0\bin\julia.exe' -Cx86-64 '-JC:\Users\zh\AppData\Local\Julia-0.6.0\lib\julia\sys.dll' --compile=yes --depwarn=yes...
Hi- I'm fairly new to Julia but have been having an issue with compiling static julia. my hello.jl: ``` module Hello Base.@ccallable function julia_main(ARGS::Vector{String})::Cint n = parse(Int, readline(STDIN)) i ::...
This might be a stupid question as I don't really understand what's going on under the hood, but it seems like the generated binary will segfault as soon as the...
I am still a little uncertain about what it is. Does the binary have the Julia runtime with it? Is everything AOT compiled? Can it compile extra functions as necessary,...
Hi, I've just tried to make a binary which accepts command line arguments and I get segfaults which has led me to notice: In hello.jl: ```julia Base.@ccallable function julia_main(ARGS::Vector{String})::Cint println("hello,...
In a statically compiled program `Base.julia_cmd()` seems to use the directory of the static executable as the path to the `julia` executable. To work around this I've added `-DJULIA_HOME=$JULIA_HOME` to...