The biplan.cpp file is a complete and ready to use BIP machine language interpreter.
- Open the console
- Locate the
BIPLAN/examples/LINUX/biplan-interpreterdirectory - Digit
sudo make - Digit
sudo make install
The bcc executable is copied in usr/bin to be reachable everywhere within your system. You can use it to interpret BIP machine language. In this directory you find fib.bip, this file contains a program in BIP machine language that computes the 40th number of the Fibonacci sequence 100.000 times (the human-readable version is fib.biplan). You can use the biplan executable to interpret fib.bip or any other BIPLAN program. To do so:
- Open the console
- Locate the
BIPLAN/examples/LINUX/biplan-interpreterdirectory - Digit
biplan -i fib.bip
Expected output:
BIPLAN interpreter - Giovanni Blu Mitolo 2023
Source: fib.bip
Source length: 57B
Interpreter output:
102334155
Execution duration: 648949 microseconds
You can now write a BIPLAN program, play with the bcc-compiler and use the biplan executable to interpret it.
biplan supports additional arguments:
-apasses an argument to the program-dprints debug information-hprints help