My apologies for initiating all this tumult, I will not do it again.
The pertinent question is
As you can see, following the two hopefully "legal" links I gave in the first post of this thread, you may install on a Pi a "freeware" Ceres Worktation Emulation by Josef Templ, under its final version of the V4 framework and Oberon2 langage compiler.Derek_Stewart wrote:HI,
Could Oberon be ported to the QL?
You can use this to code your software "modules", importing modules of the framework and executing their "commands" or exporting them to further modules withing the Ceres executive.
But Josef Templ added also a "transpiler", which in parallel to the Oberon2 compilation will generate two files "in plain old C" that could be used in any plateform that offers a classic Posix environment (with X11 for pixmap display and pointer, if needed).
Let's see a simple example (departing from "HelloWorld", but not quite) :
This is the Oberon2 module "Helene", source file : Helene.Mod
Code: Select all
MODULE Helene ;
IMPORT Out ;
PROCEDURE Salut* ;
Out.String("Salut, Paul ! Comment ca va ?") ;
Out.Ln ;
END Salut ;
END Helene.
a Helene.c file :
Code: Select all
/* Ofront 1.4 -xtpkaG */
#include "SYSTEM.h"
#include "Out.h"
export void Helene_Salut (void);
void Helene_Salut (void)
{
Out_String((CHAR*)"Salut,Paul ! Comment ca va ?", (LONGINT)27);
Out_Ln();
}
export void *Helene__init(void)
{
__DEFMOD;
__IMPORT(Out);
__REGMOD(Helene, 0);
__REGCMD("Salut", Helene_Salut);
/* BEGIN */
__ENDMOD;
}
Code: Select all
/* Ofront 1.4 -xtpkaG */
#ifndef Helene__h
#define Helene__h
#include "SYSTEM.h"
import void Helene_Salut (void);
import void *Helene__init(void);
#endif
I will not try to do it, I am content with a faithfull Ceres emulation on my PIs.
Bye, POLKa