WebAssembly Script Compiler
To create wasm files that can be used on the Internet or locally.
How does it work
?The compiler needs only one command line to generate C++ code and compile it into WebAssembly. Exempli gratia:
./solc hello
This creates the hello.cpp, hello.hpp, hello.o, and hello.wasm files.
To create wasm code, you need to install Emscribtem, and to execute it in the command line - Wasmer.
Windows requires Visual Studio to be installed. You also need to install C++ command line components from it.
Options
- - h
Creates wasm, js, and html files. - - l
Creates a wasm file for download to a web page or local use by another program with node.js - - r
Compiles script sources into wasm if necessary and executes the wasm program locally. - - b
Compiles all script sources and C++. - - c
Compiles script sources only in C++. - - w
Compiles C++ files created from script sources without compiling. This allows testing of C++ files. - - v
Displays all processing floors. - - q
Compile without displaying messages.
Why use Scriptol right away, not C++?
- You don't need a scriptol, let's just name the main source file.
- No need to write header files (except for external libraries) In
- C++ statements are also expressions and a string of type: if (a = 10) means that 10 is assigned to the variable a and the content of a is compared to zero, rather ambiguously...
- Clear syntax - C over 30 years old!
- Fully oriented objects, variables, and literals are methods.
- Tables that may increase in size during processing.
- Associative tables.
- Dynamic variables.
- Extra semicolons, one line as while (i <10); Creating an infinite loop cannot happen by mistake .
- More developed control structures.
- Install and use the Script C++ compiler.
- Compiler Versions.
- Scripts. Modularity at the highest level.