You can now use the spvmcc command to generate an executable file from the SPVM source code.
You can now use the spvmcc command to generate an executable file from the SPVM source code.
SPVM is a module that can convert Perl-like source code into C language and execute it.
I have succeeded in generating an executable in a very stable way.
SPVM source code
# MyApp.spvm package MyApp : precompile { sub main : int ($args : string[]) { my $total = 0; for (my $i = 0; $i < 100000; $i++) { $total += $i; } print "$total\n"; } }
Create Excutable File and execute it
Create Executable Filespvmcc -I . -o myapp MyApp
Execute Executable File
./myapp
You can install SPVM from CPAN
cpan SPVMor
cpanm SPVM
Leave a comment