Skip to content

Commit fed55dd

Browse files
Document symbol naming convention (#105)
* Document symbol naming convention * A bit more context on name mangling --------- Co-authored-by: C. Brenhin Keller <cbkeller@dartmouth.edu>
1 parent 7788852 commit fed55dd

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/StaticCompiler.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ compile_shlib(funcs::Array, [path::String="./"]; filename="libfoo", demangle=fal
265265
```
266266
As `compile_executable`, but compiling to a standalone `.dylib`/`.so` shared library.
267267
268+
The compiled function is by default given the symbol name `julia_$(name)`, i.e.,
269+
the function `test` in the example below is called `julia_test` in the shared library.
270+
The keword argument `demangle=true` will remove this prefix, but is currently only
271+
supported the second (multi-function-shlib) method.
272+
268273
### Examples
269274
```julia
270275
julia> using StaticCompiler, LoopVectorization

0 commit comments

Comments
 (0)