Changes for version 0.9640 - 2022-08-16

  • New Features
    • Add the following native APIs. int32_t (*check_flag_pointer_dont_free)(SPVM_ENV* env, SPVM_VALUE* stack, void* object); void (*enable_flag_pointer_dont_free)(SPVM_ENV* env, SPVM_VALUE* stack, void* object); void (*disable_flag_pointer_dont_free)(SPVM_ENV* env, SPVM_VALUE* stack, void* object); int32_t (*get_pointer_length)(SPVM_ENV* env, SPVM_VALUE* stack, void* object); void (*set_pointer_length)(SPVM_ENV* env, SPVM_VALUE* stack, void* object, int32_t length); void* (*get_pointer_any_info)(SPVM_ENV* env, SPVM_VALUE* stack, void* object); void (*set_pointer_any_info)(SPVM_ENV* env, SPVM_VALUE* stack, void* object, void* any_info);
  • Document Fix
    • Fix the parsing difinition. I have forgot to add the void returning operator in before release.
    • Rename the headding "empty Statement" to "Empty Statement".
    • Rename Operation Statement to Operator Statement.
    • Add void Returning Operator Statement.
  • Document Improvement
    • Method Call becomes headding 1.
  • Improvement Exception Messages
    • Improve many exception messages.
  • Needed Resource Changes
    • The pointer class need the following memory because of the feature that any information can be saved.
      • Before
        • (intptr_t)env->object_header_byte_size + sizeof(void*);
      • After
        • (intptr_t)env->object_header_byte_size + sizeof(void*) * 2;
  • Internal Ineffective Changes
    • Revmoe unneeded SPVM_OP_C_ID_ELEMENT, SPVM_OP_C_ID_OARRAY, SPVM_OP_C_ID_SET, SPVM_OP_C_ID_GET ops.
    • Rename SPVM_OP_C_ID_NULL to SPVM_OP_C_ID_DO_NOTHING.
    • Remove SPVM_OP_C_ID_STAB.
    • Remove SPVM_OP_C_ID_PRECOMPILE, SPVM_OP_C_ID_RW, SPVM_OP_C_ID_RO, SPVM_OP_C_ID_WO, SPVM_OP_C_ID_REQUIRED.
    • Remove SPVM_OP_C_ID_SELF.
    • Remove SPVM_OP_C_ID_BLOCK_END.
    • Reorder ops.
    • The part of spvm_api.c and spvm_api.h is separated to spvm_vm.c and spvm_api_vm.h.
    • SPVM_API_call_spvm_method_vm in spvm_api.c is renamed to SPVM_API_VM_call_spvm_method_vm in spvm_api_vm.c.
    • Reorder opcodes in spvm_api_vm.c.
    • Reorder opcodes in spvm_precompile.c.
    • Change the definition of the following function
      • Before
        • const char* SPVM_OPCODE_get_opcode_name(SPVM_COMPILER* compiler, int32_t opcode_id);
      • After
        • const char* SPVM_OPCODE_get_opcode_name(int32_t opcode_id);
    • The exception messages are shared.
    • Add SPVM_OBJECT_C_FLAG_POINTER_DONT_FREE to spvm_object.h

Documentation

SPVM compiler to create exe file
Generating SPVM Distribution

Modules

SPVM Language
Array Utilities
Blessed object base class
Array based blessed object
Class based blessed object
String based blessed object
Bool object
Build SPVM program
SPVM Builder Public APIs
Compiler and Linker of Native Sources
Link Information
Configurations of Compile and Link of Native Sources
Configurations of creating excutable files.
Create a Executable File
Library Information
Link Information
Object file information
Resourceurations of Compile and Link of Native Sources
Build Utilities
Public APIs of the utility of SPVM Builder
Byte object
Dynamic byte Array
A Interface Type to Clone a Object
Interface Type for the Callback to Clone a Object
Command Line Information
Interface Type for Object Comparation Callback
Interface Type for byte Comparation Callback
Interface Type for double Comparation Callback
Interface Type for float Comparation Callback
Interface Type for int Comparation Callback
Interface Type for long Comparation Callback
Interface Type for short Comparation Callback
Interface Type for String Comparation Callback
double Complex Type
float Complex Type
$class_name is a SPVM module
SPVM Performance Benchmark
SPVM Exchange API
SPVM Language Specification
SPVM Standard Modules
SPVM Native APIs
SPVM Allocator Native APIs
SPVM Compiler Native APIs
SPVM Precompile Native APIs
SPVM Runtime Native APIs
SPVM String Buffer Native APIs
How to write the native module
How to write the resource module
SPVM Performance Tutorial
Double object
Dynamic double Array
Interface Type for Object Equality Checking Callback
a callback implementation of EqualityChecker to check if the memory addresses of the two objects are equal.
Error
Not Supported Error
System Error
SPVM Exchange API
Float object
Dynamic float Array
SPVM Starndard Functions
Format Utilities
Hash Data Structure
Hash entry
Int object
Dynamic int Array
Dynamic Object Array
Long object
Dynamic long Array
Point
Point 3D
Short object
Dynamic short Array
Sorting Functions
String Buffer
Dynamic string array
A Interface Type to Stringify a Object
Interface Type for Stringing Callback
Time Manipulation
Time information

Examples