Add a file (C file, dll, object, library, ld script). Return -1 if error.
Add include path
The library name is the same as the argument of the '-l' option
Equivalent to -Lpath option
Add a symbol to the compiled program
Add const system include path
Compile a string containing a C source. Return -1 if error.
Define preprocessor symbol 'sym'. Can put optional value
Free a TCC compilation context
Return symbol value or NULL if not found
Create a new TCC compilation context
Output an executable, library or object file. DO NOT call tcc_relocate() before.
Do all relocations (needed before using tcc_get_symbol())
Link and run main() function and return its value. DO NOT call tcc_relocate() before.
Set error/warning display callback
Set CONFIG_TCCDIR at runtime
Set options as from command line (multiple supported)
Set output type. MUST BE CALLED before any compilation
Undefine preprocess symbol 'sym'
Possible values for 'ptr': - TCC_RELOCATE_AUTO : Allocate and manage memory internally - NULL : return required memory size for the step below - memory address : copy code to memory passed by the caller returns -1 if error.