Hello:
There is this "proper procedure" named LED on page 15 in the Oberon-07 Report dated Revision 1.10.2013 / 3.5.2016, which is the newest version of the language.
Proper procedures: Name Argument types Function LED(n) INTEGER display n on LEDs
It is a very convenient procedure indeed. It is provided in both the Oberon System proper, as well as Astrobe. It is used in the core bootloader to track
I have read with more than passing interest regarding comments on implementing Oberon 2 for RISC5 targets. I think this is an excellent idea. While I certainly can understand that the OP2 compiler would struggle with RISC5 on FPGA due to memory limitations in the hardware, I think we may be missing an important segment of application if we focus on an OP2 compiler that is _intended_ to run on a RISC5 FPGA hardware target. It would be very useful to simply have an OP2 backend for RISC5, so that this could be used as a crosscompiler. Most uses that are of a practical nature for RISC5 are not of the full system nature (e.g., running a display, keyboard and mouse, etc.), although such a system has pedagogical value. Instead, they are headless, embedded. If you want a full system, there are certainly much cheaper and much better (color depth, display sizes, etc., etc.) ways of doing this, and these can more or less easily host an Oberon system (see Matthias' excellent OLR work). It would be a useful exercise to have an Oberon 2 compiler for RISC5, but I might suggest that focusing on a back end for OP2 might be preferred, as it would make use of an already well sorted, well pedigreed OP2 scanner/parser/AST capability, so that users would not have to relearn a new compiler's idiosyncracies. As a cross-compiler, one could use the interpreted RISC5 systems (suitably expanded in memory), or one of the myriad of classical Oberon systems to host the OP2 compiler. A worthy longer term goal would be a VM-based RISC5 implementation that supports the display and memory needs/characteristics of the classic V4 and S3 systems, equipped with an (OP2-based) Oberon 2 capable compiler. Then, the user/developer could choose any way they wished to proceed: embedded RISC5, or an immensely portable development/host environment. -Mike -------------------------------------------- On Wed, 11/7/18, <oberon-request@lists.inf.ethz.ch> wrote: Subject: Oberon Digest, Vol 174, Issue 8 To: oberon@lists.inf.ethz.ch Date: Wednesday, November 7, 2018, 6:00 AM Send Oberon mailing list submissions to oberon@lists.inf.ethz.ch To subscribe or unsubscribe via the World Wide Web, visit https://lists.inf.ethz.ch/mailman/listinfo/oberon or, via email, send a message with subject or body 'help' to oberon-request@lists.inf.ethz.ch You can reach the person managing the list at oberon-owner@lists.inf.ethz.ch When replying, please edit your Subject line so it is more specific than "Re: Contents of Oberon digest..." Today's Topics: 1. Re: LED in FPGA Oberon (Walter Gallegos) 2. Re: a module a page (keeps the mind sane)? (Frans-Pieter Vonck) 3. Startup script for Oberon V4 for Linux (Treutwein Bernhard) 4. Re: a module a page (keeps the mind sane)? (Charles Perkins) 5. Re: a module a page (keeps the mind sane)? (Frans-Pieter Vonck) ---------------------------------------------------------------------- Message: 1 Date: Tue, 6 Nov 2018 08:23:47 -0300 From: Walter Gallegos <walter@waltergallegos.com> To: oberon@lists.inf.ethz.ch Subject: Re: [Oberon] LED in FPGA Oberon Message-ID: <25df86bf-11c4-e9c2-e4ca-1e710a294046@waltergallegos.com> Content-Type: text/plain; charset=utf-8; format=flowed Hi Wojtek, LED even practical into PO ecosystem is hardware specific. In my RiscCore there are not LEDs connected to processor core. This functionality is relayed to the custom project. The final user implement your own status indicators in hardware and the correspondent software module; so, LED related lines are commented in my compiler files set to avoid mistakes. Regards. El 5/11/18 a las 23:36, Skulski, Wojciech escribi?: the progression of the code.
However... Is it not strange that
the little debugging utility geared towards just the FPGA applications has been carved into the Language Report? I would rather see it as a SYSTEM feature SYSTEM.LED(n), or as an "undocumented feature" of a particular implementation. Ideally, it would have been a separate MODULE. But I do understand that it was needed for the bootloader which is executed prior to loading the system kernel. In this situation, SYSTEM.LED would be the most appropriate, IMHO.
In my RiskFive we are not
providing the FPGA pins to drive LEDS due to shortage of pins in the Artix-7 in the CSG324 package. I am rather providing an I2C pin expander with eight LEDs. We will provide for eight LEDs driven with outputting an INTEGER to a particular address, where the I2C firmware will take care of sequencing the signals. So I am not ditching the LEDs. But I do not like including such a specialized facility directly in the Language Report.
Wojtek -- Oberon@lists.inf.ethz.ch
mailing list for ETH Oberon and related systems
"Tasks, called commands, are a conceptual pillar of the Oberon operating environment. Making them interruptible adds significant power to the concept In the oberon loop the commands are already interrupted by input events: keyboard, mouse, network communication. Does he mean, tat a task can interrupt another task? Explanation must be found in his
I recommend that you read Wirth's 1996 paper titled "Tasks versus Threads: An Alternative Multiprocessing Paradigm". The relative merits of tasks, processes, coroutines and threads are discussed.
"An alternative to threads is
single-processor multi-tasking systems. It avoids complex and hidden mechanisms for process scheduling, and is therefore particularly suitable for realtime systems requiring fast response times, and for small systems in general."
"Tasks, called commands, are a conceptual pillar of the Oberon operating environment. Making them interruptible adds significant power to the concept and is shown to require surprisingly few changes and additions to the existing system, hence retaining its basic compactness and efficiency."
An implementation of these ideas (called System7) on Native Oberon can be downloaded from the ETH Oberon site:
ftp://ftp.ethoberon.ethz.ch
by following the path:
ETHOberon/Contrib/System7/
Now that interrupts are working on Project Oberon 2013 it would be an interesting exercise to try out
------------------------------ Message: 2 Date: Tue, 06 Nov 2018 14:00:11 +0100 From: Frans-Pieter Vonck <fp@vonck.nl> To: chris@cfbsoftware.com, ETH Oberon and related systems <oberon@lists.inf.ethz.ch> Subject: Re: [Oberon] a module a page (keeps the mind sane)? Message-ID: <02bc95390a406ed158c1aa427bf12b0c@vonck.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Hi Chris, do you have by any chance a link for the article "Tasks versus Threads [..]" I cannot find it on the net. From Wirth: "Embedded Systems and Real-Time Programming" " The next decision was to eliminate the RT-OS, as it seemed possible to do essentially without concurrent processes in the form of threads. The third decision was to program the entire software in Oberon [2], which is very suitable for programming close to the hardware." So he probably used Tasks vs Threads concept for the helicopter. article. Greets, F.P. Chris Burrows schreef op 2018-11-06 11:48: presented as a paradigm for these concepts there as well,
Regards, Chris
Chris Burrows CFB Software http://www.astrobe.com/RISC5
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch]
Frans-Pieter Vonck Sent: Tuesday, 6 November 2018 6:39 PM To: J?rg Straube Cc: ETH Oberon and related systems; paulreed@paddedcell.com Subject: Re: [Oberon] a module a page (keeps the mind sane)?
Hi J rg,
I saw the coroutine module is not yet written for project oberon. But that does not keep me from
multitasking. I will look into that,
Thanks. F.P.
J rg Straube schreef op 2018-11-05 23:22:
F.P.
Installing tasks in the Oberon loop is THE way to enable multi tasking in Oberon.
T := Oberon.NewTask(myHandler, 1000); Oberon.Install(T);
Every 1000 ms the
On Behalf Of trying out the concept of cooperatieve procedure myHandler will be called.
Another way to have
cooperative multitasking is to implement module
Coroutines .
br J rg
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-----Original Message----- From: Tomas Kral [mailto:thomas.kral@email.cz] Sent: Friday, November 02, 2018 1:26 PM To: oberon@lists.inf.ethz.ch Subject: Re: [Oberon] addition: Oberon V4 for Linux
On Fri, 2 Nov 2018 12:07:00 +0000 Treutwein Bernhard <Bernhard.Treutwein@Verwaltung.Uni-Muenchen.DE> wrote:
only a "-- failed" entry in
------------------------------ Message: 3 Date: Tue, 6 Nov 2018 14:36:32 +0000 From: Treutwein Bernhard <Bernhard.Treutwein@Verwaltung.Uni-Muenchen.DE> To: "'oberon@lists.inf.ethz.ch'" <oberon@lists.inf.ethz.ch> Subject: [Oberon] Startup script for Oberon V4 for Linux Message-ID: <78A8BD6765DCF048A628A51C3FBD1D7659BA7F25@MXS2.zuv.uni-muenchen.de> Content-Type: text/plain; charset="us-ascii" I finally succeeded with the following slightly modified startup script: I trried it successfully with TinCore 9.2 (you have to install the bash extension), Q4OS 32bit and 64bit. -------------------------------------------- cut here ----------------- #!/bin/bash # change the line below if you have installed oberon to a different # directory export OBROOT=/usr/local/oberon for f in `find $OBROOT/ -maxdepth 1 -mindepth 1 -type d`; do rm `basename $f` if ! test -e `basename $f` ; then ln -s $f `basename $f` 2> /dev/null fi done rm root ln -s $OBROOT root 2> /dev/null OBERON="./:`find $OBROOT/ -type d | tr "\12" :`" export OBERON xset +fp $OBROOT/xfonts export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OBROOT $OBROOT/oberon $1 $2 $3 $4 $5 -------------------------------------------- cut here ----------------- The differences to the original version of Robert are the following: 1. move -type d behind -mindepth 1 2. append / to $OBROOT in the two find statements (diff -uw sob sob.org): ---------------------------------------- --- /usr/local/oberon/sob 2018-11-06 15:07:13.253525925 +0100 +++ /usr/local/oberon/sob.org 2004-11-05 19:47:16.000000000 +0100 @@ -2,9 +2,9 @@ # directory export OBROOT=/usr/local/oberon -for f in `find $OBROOT/ -maxdepth 1 -mindepth 1 -type d`; do +for f in `find $OBROOT -type d -maxdepth 1 -mindepth 1`; do rm `basename $f` if ! test -e `basename $f` ; then ln -s $f `basename $f` 2> /dev/null @@ -12,7 +12,7 @@ done rm root ln -s $OBROOT root 2> /dev/null -OBERON="./:`find $OBROOT/ -type d | tr "\12" :`" +OBERON="./:`find $OBROOT -type d | tr "\12" :`" export OBERON xset +fp $OBROOT/xfonts export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OBROOT ---------------------------------------- Bernhard the System.log
I recoded to this and now it
works.
#!/bin/sh # oberon start up script
export OBERON=="./:`find $PWD -type
d | tr "\12" :`"
echo $OBERON #xset -display $DISPLAY +fp $PWD/Fonts export LD_LIBRARY_PATH=$PWD ./oberon # eof
I needed to install and load fonts on local machine `RPI', as I connect to x86 server using `ssh -x', wheer Linz Oberon V4 is installed. So I need to run this command on local `xset -display $DISPLAY +fp $PWD/Fonts'
Is there a better way?
-- Tomas Kral <thomas.kral@email.cz>
Hi Chris,
do you have by any chance a link for the article "Tasks versus Threads [..]" I cannot find it on the net.
From Wirth: "Embedded Systems and Real-Time Programming"
" The next decision was to eliminate the RT-OS, as it seemed possible to do essentially without concurrent
threads. The third decision was to program the entire software in Oberon [2], which is very suitable for programming close to the hardware." So he probably used Tasks vs Threads concept for the helicopter.
"Tasks, called commands, are a conceptual pillar of the Oberon operating environment. Making
power to the concept In the oberon loop the commands are already interrupted by input events: keyboard, mouse, network communication. Does he mean, tat a task can interrupt another task? Explanation must be found in his
------------------------------ Message: 4 Date: Tue, 6 Nov 2018 07:05:35 -0800 From: Charles Perkins <chuck@kuracali.com> To: fp@vonck.nl, oberon@lists.inf.ethz.ch Subject: Re: [Oberon] a module a page (keeps the mind sane)? Message-ID: <CABE0DMv1vgcQzp7oK0v9bQyyKQ0Gc=7Jc3LE1SaGnat7OFPgjA@mail.gmail.com> Content-Type: text/plain; charset="utf-8" I have found a copy here: http://norayr.am/papers/WirthTasksVersusThreads.pdf On Tue, Nov 6, 2018 at 5:00 AM Frans-Pieter Vonck <fp@vonck.nl> wrote: processes in the form of them interruptible adds significant article.
Greets, F.P.
Chris Burrows schreef op
I recommend that you read Wirth's 1996 paper titled "Tasks versus Threads: An Alternative Multiprocessing Paradigm". The relative merits of tasks, processes, coroutines and threads are discussed.
"An alternative to threads is
single-processor multi-tasking systems. It avoids complex and hidden mechanisms for process scheduling, and is therefore particularly suitable for realtime systems requiring fast response times, and for small systems in general."
"Tasks, called commands, are a conceptual pillar of the Oberon operating environment. Making
power to the concept and is shown to require surprisingly few changes and additions to the existing system, hence retaining its basic compactness and efficiency."
An implementation of these ideas (called System7) on Native Oberon can be downloaded from the ETH Oberon site:
ftp://ftp.ethoberon.ethz.ch
by following the path:
ETHOberon/Contrib/System7/
Now that interrupts are working on Project Oberon 2013 it would be an interesting exercise to try out these concepts there as well,
Regards, Chris
Chris Burrows CFB Software http://www.astrobe.com/RISC5
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Frans-Pieter Vonck Sent: Tuesday, 6 November 2018 6:39 PM To: J?rg Straube Cc: ETH Oberon and related systems; paulreed@paddedcell.com Subject: Re: [Oberon] a module a page (keeps the mind sane)?
Hi J rg,
I saw the coroutine module is not yet written for project oberon. But that does not keep me from trying out the concept of cooperatieve multitasking. I will look into that,
Thanks. F.P.
J rg Straube schreef op 2018-11-05 23:22:
F.P.
Installing tasks in
tasking
in Oberon.
T := Oberon.NewTask(myHandler, 1000); Oberon.Install(T);
Every 1000 ms the
2018-11-06 11:48: presented as a paradigm for them interruptible adds significant the Oberon loop is THE way to enable multi procedure myHandler will be called.
Another way to have
cooperative multitasking is to implement module
Coroutines .
br J rg
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
I have found a copy here: http://norayr.am/papers/WirthTasksVersusThreads.pdf
On Tue, Nov 6, 2018 at 5:00 AM Frans-Pieter Vonck <fp@vonck.nl> wrote:
Hi Chris,
do you have by any chance a
Threads [..]" I cannot find it on the net.
From Wirth: "Embedded Systems and Real-Time Programming"
" The next decision was to eliminate the RT-OS, as it seemed possible to do essentially without concurrent
of threads. The
decision was to program the entire software in Oberon [2], which is very suitable for programming close to the hardware." So he probably used Tasks vs Threads concept for the helicopter.
"Tasks, called commands, are a conceptual pillar of the Oberon operating environment. Making them interruptible adds significant power to the concept In the oberon loop the commands are already interrupted by input events: keyboard, mouse, network communication. Does he mean, tat a task can
interrupt another task? Explanation must be found in his article.
Greets, F.P.
Chris Burrows schreef op 2018-11-06 11:48:
I recommend that you read Wirth's 1996 paper titled "Tasks versus Threads: An Alternative Multiprocessing Paradigm". The relative merits of tasks, processes, coroutines and threads are discussed.
"An alternative to threads is presented as a paradigm for single-processor multi-tasking systems. It avoids complex and hidden mechanisms for process scheduling, and is therefore particularly suitable for realtime systems requiring fast response times, and for small systems in general."
"Tasks, called commands, are a conceptual pillar of the Oberon operating environment. Making them interruptible adds significant power to the concept and is shown to require surprisingly few changes and additions to the existing system, hence retaining its basic compactness and efficiency."
An implementation of these ideas (called System7) on Native Oberon can be downloaded from the ETH Oberon site:
ftp://ftp.ethoberon.ethz.ch
by following the path:
ETHOberon/Contrib/System7/
Now that interrupts are
working on Project Oberon 2013 it would be an
interesting exercise to
Regards, Chris
Chris Burrows CFB Software http://www.astrobe.com/RISC5
-----Original
Message-----
From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Frans-Pieter Vonck Sent: Tuesday, 6 November 2018 6:39 PM To: J?rg Straube Cc: ETH Oberon and related systems; paulreed@paddedcell.com Subject: Re: [Oberon] a module a page (keeps the mind sane)?
Hi J rg,
I saw the coroutine module is not yet written for project oberon. But that does not keep me from trying out the concept of cooperatieve multitasking. I will look into
Thanks. F.P.
J rg Straube schreef
op 2018-11-05 23:22:
F.P.
Installing tasks in the Oberon loop is THE way to enable multi tasking in Oberon.
T := Oberon.NewTask(myHandler, 1000);
Oberon.Install(T);
Every 1000 ms the
-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20181106/b7fea40e/attachment-0001.html> ------------------------------ Message: 5 Date: Tue, 06 Nov 2018 17:45:42 +0100 From: Frans-Pieter Vonck <fp@vonck.nl> To: Charles Perkins <chuck@kuracali.com> Cc: oberon@lists.inf.ethz.ch Subject: Re: [Oberon] a module a page (keeps the mind sane)? Message-ID: <a620d10d3cce1c78e8c433a6a539d631@vonck.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Thanks, F.P. Charles Perkins schreef op 2018-11-06 16:05: link for the article "Tasks versus processes in the form third try out these concepts there as well, that, procedure myHandler will be called.
Another way to
have cooperative multitasking is to implement module
Coroutines .
br J rg
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
------------------------------ Subject: Digest Footer -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon ------------------------------ End of Oberon Digest, Vol 174, Issue 8 **************************************
Michael: both simple and OP2 compiler would be great to have. The RISC5 back end for the OP2 for cross compilation, and the native Oberon-2 compiler for small embedded systems. At least I can see value in the full fledged FPGA-based Oberon System. I hope that Linz V4 can be hosted in four megabytes offered by RiskFive. A scaled down version can probably be hosted by the 1 meg board. In a longer run a full System 3 can be ported to an FPGA. I wonder if 4 megs are enough. I am contemplating designing a board with Cellular RAM, which is a good compromise between memory capacity, performance, price, and firmware complexity. An FPGA based board with 32 megabyte of Cellular RAM is quite feasible. Such a board can certainly run System-3. W.
I have read with more than passing interest regarding comments on implementing Oberon 2 for RISC5 targets.
I wonder if 4 megs are enough.
Ceres-1 had 2MB and Ceres-3 4MB, so it should be enough even for System 3 See the HW specs linked in https://en.wikipedia.org/wiki/Ceres_(workstation) -- Bernhard
Hi Worth mentioning: Ceres had 256 kB video RAM, ADDITIONAL to the 2 MB RAM. The 256 kB where used to host TWO bitmaps of 1024 x 800 monochrome pixels. Bitmaps could be displayed alternatively. While drawing with Display.Mod: y value 0..799 were one bitmap, y values -800..-1 were the other bitmap. This is a different HW setup than in the current FPGA Oberon design, where the video RAM is physical part of the overall RAM of 1 MB and only covers one bitmap. br Jörg -----Original Message----- From: Oberon <oberon-bounces@lists.inf.ethz.ch> On Behalf Of Treutwein Bernhard Sent: Thursday, November 8, 2018 2:37 PM To: 'ETH Oberon and related systems' <oberon@lists.inf.ethz.ch> Subject: Re: [Oberon] Oberon 2 compiler for RISC5
I wonder if 4 megs are enough.
Ceres-1 had 2MB and Ceres-3 4MB, so it should be enough even for System 3 See the HW specs linked in https://en.wikipedia.org/wiki/Ceres_(workstation) -- Bernhard -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
These RISC5 Oberon compiler RAM requirements pale into insignificance when compared to an implementation of GNU Modula-2 compiler on Linux. My jaw just dropped when I read an announcement on the Modula-2 Google groups about GNU Modula-2 being available on a Beagle Board: "I have finally gotten around to building a native GNU Modula-2 compiler package for Debian Stretch on the BeagleBone. It took about 9 hours to build on a SanCloud BeagleBone Enhanced with 1 GB of RAM. I wasn't able to build successfully on a regular BeagleBone with only 512 MB of RAM." Does anybody have any ideas why the GNU compiler is such a memory hog? If it is the cost of portability I really think there has to be a better way (e.g. the OP2 approach) of achieving that. It hasn't got anything to do with the Modula-2 language itself. E.g. the requirements for MacMETH, the ETHZ single-pass native code compiler for Modula-2 that the original Oberon compiler was derived from, are: "The MacMETH system requires at least a 512 kByte Macintosh and runs on all Macintosh models up to the Quadra. For serious program development, 1 MB of RAM and an external drive or preferably a hard disk is recommended." That's more like it :) Chris Burrows CFB Software http://www.astrobe.com/RISC5
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Skulski, Wojciech Sent: Thursday, 8 November 2018 2:24 PM To: Michael McGaw; ETH Oberon and related systems Subject: Re: [Oberon] Oberon 2 compiler for RISC5
Michael:
both simple and OP2 compiler would be great to have. The RISC5 back end for the OP2 for cross compilation, and the native Oberon-2 compiler for small embedded systems. At least I can see value in the full fledged FPGA-based Oberon System. I hope that Linz V4 can be hosted in four megabytes offered by RiskFive. A scaled down version can probably be hosted by the 1 meg board. In a longer run a full System 3 can be ported to an FPGA. I wonder if 4 megs are enough. I am contemplating designing a board with Cellular RAM, which is a good compromise between memory capacity, performance, price, and firmware complexity. An FPGA based board with 32 megabyte of Cellular RAM is quite feasible. Such a board can certainly run System-3.
W.
I have read with more than passing interest regarding comments on implementing Oberon 2 for RISC5 targets.
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Chris: I vividly remember using Turbo Pascal 4.0 and 5.0 which essentially were Modula-2, or very close to it. I used TP with great success on an 8 MHz PC Turbo with 640 kB of RAM. I had two floppy drives in my computer, one 360 kB and the other 1.2 MB. I used the latter as my system disk where I had DOS and all my Norton utilities and the Turbo Pascal system. Compilation time was blazing fast. I also remember using Professional Fortran on the same system. It was quite OK though it was not running under an IDE.
"The MacMETH system requires at least a 512 kByte Macintosh and runs on all Macintosh models up to the Quadra. For serious program development, 1 MB of RAM and an external drive or preferably a hard disk is recommended." That's more like it :)
Long live GNU, anyway. Wojtek
Chris You‘re right, sounds strange. Let’s assume Debian 9 with KDE uses 444 MB. Don’t know what programming environment was taken (IDE, compiler...); could be that those elements and all their libraries needed more than 68 MB. Perhaps changing KDE to the somewhat smaller XFCE would have helped... I could imagine that if you build it on a bigger machine, that it might be possible being run on a smaller machine. Jörg
Am 18.11.2018 um 06:56 schrieb Chris Burrows <chris@cfbsoftware.com>:
These RISC5 Oberon compiler RAM requirements pale into insignificance when compared to an implementation of GNU Modula-2 compiler on Linux. My jaw just dropped when I read an announcement on the Modula-2 Google groups about GNU Modula-2 being available on a Beagle Board:
"I have finally gotten around to building a native GNU Modula-2 compiler package for Debian Stretch on the BeagleBone. It took about 9 hours to build on a SanCloud BeagleBone Enhanced with 1 GB of RAM. I wasn't able to build successfully on a regular BeagleBone with only 512 MB of RAM."
Does anybody have any ideas why the GNU compiler is such a memory hog? If it is the cost of portability I really think there has to be a better way (e.g. the OP2 approach) of achieving that.
It hasn't got anything to do with the Modula-2 language itself. E.g. the requirements for MacMETH, the ETHZ single-pass native code compiler for Modula-2 that the original Oberon compiler was derived from, are:
"The MacMETH system requires at least a 512 kByte Macintosh and runs on all Macintosh models up to the Quadra. For serious program development, 1 MB of RAM and an external drive or preferably a hard disk is recommended." That's more like it :)
Chris Burrows CFB Software http://www.astrobe.com/RISC5
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Skulski, Wojciech Sent: Thursday, 8 November 2018 2:24 PM To: Michael McGaw; ETH Oberon and related systems Subject: Re: [Oberon] Oberon 2 compiler for RISC5
Michael:
both simple and OP2 compiler would be great to have. The RISC5 back end for the OP2 for cross compilation, and the native Oberon-2 compiler for small embedded systems. At least I can see value in the full fledged FPGA-based Oberon System. I hope that Linz V4 can be hosted in four megabytes offered by RiskFive. A scaled down version can probably be hosted by the 1 meg board. In a longer run a full System 3 can be ported to an FPGA. I wonder if 4 megs are enough. I am contemplating designing a board with Cellular RAM, which is a good compromise between memory capacity, performance, price, and firmware complexity. An FPGA based board with 32 megabyte of Cellular RAM is quite feasible. Such a board can certainly run System-3.
W.
I have read with more than passing interest regarding comments on implementing Oberon 2 for RISC5 targets.
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
On 18/11/2018, Chris Burrows <chris@cfbsoftware.com> wrote (in part): [...]
Does anybody have any ideas why the GNU compiler is such a memory hog?
GM2 is a front-end to the GCC behometh. One must first build the C and C++ portions of the compiler before reaching the GM2 part. (It is an open question to me whether GCC or LLVM is larger.) N.
participants (6)
-
Chris Burrows -
Jörg -
Michael McGaw -
Nemo -
Skulski, Wojciech -
Treutwein Bernhard