[Oberon] System V5 - SYSTEM.Mod creation

Chris Burrows chris at cfbsoftware.com
Tue Apr 26 14:43:37 CEST 2016


> -----Original Message-----
> From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of
> eas lab
> Sent: Sunday, 17 April 2016 1:35 PM
> To: ETH Oberon and related systems
> Subject: Re: [Oberon] System V5 - SYSTEM.Mod creation
> 
> > Module SYSTEM uses the same syntax as "normal" modules, but the
> > implementation is provided directly by the compiler.
> 
> > Eg when you write SYSTEM.GET it's more like an embedded assembler
> > statement as the compiler will generate a Load instruction to get a
> > word or a byte from memory.
> 
> The compiler is tied to the CPU architecture?
> Or you could have separate <plugin> modules for each architecture?
> 

Wirth's most recent Oberon compilers comprise one module for each of the
following four tasks:

Scanner
Parser
Symbol Table processing
Code Generator

The first three modules (about 60% of the RISC5 compiler) are mostly CPU
architecture independent. The Code Generator is the only one that is
substantially different for each target. The instructions generated by
SYSTEM.GET are specified in the Code Generator.

Regards,
Chris

CFB Software
http://www.astrobe.com/RISC5







More information about the Oberon mailing list