Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2023-04

Oberon-0

10 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Adriaan van Os

Any suggestions for running simple Oberon-0 programs on the MacOSX command-line ? EIther by emulating its RISC processor or by changing the Oberon-0 compiler ? I prefer not to load the entire Oberon system (for which there do exist emulators).

Regards,

Adriaan van Os

Markus Greim
to Adriaan van Os

Hi Adriaan,

whats about a Oberon-0 compiler compiling to Forth? And then Forth to MacOSX? (RetroForth, Swift or whatever)

That may sound silly, but such a Compiler would help a lot to port Obern to other platforms resp Microcontrollers etc. For example to the Propeller II ....

Kind Regards

Markus

Earlier message 8 lines
--- original message --- On April 18, 2023 at 12:13 PM GMT+2 wrote: Any suggestions for running simple Oberon-0 programs on the MacOSX command-line ? EIther by emulating its RISC processor or by changing the Oberon-0 compiler ? I prefer not to load the entire Oberon system (for which there do exist emulators). Regards, Adriaan van Os
Adriaan van Os
Any suggestions for running simple Oberon-0 programs on the MacOSX command-line ? EIther by emulating its RISC processor or by changing the Oberon-0 compiler ? I prefer not to load the entire Oberon system (for which there do exist emulators).

To answer my own question .... maybe the simplest option is to port the Oberon-0 compiler code to FPC and to link-in the Oberon-0 provided RISC module, which contains an interpreter for the target RISC processor, as described in the Wirth's Compiler Construction book.

Regards,

Adriaan van Os

Unknown author
to Markus Greim: whats about a Oberon-0 compiler compiling to Forth? And then Forth to MacOSX?…

Gcc has already been ported to the propeller II, (and it runs on the original propeller too), so porting other languages should be "relatively" easy.  I've not made the attempt to port anything yet though, mostly because I've been out of the propeller world for a couple years, and now that the version 2 is out, I'm trying to reestablish some working environments so I can use the propeller 2.  I have bought some of the mystery boxes, which gave me a propeller 2 edge board with 32MB of ram, but I don't think I have an actual propeller 2 just yet.  Needing others to id things for me is making the list of products I have hard to create, but I'm getting there.

Anyway, since gcc exists, any compiler that uses gcc as the backend should be possible to port.  I've thought about porting FPC, but I'd have to start with a version that's already meant for smaller systems, I do believe someone posted a link to one a few months ago, perhaps that one could be used as a jumping off point, would be interesting to see pascal available for the propeller boards.

Markus Greim wrote 31 lines
Hi Adriaan, whats about a Oberon-0 compiler compiling to Forth? And then Forth to MacOSX? (RetroForth, Swift or whatever) That may sound silly, but such a Compiler would help a lot to port Obern to other platforms resp Microcontrollers etc. For example to the Propeller II .... Kind Regards Markus Sent from Front > On April 18, 2023 at 12:13 PM GMT+2 > wrote: > > Any suggestions for running simple Oberon-0 programs on the MacOSX > command-line ? EIther by emulating its RISC processor or by changing > the Oberon-0 compiler ? I prefer not to load the entire Oberon system > (for which there do exist emulators). > > Regards, > > Adriaan van Os > _______________________________________________ > fpc-pascal maillist - > https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Markus Greim
to Unknown author

You are right there are in between many compilers for the Propeller 2 around. My idea would be a to have an Oberon system on the Propeller itself. Developing on the target itself is unbeatable clever. Is started 35 Years ago with the 8051-AH Basic processor and later on similar systems.

The Propeller 2 has already a built in Forth which is already a fine thing, but I am sure the Processor is powerful enough to run also a full Oberon in the latest flavor of the RISC5 system.
The Oberon0 compiler would be necessary as bootstrap for a full Oberon system. A native Oberon0 to Propeller ASM compiler would be fine, but maybe it would be easier to write first an Oberon0 to PropForth compiler.

Kind Regards

Markus

Earlier message 78 lines
--- original message --- On April 19, 2023 at 1:25 AM GMT+2 wrote: Gcc has already been ported to the propeller II, (and it runs on the original propeller too), so porting other languages should be "relatively" easy. I've not made the attempt to port anything yet though, mostly because I've been out of the propeller world for a couple years, and now that the version 2 is out, I'm trying to reestablish some working environments so I can use the propeller 2. I have bought some of the mystery boxes, which gave me a propeller 2 edge board with 32MB of ram, but I don't think I have an actual propeller 2 just yet. Needing others to id things for me is making the list of products I have hard to create, but I'm getting there. Anyway, since gcc exists, any compiler that uses gcc as the backend should be possible to port. I've thought about porting FPC, but I'd have to start with a version that's already meant for smaller systems, I do believe someone posted a link to one a few months ago, perhaps that one could be used as a jumping off point, would be interesting to see pascal available for the propeller boards. On 4/18/2023 6:21 AM, Markus Greim via fpc-pascal wrote: > Hi Adriaan, > whats about a Oberon-0 compiler compiling to Forth? > And then Forth to MacOSX? (RetroForth, Swift or whatever) > That may sound silly, but such a Compiler would help a lot> to port Obern to other platforms resp Microcontrollers etc. > For example to the Propeller II .... > Kind Regards > Markus >> On April 18, 2023>> at 12:13 PM GMT+2 >> wrote: >> Any suggestions for running simple>> Oberon-0 programs on the MacOSX command-line ? EIther by>> emulating its RISC processor or by changing the Oberon-0>> compiler ? I prefer not to load the entire Oberon system (for>> which there do exist emulators). >> Regards, >> Adriaan van Os >> _______________________________________________ >> fpc-pascal maillist - >> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal > _______________________________________________>fpc-pascal maillist - >https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal --- end of original message ---
Ralf Quint
to Markus Greim
Markus Greim wrote 15 lines
You are right there are in between many compilers for the Propeller 2 around. My idea would be a to have an Oberon system on the Propeller itself. Developing on the target itself is unbeatable clever. Is started 35 Years ago with the 8051-AH Basic processor and later on similar systems. The Propeller 2 has already a built in Forth which is already a fine thing, but I am sure the Processor is powerful enough to run also a full Oberon in the latest flavor of the RISC5 system. The Oberon0 compiler would be necessary as bootstrap for a full Oberon system. A native Oberon0 to Propeller ASM compiler would be fine, but maybe it would be easier to write first an Oberon0 to PropForth compiler.

What does Oberon and Forth have to do with the FreePascal compiler? 😕

Ralf

Tomas Hajny
to Ralf Quint
Ralf Quint wrote
On 4/19/2023 1:06 AM, Markus Greim via fpc-pascal wrote:

.
.

Show quoted text 5 lines
> A native Oberon0 to Propeller ASM compiler would be fine, but maybe > it would be easier to write first an Oberon0 to PropForth compiler. What does Oberon and Forth have to do with the FreePascal compiler? 😕

Thanks Ralf, that's a fair comment - I suggest moving possible continuation of this discussion to the fpc-other list.

Tomas
(one of FPC mailing list moderators)

Sven Barth
to Adriaan van Os

Adriaan van Os via fpc-pascal schrieb am
Do., 20. Apr. 2023, 04:46:

Show quoted text 9 lines
Ralf Quint via fpc-pascal wrote: > What does Oberon and Forth have to do with the FreePascal compiler? 😕 1. Niklaus Wirth 2. Strong resemblance between Oberon and Pascal 3. An early version of his book Compiler Construction used Pascal rather than Oberon

Still no reason that this is discussed on fpc-pascal instead of fpc-other as the former is for *using FPC*.

Regards,
Sven

Ralf Quint
to Adriaan van Os: 1. Niklaus Wirth 2. Strong resemblance between Oberon and Pascal 3. An early version of…
Adriaan van Os wrote 8 lines
Ralf Quint via fpc-pascal wrote: > What does Oberon and Forth have to do with the FreePascal compiler? 😕 1. Niklaus Wirth 2. Strong resemblance between Oberon and Pascal 3. An early version of his book Compiler Construction used Pascal rather than Oberon

Well, still, neither one of those IMHO is a valid reason as to why this is discussed on a Free Pascal mailing list, beside possibly on fpc-other, as suggested.

Ralf