Janet 1.27.0-01aab66 Documentation
(Other Versions:
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
function (cc/archive-c opts target & objects)
Link object files together to make a static library.Community Examples / source
function (cc/compile-c compiler opts src dest &opt static?)
Compile a C file into an object file.Community Examples / source
function (cc/create-buffer-c source dest name)
Inline raw byte file as a c file.Community Examples / source
function (cc/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.Community Examples / source
function (cc/entry-name name)
Name of symbol that enters static compilation of a module.Community Examples / source
function (cc/entry-replace name)
Escape special characters in the entry-nameCommunity Examples / source
function (cc/link-c has-cpp opts target & objects)
Link C or C++ object files together to make a native module.Community Examples / source
function (cc/make-bin-source declarations lookup-into-invocations no-core)Community Examples / source
function (cc/make-define define value)
Generate strings for adding custom defines to the compiler.Community Examples / source
function (cc/make-defines defines)
Generate many defines. Takes a dictionary of defines. If a value is true, generates -DNAME (/DNAME on windows), otherwise -DNAME=value.Community Examples / source
function (cc/modpath-to-meta path)
Get the meta file path (.meta.janet) corresponding to a native module path (.so).Community Examples / source
function (cc/modpath-to-static path)
Get the static library (.a) path corresponding to a native module path (.so).Community Examples / source
function (cc/out-path path from-ext to-ext)
Take a source file path and convert it to an output path.Community Examples / source