Loading...
Searching...
No Matches
Generic compiler

Path: /sdk/samples/asbuild/

This sample shows how a generic bytecode compiler can be built to provide offline compilation of scripts. It takes as input a configuration file that defines the application interface, registers it using dummy functions and properties, then it compiles the script and saves the bytecode to a file on disk.

The configuration file should preferably be created automatically by calling the WriteConfigToFile helper function. This function should be called from the application that will execute the bytecode, after the application interface has been fully registered.

- Pre-compiled byte code
- Script builder
- asIScriptEngine::SetMessageCallback
- asEP_INIT_GLOBAL_VARS_AFTER_BUILD
- asIScriptEngine::ParseToken
- asIScriptModule::SaveByteCode
- asIBinaryStream