[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Oberon-2 (oo2c) for 6502
On Feb 10, 8:27 am, aiiad...@gmail.com wrote:
> On Feb 9, 8:18 am, gno...@gmail.com wrote:
>
> > I am proud to announce that I have managed to prepare patched oo2c/
> > libraries to work with cc65 c compiler for 6502.
>
> according tohttp://ooc.sourceforge.net/,
>
> Oberon-2 is a programming language. What computers
> was it available for?
It was originally written for Ceres workstations at ETH to develop an
operating system.
That was a microkernel os with many advanced features like garbage
collection and dynamic module loading.
Original os and compiler had approx 200 kb in size. Compiler
recompiled itself in approx 25 seconds on a 20 mhz cpu.
More information you could find at http://www.oberon.ethz.ch
> oo2C is an Oberon2 (oo) language to C (2c) language
> converter..
No, to be precise, oo2c is an Oberon-2 compiler. Its frontend
generates abstract syntax tree.
oo2c developers decided instead of writing backends for many different
cpu's and architectures write one backend, which translates
intermediate representation into not readable, highly optimized c
code.
Thus c is used as a kind of portable assembler.
That is why If you look at the c code it generates, you will find it
very similar to assembly language.
> it converts Oberon2 to cc65 compatible C code..
See above, not converts, but generates from an intermediate
representation. The work have been done to adapt it to 8 bit cpu's
and to compile minilib (originally designed by Stewar Greenhill for
avr microcontrollers) with cc65, instead of gcc.
It was not easy task :) gcc and cc65 is very different.
> What are the advantages of the language?
Oberon is a successor of Pascal and Modula-2, it is much simpler, but
more powerful.
Language is object oriented, strong typed, modular with
_type_checking_across_module_boundaries_
garbage collection yet not supported in 6502 version