Skip to content

A library providing representation of Sala programs with their interpretation and analysis.

License

Notifications You must be signed in to change notification settings

staticafi/libsala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sala

Sala is an acronym for Simple Assembly LAnguage. Its instructions are similar to those in LLVM. However, everything is considerably simplified. For instance, registers are all just genuine local (stack) variables. There are no types associated with variables or any data. Functions return values via the first parameter. Constant and data segment is initialized via regular code (inside the initializer routine). The code is not in SSA form. And more. See the header file program.hpp for details about the instruction set.

The library also comprises Interpreter class providing interpreted execution of a sala program. The Sanitizer class can be used to prevent crash of the entire Interpreter, if the execution would trigger a serious defect in the program.

Dependencies

libutility

About

A library providing representation of Sala programs with their interpretation and analysis.

Resources

License

Stars

Watchers

Forks

Packages

No packages published