Janet 1.38.0-73334f3 Documentation
(Other Versions:
1.37.1
1.36.0
1.35.0
1.34.0
1.31.0
1.29.1
1.28.0
1.27.0
1.26.0
1.25.1
1.24.0
1.23.0
1.22.0
1.21.0
1.20.0
1.19.0
1.18.1
1.17.1
1.16.1
1.15.0
1.13.1
1.12.2
1.11.1
1.10.1
1.9.1
1.8.1
1.7.0
1.6.0
1.5.1
1.5.0
1.4.0
1.3.1
)
C Compiler
Index
cc/archive-c cc/compile-c cc/create-buffer-c cc/create-buffer-c-impl cc/create-executable cc/embed-name cc/entry-name cc/entry-replace cc/link-c cc/make-bin-source cc/make-define cc/make-defines cc/modpath-to-meta cc/modpath-to-static cc/out-path
(archive-c opts target & objects)
Link object files together to make a static library.
(compile-c compiler opts src dest &opt static?)
Compile a C file into an object file.
(create-buffer-c source dest name)
Inline raw byte file as a c file.
(create-executable opts source dest no-core)
Links an image with libjanet.a (or .lib) to produce an executable. Also will try to link native modules into the final executable as well.
(entry-name name)
Name of symbol that enters static compilation of a module.
(link-c has-cpp opts target & objects)
Link C or C++ object files together to make a native module.
(make-define define value)
Generate strings for adding custom defines to the compiler.
(make-defines defines)
Generate many defines. Takes a dictionary of defines. If a value is true, generates -DNAME (/DNAME on windows), otherwise -DNAME=value.
(modpath-to-meta path)
Get the meta file path (.meta.janet) corresponding to a native module path (.so).
(modpath-to-static path)
Get the static library (.a) path corresponding to a native module path (.so).
(out-path path from-ext to-ext)
Take a source file path and convert it to an output path.