Changes for version 0.9677 - 2022-01-06

  • Changes
    • Dynamic library files are loaded at run-time instead of compile-time.
  • Bug Fix
    • Fixed the bug that the SPVM compiler is not released.
  • Incompatible Changes
    • Changed the names of the following Compiler Native APIs.
      • int32_t (*compile_spvm)(void* compiler, const char* class_name);
      • int32_t (*compile)(void* compiler, const char* class_name);
    • Changed the names of the following String Buffer Native APIs.
      • void* (*new_string_buffer_tmp)();
      • void* (*new_object)();
      • void (*free_string_buffer)(void* string_buffer);
      • void (*free_object)(void* string_buffer);
    • Changed the names of the following Precompile Native APIs.
      • void* (*new_precompile)();
      • void* (*new_object)();
      • void (*free_precompile)(void* precompile);
      • void (*free_object)(void* precompile);
    • Changed the names of the following Allocator Native APIs.
      • void* (*new_allocator)();
      • void* (*new_object)();
      • void (*free_allocator)(void* allocator);
      • void (*free_object)(void* allocator);
    • Changed the names of the following Compiler Native APIs.
      • void* (*new_compiler)();
      • void* (*new_object)();
      • void (*free_compiler)(void* compiler);
      • void (*free_object)(void* compiler);
    • Changed the names of the following Runtime Native APIs.
      • void* (*new_runtime)();
      • void* (*new_object)();
      • void (*free_runtime)(void* runtime);
      • void (*free_object)(void* runtime);
    • Changed the definitions of the following Native APIs.
      • void (*cleanup_global_vars)(SPVM_ENV* env, SPVM_VALUE* stack);
      • void (*cleanup_global_vars)(SPVM_ENV* env);
      • void (*call_init_blocks)(SPVM_ENV* env, SPVM_VALUE* stack);
      • void (*call_init_blocks)(SPVM_ENV* env);
      • int32_t (*set_command_info_program_name)(SPVM_ENV* env, SPVM_VALUE* stack, void* obj_program_name);
      • int32_t (*set_command_info_program_name)(SPVM_ENV* env, void* obj_program_name);
      • int32_t (*set_command_info_argv)(SPVM_ENV* env, SPVM_VALUE* stack, void* obj_argv);
      • int32_t (*set_command_info_argv)(SPVM_ENV* env, void* obj_argv);
    • The program name and command line arguments are not used in INIT blocks.
    • The main method of the program that is generated by the spvmcc command doesn't receive the program name and the command line arguments. The program name can be get CommandInfo->PROGRAM_NAME. The command line arguments can be get CommandInfo->ARGV.
  • New Features
    • The pointer class can have fields.
    • The object of the pointer class can be created by the new operator.
    • The pointer class can inherit the parent class.
  • Compilation Error Message Fix
    • Fixed the compilation error messages
      • Before
        • The class "%s" method The instance "%s" method
      • After
        • The "%s" class method The "%s" instance method
  • Exception Message Improvement
    • Unified exception messages in Exchange API.
      • Before
        • %s basic type %s field %s class %s method
      • After
        • "%s" basic type "%s" field "%s" class "%s" method
  • Memory Usage Degration
    • Internal object data has the native_object member variable. This size is the size of void*. This is used for the pointer class.

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 Class
Dynamic byte Array
Interface Type to Clone Object
Interface Type for the Callback to Clone a Object
Command Line Information
Interface Type for Object 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 String Comparation Callback
double Complex Type
float Complex Type
SPVM Performance Benchmark
SPVM Exchange API
SPVM Language Specification
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 Class
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 Class
Dynamic float Array
SPVM Starndard Functions
Format Utilities
Hash Data Structure
Hash entry
Int Class
Dynamic int Array
Dynamic Object Array
Long Class
Dynamic long Array
Point
Point Interface
Point 3D
Executing Handler at End of Scope
Handler of Scope::Guard
Short Class
Dynamic short Array
Sorting Functions
String Buffer
Dynamic string array
A Interface Type to Stringify a Object
Interface Type for Stringing Callback
Time Manipulation
struct tm in C language

Provides

in lib/SPVM/Builder/Compiler.pm
in lib/SPVM/Builder/Compiler/Util.pm
in lib/SPVM/Dist.pm

Examples