slenkar писал(а):
can ofront be compiled for linux? (if it is a command line utility it shouldnt need many changes)
(Its still doing the same problem where it calls the init functions forever)
Hmm... maybe first I understand your "forever init" not so correctly. The idea was that each module can be initialized more than once due to the fact that modules that import the module would call its initializer several times. And the initializer must check is it called first time, or not, and return if it was already called.
Try to understand where is looped code, by printing control characters to screen. Try to emulate native module initializers by just Init procedures that may be called manually from main module only. In general, I guess that's not a problem of Ofront, SYSTEM.h or SDCC, and a problem of your code.
slenkar писал(а):
I looked in GitHub at ofront but I didnt see any C++ code to compile
All right. Ofront is written in Oberon and need to be translated to C by itself.
I have not tried to build Linux version of Ofront (and haven't experience with it), but I have a desire to make the console version for Linux and Windows, maybe I'll try to do it soon.