Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Trubo Oberon (Announce)

posted by Rugxulo Homepage, Usono, 23.07.2026, 07:15

> I tested Trubo Oberon under some environments.
> Windows 98: Error message: "Not enough memory" (but MEM shows about 545Kb
> free)
> standalone MS-DOS 7.1 (with HimemX+JEMM386): computer hangs
> FreeDOS, kernel 2044 (with HimemX+JEMM385): it WORKS.

I tried a snapshot from today. FreeDOS (kernel 2046) still says "Invalid opcode" 9 times out of 10. I wish I knew how to "properly" debug that. For now, I stick to DOSBox-X.

> However I don't like how the compilation process is invoked.
> Why "TOC CALENDAR.MOD" does not brew the CALENDAR.EXE? In place of that
> only some CALENDAR.OM is created.

The .OM is a Tar file containing others. It's basically a linkable archive (mostly RDF).

> But if that has some good reason, why it is not enough to just write
> something like "TOC /L CALENDAR.MOD"?
>
> Why the hell I have to write "TOC /Entry=Run CALENDAR.MOD?"
> How shall I know that the valid entry point is just Procedure Run?
> It is not guarranted at all.

Oberon doesn't normally have a clearly-defined Main procedure.

XDS uses pragmas (or [obsolete] comments) to declare (*$MAIN+ *). IIRC, the Pow compiler used ProgMain*.

> So i in theory I have to inspect every MOD file and have to analyze it and
> find some procedure which looks as a entrypoint.
> It seems to be quite awful for me.

Well, presumably you know what you're trying to run! Note that TOC does handle module dependencies and linking for you.

I guess "toc module" is for standalone units that have been tested and will be shared. "toc /entry=Main myprog" is for runnable programs using those units. You know, several people can contribute to a project independently. It might even save time not recompiling everything all over again.

Having said that, "too /entry=Main myproga" always seems to rewrite MYPROGA.OM whether needed or not. (It will not, by default, compile myprogb or myprogc if their *.OM are not outdated.) You know, TPC has /c /m /b for those purposes.

N.B. He changed the way Strings.Pos() works.

 

Complete thread:

Back to the forum
Board view  Mix view
23745 Postings in 2251 Threads, 410 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum