sectorc icon indicating copy to clipboard operation
sectorc copied to clipboard

C90 counterpart

Open kerravon86 opened this issue 1 year ago • 2 comments

Thanks for your fantastic work. You have literally changed my life by releasing a small non-copyrighted (subset of) C compiler.

I have made a public domain C90 equivalent to your (assembler) work which can be found here:

https://sourceforge.net/p/pdos/gitcode/ci/master/tree/util/multisc.c

It gives an error about variable/function/token name clashes, but otherwise it accepts the exact same language of Sector C. If there is a name clash, there is a debug option to assist in finding the two things that clashed.

It produces a .com file which can be run under both Freedos or PDOS/86 and presumably MSDOS.

Thanks. Paul.

kerravon86 avatar May 28 '23 03:05 kerravon86

Wow, I'm flattered Paul 🙏

I hope you enjoy using it as much as I enjoyed making and publishing it!

Try not to get caught off-guard by one of those stray hash collisions 😉😧

xorvoid avatar May 28 '23 18:05 xorvoid

I have updated it to provide (so far incomplete) support for S/370 (z/Arch mainframe).

And that triggered the writing of a (bare bones) mainframe emulator:

Here is the sample MVS file to write ABCDE:

https://sourceforge.net/p/pdos/gitcode/ci/master/tree/util/mvssamp.c

And here is the emulator:

https://sourceforge.net/p/pdos/gitcode/ci/master/tree/util/mfemul.c

kerravon86 avatar May 30 '23 01:05 kerravon86