Gentee Programming Language > Documentation > Launch Download documentation

ge_load

This function executes specified bytecode.
 
DWORD WINAPI ge_load(
      BYTE*   bytecode,
      DWORD   loadflag,
      BYTE*   args
)

Parameters

bytecodeExecuted bytecode pointer.
loadflagBytecode launching flags. If flags are not used, the bytecode will be loaded to memory without execution.
GLOAD_FILELoad the bytecode from the file. bytecode contains filename.
GLOAD_ENTRYLoad the bytecode and execute the functions with flags entry.
GLOAD_MAINSame as GLOAD_ENTRY and execute function with flag main.
GLOAD_CMDARGSGet arguments from the command line of the current process.
argsCommand line arguments for launching the resulting bytecode. The arguments should be separated by the “0” symbol, the last argument should be followed by two zeros. Arguments are defined automaticaly if GLOAD_CMDARGS is specified.

Return value

The result of the bytecode’s work.

See also

    Gentee API functions     ge_compile


 Copyright © 2004-2006 Gentee Inc. All rights reserved.