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


cc/archive-c function source

(archive-c opts target & objects)

Link object files together to make a static library.


cc/compile-c function source

(compile-c compiler opts src dest &opt static?)

Compile a C file into an object file.


cc/create-buffer-c function source

(create-buffer-c source dest name)

Inline raw byte file as a c file.


cc/create-buffer-c-impl function source

(create-buffer-c-impl bytes dest name)


cc/create-executable function source

(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.


cc/embed-name function source

(embed-name path)

Rename a janet symbol for embedding.


cc/entry-name function source

(entry-name name)

Name of symbol that enters static compilation of a module.


cc/entry-replace function source

(entry-replace name)

Escape special characters in the entry-name


cc/link-c function source

(link-c has-cpp opts target & objects)

Link C or C++ object files together to make a native module.


cc/make-bin-source function source

(make-bin-source declarations lookup-into-invocations no-core)


cc/make-define function source

(make-define define value)

Generate strings for adding custom defines to the compiler.


cc/make-defines function source

(make-defines defines)

Generate many defines. Takes a dictionary of defines. If a value is true, generates -DNAME (/DNAME on windows), otherwise -DNAME=value.


cc/modpath-to-meta function source

(modpath-to-meta path)

Get the meta file path (.meta.janet) corresponding to a native module path (.so).


cc/modpath-to-static function source

(modpath-to-static path)

Get the static library (.a) path corresponding to a native module path (.so).


cc/out-path function source

(out-path path from-ext to-ext)

Take a source file path and convert it to an output path.