@VMCreate

Parent Previous Next

@VMCreate.

Creates a new VM by loading the compiled bytecode. Returns a unique identity number of the VM.


Syntax.


 @VMCreate(String asmByteCode) : Integer

 


Arguments:


The parameter asmByteCode can accept a redirection to a Compilation Unit File (CUF) written as "FILE=full_path_to_CUF". Using a redirection to a CUF can be desirable during development and test - in order to avoid repeating copy and paste operations of the bytecode on every compilation. Compiling to a CUF is specified in the project properties.


Example:


 Function SpecialLoadWhileTesting() : Integer

 {

   Integer vm;

   String asmByteCode := "FILE=c:\test\myCUF.txt";

   vm := @VMCreate(asmByteCode);

   Return vm;

 }