Skip to content

Latest commit

 

History

212 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

morpho-bytecodeoptimizer

This experimental package provides a bytecode optimizer for morpho that aims to make morpho programs run faster.

Installation and Prerequisites

To install the package, clone this repository onto your computer in any convenient place:

git clone https://github.com/morpho-lang/morpho-bytecodeoptimizer.git

then add the location of this repository to your .morphopackages file.

echo PACKAGEPATH >> ~/.morphopackages 

where PACKAGEPATH is the location of the git repository.

You need to compile the extension, which you can do by cd'ing to the repository's base folder and typing

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release .. 
make install

Run programs with the optimizer enabled using Morpho's --eval preamble and -O:

morpho6 --eval "import bytecodeoptimizer" -O myprog.morpho

Alternatively, you can put import bytecodeoptimizer in the source file and run with -O.

About

A bytecode optimizer for the morpho VM

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages