Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

University Challenge (using SubC compiler) (Announce)

posted by kerravon E-mail, Ligao, Free World North, 28.03.2022, 00:42

> > It is September 1986 and the Compaq Deskpro 386 has been released.
> > This time the 40 MB drive has a PDOS/386 distribution installed on it.
> > It contains pure public domain code. Due to the limits of what has been
> > released to the public domain, only SubC is available, which gives you a
> > subset of C90. But it's better than having to write in machine code.
> > Your challenge is to produce a 32-bit competitor to MSDOS using just
> what
> > is on this disk. Theoretically everything you need is on this disk.
> > Get the 40 MB disk image here."
>
> SubC seems to be maintained again, but
> DOS support is broken.

It is only broken in the experimental version.
And only because functionality has been added
such that the code segment is too big. If the
source is recompiled under Windows or a DOS
extender it still works.

Note that I have been making changes to SubC
myself.

> The latest DOS binaries date from 2014. It lacks
> some things (no strstr(), no sprintf(tmp,"%*.s",line),

You can use a different C library like PDPCLIB,
as I do.

> no goto,

True.

> no parameterized macros)

You can use pdcc -E as the preprocessor.

> but otherwise compiles one very simple program of
> mine. It's very impressive, but
> SmallerC (BSD, 386+) is much
> more complete.

Sure. But not public domain. So not what I'm
after.

BFN. Paul.

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 368 users online (0 registered, 368 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum