Difference between revisions of "Oo2c"

From BlackBox Framework Wiki
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
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.


oo2c used for building [[H2O]] for making import modules for [[Oberon]] and [[Component Pascal]].
= Installation =


=== Links ===
1. Download binary distribution and install it: https://sourceforge.net/projects/ooc/files/ooc2/2.1.11/


* [https://github.com/AlexIljin/oo2c Current version repository]
./configure
sudo make install
 
2. Download last sources from: https://github.com/Spirit-of-Oberon/oo2c
 
git clone https://github.com/Spirit-of-Oberon/oo2c
 
3. Compile last version of '''oo2c''' from repository:
 
cd oo2c
make cvsclean
./configure
. ENV
make $OOC_DEV_ROOT/oo2crc-install.xml
/usr/bin/oo2c -M --config oo2crc-install.xml oo2c
make install BOOTSTRAP_COMPILER=bin/oo2c
 
= Usage =
 
'''oo2c''' used for building [[H2O]] for making import modules for [[Oberon]] and [[Component Pascal]].
 
= Links =
 
* [https://github.com/Spirit-of-Oberon/oo2c Current version repository]

Latest revision as of 19:44, 23 April 2016

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

1. Download binary distribution and install it: https://sourceforge.net/projects/ooc/files/ooc2/2.1.11/

./configure
sudo make install

2. Download last sources from: https://github.com/Spirit-of-Oberon/oo2c

git clone https://github.com/Spirit-of-Oberon/oo2c

3. Compile last version of oo2c from repository:

cd oo2c
make cvsclean
./configure
. ENV
make $OOC_DEV_ROOT/oo2crc-install.xml
/usr/bin/oo2c -M --config oo2crc-install.xml oo2c
make install BOOTSTRAP_COMPILER=bin/oo2c

Usage

oo2c used for building H2O for making import modules for Oberon and Component Pascal.

Links