deploy-c-types?
Factor handbook » Developer tools » Application deployment » Preparing to deploy an application » Deployment flags

Prev:deploy-word-props?
Next:deploy-console?


Vocabulary
tools.deploy.config

Word description
Deploy flag. If set, the deploy tool retains word properties containing metadata for C types and struct classes; otherwise, these properties are stripped out, saving space.

Off by default.

The optimizing compiler is able to fold away calls to various words which take a C type as an input if the C type is a literal string, for example,
c-type
heap-size
<c-array>
<c-direct-array>
malloc-array
<ref>
deref

If your program looks up C types dynamically or from words which do not have a stack effect, you must enable this flag, because in these situations the C type lookup code is not folded away and the word properties must be consulted at runtime.

Definition