StaticCompiler.jl icon indicating copy to clipboard operation
StaticCompiler.jl copied to clipboard

Compiles Julia code to a standalone library (experimental)

Results 29 StaticCompiler.jl issues
Sort by recently updated
recently updated
newest added

I typed intsructions from readme: using StaticCompiler, StaticTools hello() = println(c"Hello, world!") compile_executable(hello, (), "c:/binary")

Hi, I try to get copmiled abspath() or pwd(). Therefore it would be great, if it possibe to construct a MallocString or StaticString from a "simple" Julia string. Is this...

I was trying to make a minimal example of a different issue and noticed that it is always 0-ing the first argument, in this case as if by `*= 0.0`....

``` ERROR: LoadError: UndefVarError: `validate_code_in_debug_mode` not defined in `Core.Compiler` Stacktrace: [1] getproperty @ ./Base.jl:42 [inlined] [2] Core.Compiler.InferenceState(result::Core.Compiler.InferenceResult, cache::Symbol, interp::StaticCompiler.StaticInterpreter) @ StaticCompiler ~/.julia/packages/StaticCompiler/Uki9T/src/interpreter.jl:89 [3] typeinf_frame @ ./compiler/typeinfer.jl:1003 [inlined] [4] typeinf_code @...

Ref conversation in https://github.com/tshort/StaticCompiler.jl/issues/145. The idea is that adding a `::Union{}` here lets the compiler know that it can remove `throw` calls. E.g. compare ```julia julia> using StaticTools julia> g()...

- [ ] Support storing and relocation of global variables - [ ] Support for linking binaries to julia's runtime - [x] Support Windows. (Help wanted!) - [ ] Interfaces...

documentation

So currently we aren't able to do GC allocations outside of `compile` which requires a running julia session. Ideally we should be able to link a binary to `libjulia` or...

enhancement

Hi, Even though this is well beyond my skill level I'm trying to get something like a "static ccall" working... This is actually my second attempt, after a year or...

In in example docs (used the code there): ``` shell> ls -alh hello -rwxrwxr-x. 1 user user 8.4K Oct 20 20:36 hello in my case: shell> ls -alh hello -rwxrwxr-x...

FYI: ``` Test Summary: | Pass Total Time Standalone Executables | 6 6 2.4s (f, tt) = func = (squaresquaresquare, (Float64,)) julia: /workspace/srcdir/llvm-project/llvm/lib/IR/Attributes.cpp:559: bool llvm::AttributeImpl::operator