Lightweight Modular Staging (LMS) is a runtime code generation approach. This framework, LMS-Core, provides a library of core components for building high performance code generators and embedded compilers in Scala.
Closely related projects are Delite, a framework for heterogeneous parallel domain specific languages (DSLs), and Scala-Virtualized, a set of minimal extensions to the Scala compiler to make embedding DSLs more seamless.
-
Install the SBT build tool.
-
Run
sbt test
to run the test suite. -
Run
sbt publish-local
to install LMS-Core for use in other projects.
If you get the following exception when running sbt publish-local
:
java.lang.OutOfMemoryError: PermGen space
Error during sbt execution: java.lang.OutOfMemoryError: PermGen space
tsf-444-wpa-1-148:lms noetzli$ export SBT_OPTS=-XX:MaxPermSize=256m
Use export SBT_OPTS="-XX:MaxPermSize=256m -Xmx2048m"
.
Copyright 2010-2014, EPFL. Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0