Oberon Community Platform Forum
December 12, 2019, 09:20:49 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Command-line ETH Oberon Portable Compiler and Linker for Win32  (Read 7396 times)
AlexIljin
Newbie
*
Posts: 3



« on: December 02, 2010, 03:16:20 PM »

I'd like to announce that a command-line compiler project was recently published. Basically, it's the OP compiler from ETH Plugin Oberon for Windows Release 2.4 packaged as a command-line tool by Eugene Shcherbatyuk (I tried to contact him, but his e-mail address apparently now belongs to someone else). I got the package from Andras Pahi over 2.5 years ago, and it recently became interesting to me.

I amended the package so that compiler can compile itself, fixed a couple of minor bugs and added/updated sample projects (Hello*). The build tool of choice is GNU Make, but simple bat-files are included as well if you don't have Make installed. If you do want to use Make you will also need the GNU tr utility for a successful build.
  Pre-built executables of the compiler and linker are included as well.

I also added a linker option '/d' to output a list of project dependencies extracted from a given Link-file. This is used to automate building with Make.

The project is hosted at GitHub, and the VCS of choice is Git.
Project page: https://github.com/AlexIljin/OPCL
Git link: git://github.com/AlexIljin/OPCL.git
Git VCS: http://git-scm.com/

I have some plans on udpating the project. One of the tasks is to update the compiler to its current state from the latest version of Plugin Oberon I got from Emil Zeller recently (add MMX/SSE/SSE2 and delegates, Kernel module fix, etc.). Suggestions and contributions are welcome, please, use this simple issue tracker:
  https://github.com/AlexIljin/OPCL/issues

Also, if you have any questions about Git, the project, etc, please, don't hesitate to ask.
Logged
leledumbo
Jr. Member
**
Posts: 96



WWW
« Reply #1 on: February 04, 2011, 03:32:10 PM »

Finally... a true Oberon Compiler for Win32 from its origin. I hope I can make a contribution, is there any documentation regarding the compiler itself (i.e. parsing technique, error recovery, code generation approach, etc)?
Logged
AlexIljin
Newbie
*
Posts: 3



« Reply #2 on: February 04, 2011, 06:15:56 PM »

Simple 1-pass recursive descend parsing with intermediate representation before code generation. I by no means am an expert in these matters, so I can just direct you to the author's book: Compiler Construction.
« Last Edit: February 04, 2011, 06:19:42 PM by AlexIljin » Logged
leledumbo
Jr. Member
**
Posts: 96



WWW
« Reply #3 on: February 05, 2011, 06:02:03 PM »

I see... so it's a real compiler from the book. OK, I think I know where to add more features...
Logged
cfbsoftware
Full Member
***
Posts: 107


WWW
« Reply #4 on: February 06, 2011, 12:09:02 AM »

Wirth's book is an introduction to compiler writing techniques. The example compiler included compiles a very limited subset of the Oberon language. The portable enhanced 'OP2' compiler used in the Oberon PlugIn for Windows is documented in ETH Technical Report 125: R. Crelier; "OP2: A Portable Oberon Compiler". You can download a copy from:

ftp://ftp.inf.ethz.ch/pub/publications/tech-reports/1xx/125.pdf
« Last Edit: February 06, 2011, 12:13:06 AM by cfbsoftware » Logged

Chris Burrows
Astrobe v7.0 (Feb 2019): Oberon for ARM Cortex-M3, M4 and M7 Microcontrollers
http://www.astrobe.com
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!