module HelloWorld
Base.@ccallable function main()::Cint
println(Core.stdout, "Hello world")
return 0
end
end
1.13.0-DEV.325, Windows 11, Powershell:
julia juliac.jl --output-exe hello --trim --experimental hello.jl
Compiles to a 12.7 MB binary, but gives an error when run:
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks. Exception: EXCEPTION_ACCESS_VIOLATION at 0x7ff959ffcd21 -- Hello world
After compiling without --trim --experimental the resulting exe works fine.
1.13.0-DEV.325, Windows 11, Powershell:
Compiles to a 12.7 MB binary, but gives an error when run:
After compiling without
--trim --experimentalthe resulting exe works fine.