supersub fails

118 views
Skip to first unread message

Peter Onion

unread,
May 14, 2025, 12:55:44 PM5/14/25
to RC2014-Z80
Is supersub supposed to work ?

I'm running zsdos, and if I create  make1.sub with the commands to compile and link my 3dmaze program it only runs the first command (and compile) and doesn't run the second command (a link).

I have the HiTech C compiler and my .c and .obj  files on D:

PeterO

Wayne Warthen

unread,
May 14, 2025, 3:59:52 PM5/14/25
to RC2014-Z80
Hi Peter,

I'm pretty sure it is working.  SUBMIT files are very picky about their format.  Make sure each like is terminated with a CR and LF.  Make sure the last line also has a CR and LF followed by a SUB (0x1A).

Thanks, Wayne

Peter Onion

unread,
May 14, 2025, 4:49:14 PM5/14/25
to RC2014-Z80
Wayne,
I've just tried it with CP/M 2.2 rather than ZSDOS and it works as expected.
So it seems there is an incompatibility between the HiTech C compiler and ZSDOS which means that $$$.SUB doesn't get picked up when the compiler driver exits.
PeterO

Wayne Warthen

unread,
May 15, 2025, 1:15:30 PM5/15/25
to RC2014-Z80
Hi Peter,

This is surprising.  I do know that HiTech C has it's own mechanism for invoking the compiler components.  Perhaps that is the piece that adds complexity to this.  I will try to do some testing, but it may be a few days before I can get to it.

Thanks, Wayne

Wayne Warthen

unread,
May 20, 2025, 8:12:43 PM5/20/25
to RC2014-Z80
Hi Peter,

I finally got a few minutes to recreate this issue.  I agree with your assessment that the ZSDOS submit file processing is broken when the compiler driver exits.  It doesn't seem to matter whether SUBMIT or SUPERSUB is used to invoke the .SUB file.

I don't think this would be a RomWBW problem.  The OSes distributed in RomWBW are not modified other than the CBIOS.  I would be interested to see if an implementation of ZSDOS on a system other than RomWBW has the same problem.

It would be a lot of work to track down the problem and I have a huge list of high priority stuff to work on right now.  I think we need to consider this a known problem unless someone else can track it down.

Thanks, Wayne

Peter Onion

unread,
May 21, 2025, 2:01:30 AM5/21/25
to RC2014-Z80
Hi Wayne,

Yes, I should have said I had found that both SUPERSUB and plain SUBMIT fail on ZSDOS.

Not quite what I wanted to hear, but I completely understand your position. 
 
I'll have a look to see if I can figure out how the compiler driver chains the various passes together.  I know a bit about how the "submit" process works on CPM but I'll have to look at ZSDOS to see now that is different.

PeterO
Reply all
Reply to author
Forward
0 new messages