Gentee Programming Language > Documentation > Launch Download documentation

ge_compile

This function allows to compile programs in Gentee.
 
DWORD WINAPI ge_compile(
      BYTE*   filename,
      BYTE*   fileout,
      sbcode*   bcode,
      DWORD   cflag,
      BYTE*   args
)

Parameters

filenameFilename for compilation. As this parameter, you can specify text of the program to be compiled. At that, the text should begin with the name of the program, enclosed in angle brackets: <Program_name>.
fileoutFilename for recording the resulting bytecode. If “0,” filing will not be performed.
bcodeStructure pointer sbcode. If not “0,” the structure will contain the resulting bytecode, which can be loaded by ge_load or filed. After finishing the work, delete the bytecode with the help of the function ge_freebcode.
 
type sbcode {
      uint   data
      uint   size
      byte   reserved[ 9 ]
}

Fields

dataResulting bytecode pointer.
sizeBytecode’s size.

cflagCompilation flags.
COMPILE_NOSTDDo not link the standard library.
argsargs,Compiler’s arguments. They are intended for detecting macros from the command line. Macros should be separated by semicolon. This parameter may equal zero.

Return value

Nonzero if initialization was successful; otherwise 0.

See also

    Gentee API functions


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