Difference between revisions of "Oo2c"
Jump to navigation
Jump to search
Ivan denisov (talk | contribs) |
Ivan denisov (talk | contribs) |
||
Line 1: | Line 1: | ||
'''oo2c''' translates [[Oberon-2]] source code into a variant of C supported by the gcc family of compilers. It uses a variant of SSA for its intermediate representation, and performs common optimizations like common subexpression elimination, invariant code motion, constant propagation, algebraic transformations, and dead code removal. The compiler relies on Boehm's gc for garbage collection. | '''oo2c''' translates [[Oberon-2]] source code into a variant of C supported by the gcc family of compilers. It uses a variant of SSA for its intermediate representation, and performs common optimizations like common subexpression elimination, invariant code motion, constant propagation, algebraic transformations, and dead code removal. The compiler relies on Boehm's gc for garbage collection. | ||
= Installation = | |||
== Linux == | |||
1. Download sources from: http://github.com/AlexIljin/oo2c | |||
git clone http://github.com/AlexIljin/oo2c.git | |||
2. Compilation of [[oo2c]]: | |||
cd oo2c | |||
export LDFLAGS="-lm" | |||
chmod +x configure | |||
./configure --prefix /usr | |||
make | |||
sudo make install | |||
= Usage = | |||
oo2c used for building [[H2O]] for making import modules for [[Oberon]] and [[Component Pascal]]. | oo2c used for building [[H2O]] for making import modules for [[Oberon]] and [[Component Pascal]]. | ||
= Links = | |||
* [https://github.com/AlexIljin/oo2c Current version repository] | * [https://github.com/AlexIljin/oo2c Current version repository] |
Revision as of 09:05, 17 August 2014
oo2c translates Oberon-2 source code into a variant of C supported by the gcc family of compilers. It uses a variant of SSA for its intermediate representation, and performs common optimizations like common subexpression elimination, invariant code motion, constant propagation, algebraic transformations, and dead code removal. The compiler relies on Boehm's gc for garbage collection.
Installation
Linux
1. Download sources from: http://github.com/AlexIljin/oo2c
git clone http://github.com/AlexIljin/oo2c.git
2. Compilation of oo2c:
cd oo2c export LDFLAGS="-lm" chmod +x configure ./configure --prefix /usr make sudo make install
Usage
oo2c used for building H2O for making import modules for Oberon and Component Pascal.