Skip to content

Commit

Permalink
Remove stray temporary file
Browse files Browse the repository at this point in the history
  • Loading branch information
agn453 committed Mar 21, 2023
1 parent 31838be commit c747d70
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 34 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ https://raw.githubusercontent.com/agn453/HI-TECH-Z80-C/master/z280bin.lbr
I welcome bug reports/fixes and additional commentry and discussion.

You can raise an issue here on GitHub or contact me directly via e-mail
at <[email protected]> or by posting to the USENET newsgroup
at <[email protected]> or by posting to the USENET newsgroup
forum at comp.os.cpm in the "Consolidating Updates for HI-TECH C for
Z80 CP/M v3.09" discussion thread - (accessible via Google Groups at
https://groups.google.com/forum/#!topic/comp.os.cpm/V9Qwoc3--Ak ).
Expand Down Expand Up @@ -1537,6 +1537,15 @@ The C library has had the ordering of modules adjusted to resolve
an undefined symbol error (thanks to Mark Ogden for bringing this
to my attention).

## Remove temporary file

When the compiler driver was executed without producing an output file, it
left behind a stray ```$$EXEC.$$$``` file on the current drive (or on the
temporary drive if you specified a TMP environment variable in your
```0:A:ENVIRON.``` file). This now fixed.

I've also bumped the version number to be release V3.09-17).


--
Tony Nicholson, Monday 06-Feb-2023
Tony Nicholson, Wednesday 22-Mar-2023
56 changes: 29 additions & 27 deletions cpm/BUILD-C.LOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,76 +2,76 @@
10E>;
10E>date
A:DATE COM (User 0)
Tue 09/08/2022 09:24:28
Wed 22/03/2023 09:29:53
10E>;
10E>; Build Z80 version
10E>c -o -v c309-16.c
10E>c -o -v c309-17.c
A:C COM (User 0)
Hi-Tech Z80 C Compiler (CP/M-80) V3.09-16
Copyright (C) 1984-87 HI-TECH SOFTWARE
Updated from https://github.com/agn453/HI-TECH-Z80-C
0:A:CPP -DCPM -DHI_TECH_C -Dz80 -I0:A: C309-16.C M:$CTMP1.$$$
0:A:CPP -DCPM -DHI_TECH_C -Dz80 -I0:A: C309-17.C M:$CTMP1.$$$
0:A:P1 M:$CTMP1.$$$ M:$CTMP2.$$$ M:$CTMP3.$$$
0:A:CGEN M:$CTMP2.$$$ M:$CTMP1.$$$
0:A:OPTIM M:$CTMP1.$$$ M:$CTMP2.$$$
0:A:ZAS -J -N -OC309-16.OBJ M:$CTMP2.$$$
0:A:ZAS -J -N -OC309-17.OBJ M:$CTMP2.$$$
ERA M:$CTMP1.$$$
ERA M:$CTMP2.$$$
ERA M:$CTMP3.$$$
ERA M:$CTMP5.$$$
0:A:LINQ -Z -Ptext=0,data,bss -C100H -OC309-16.COM 0:A:CRTCPM.OBJ C309-16.OBJ 0:A:LIBC.LIB
ERA C309-16.OBJ
0:A:LINQ -Z -Ptext=0,data,bss -C100H -OC309-17.COM 0:A:CRTCPM.OBJ C309-17.OBJ 0:A:LIBC.LIB
ERA C309-17.OBJ
ERA M:$$EXEC.$$$

10E>;
10E>; Now build Z280 version
10E>;
10E>; First a Z280 version using the Z80 LIBC.LIB (runs on Z80)
10E>c309-16 -o -v -ec280z80.com -dZ280 c309-16.c
E:C309-16 COM
Hi-Tech Z80 C Compiler (CP/M-80) V3.09-16
10E>c309-17 -o -v -ec280z80.com -dZ280 c309-17.c
E:C309-17 COM
Hi-Tech Z80 C Compiler (CP/M-80) V3.09-17
Copyright (C) 1984-87 HI-TECH SOFTWARE
Updated from https://github.com/agn453/HI-TECH-Z80-C
0:A:CPP -DCPM -DHI_TECH_C -Dz80 -DZ280 -I0:A: C309-16.C M:$CTMP1.$$$
0:A:CPP -DCPM -DHI_TECH_C -Dz80 -DZ280 -I0:A: C309-17.C M:$CTMP1.$$$
0:A:P1 M:$CTMP1.$$$ M:$CTMP2.$$$ M:$CTMP3.$$$
0:A:CGEN M:$CTMP2.$$$ M:$CTMP1.$$$
0:A:OPTIM M:$CTMP1.$$$ M:$CTMP2.$$$
0:A:ZAS -J -N -OC309-16.OBJ M:$CTMP2.$$$
0:A:ZAS -J -N -OC309-17.OBJ M:$CTMP2.$$$
ERA M:$CTMP1.$$$
ERA M:$CTMP2.$$$
ERA M:$CTMP3.$$$
ERA M:$CTMP5.$$$
0:A:LINQ -Z -Ptext=0,data,bss -C100H -OC280Z80.COM 0:A:CRTCPM.OBJ C309-16.OBJ 0:A:LIBC.LIB
ERA C309-16.OBJ
0:A:LINQ -Z -Ptext=0,data,bss -C100H -OC280Z80.COM 0:A:CRTCPM.OBJ C309-17.OBJ 0:A:LIBC.LIB
ERA C309-17.OBJ
ERA M:$$EXEC.$$$

10E>;
10E>; and the Z280 optimized version from it (only runs on a Z280)
10E>c280z80 -of2 -v -ec280-16.com c309-16.c
10E>c280z80 -of2 -v -ec280-17.com c309-17.c
E:C280Z80 COM
Hi-Tech Z280 C Compiler (CP/M-80) V3.09-16
Hi-Tech Z280 C Compiler (CP/M-80) V3.09-17
Copyright (C) 1984-87 HI-TECH SOFTWARE
Updated from https://github.com/agn453/HI-TECH-Z80-C
0:A:CPP -DCPM -DHI_TECH_C -Dz80 -DZ280 -I0:A: C309-16.C M:$CTMP1.$$$
0:A:CPP -DCPM -DHI_TECH_C -Dz80 -DZ280 -I0:A: C309-17.C M:$CTMP1.$$$
0:A:P1 M:$CTMP1.$$$ M:$CTMP2.$$$ M:$CTMP3.$$$
0:A:CGEN M:$CTMP2.$$$ M:$CTMP1.$$$
0:A:OPTIM -F M:$CTMP1.$$$ M:$CTMP2.$$$
0:A:OPTIMH -F M:$CTMP2.$$$ M:$CTMP5.$$$
515 bytes optimized away
1616 bytes replaced
0:A:ZAS -N -OC309-16.OBJ M:$CTMP5.$$$
0:A:ZAS -N -OC309-17.OBJ M:$CTMP5.$$$
ERA M:$CTMP1.$$$
ERA M:$CTMP2.$$$
ERA M:$CTMP3.$$$
ERA M:$CTMP5.$$$
0:A:LINQ -Z -Ptext=0,data,bss -C100H -OC280-16.COM 0:A:C280CPM.OBJ C309-16.OBJ 0:A:LIB280C.LIB
ERA C309-16.OBJ
0:A:LINQ -Z -Ptext=0,data,bss -C100H -OC280-17.COM 0:A:C280CPM.OBJ C309-17.OBJ 0:A:LIB280C.LIB
ERA C309-17.OBJ
ERA M:$$EXEC.$$$

10E>;
10E>c280-16 -o2 -v optimh.c
E:C280-16 COM
Hi-Tech Z280 C Compiler (CP/M-80) V3.09-16
10E>c280-17 -o2 -v optimh.c
E:C280-17 COM
Hi-Tech Z280 C Compiler (CP/M-80) V3.09-17
Copyright (C) 1984-87 HI-TECH SOFTWARE
Updated from https://github.com/agn453/HI-TECH-Z80-C
0:A:CPP -DCPM -DHI_TECH_C -Dz80 -DZ280 -I0:A: OPTIMH.C M:$CTMP1.$$$
Expand Down Expand Up @@ -104,11 +104,13 @@ Directory For Drive E: User 10
------------ ------ ------ ------------ ------ -------------- --------------

C280-16 COM 24k 192 Dir RW None 09/08/22 09:34 09/08/22 09:34
C280Z80 COM 28k 208 Dir RW None 09/08/22 09:30 09/08/22 09:30
C280-17 COM 24k 192 Dir RW None 22/03/23 09:40 22/03/23 09:40
C280Z80 COM 28k 208 Dir RW None 22/03/23 09:36 22/03/23 09:36
C309-16 COM 28k 201 Dir RW None 09/08/22 09:27 09/08/22 09:27
C309-17 COM 28k 201 Dir RW None 22/03/23 09:32 22/03/23 09:32

Total Bytes = 80k Total Records = 601 Files Found = 3
Total 1k Blocks = 76 Used/Max Dir Entries For Drive E: 1137/2048
Total Bytes = 132k Total Records = 994 Files Found = 5
Total 1k Blocks = 126 Used/Max Dir Entries For Drive E: 1140/2048

10E>dir optimh.com [fu
A:DIR COM (User 0)
Expand All @@ -120,10 +122,10 @@ Directory For Drive E: User 10
Name Bytes Recs Attributes Prot Update Create
------------ ------ ------ ------------ ------ -------------- --------------

OPTIMH COM 20k 144 Dir RW None 09/08/22 09:36 09/08/22 09:36
OPTIMH COM 20k 144 Dir RW None 22/03/23 09:42 22/03/23 09:42

Total Bytes = 20k Total Records = 144 Files Found = 1
Total 1k Blocks = 18 Used/Max Dir Entries For Drive E: 1137/2048
Total 1k Blocks = 18 Used/Max Dir Entries For Drive E: 1140/2048

10E>;
10E>; Done
Expand Down
8 changes: 4 additions & 4 deletions cpm/BUILD-C.SUB
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ put console output to file build-c.log [system]
date
;
; Build Z80 version
c -o -v c309-15.c
c -o -v c309-17.c
;
; Now build Z280 version
;
; First a Z280 version using the Z80 LIBC.LIB (runs on Z80)
c309-15 -o -v -ec280z80.com -dZ280 c309-15.c
c309-17 -o -v -ec280z80.com -dZ280 c309-17.c
;
; and the Z280 optimized version from it (only runs on a Z280)
c280z80 -of2 -v -ec280-15.com c309-15.c
c280z80 -of2 -v -ec280-17.com c309-17.c
;
c280-15 -o2 -v optimh.c
c280-17 -o2 -v optimh.c
;
dir c*.com [fu
dir optimh.com [fu
Expand Down
4 changes: 3 additions & 1 deletion cpm/C309-16.C → cpm/C309-17.C
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* processor is prohibited.
*/

#define VERSION "V3.09-16"
#define VERSION "V3.09-17"

/*----------------------------------------------------------------------*\
| Note by Jon Saxton, 3 May 2014. |
Expand Down Expand Up @@ -513,6 +513,8 @@ void doit()
if (!outfile)
{
fprintf(stderr,"No output file specified\n");
fclose(cmdfile); /* remove the $$EXEC.$$$ file */
remove(execmd);
exit(-1);
}
if (reloc)
Expand Down
Binary file removed dist/C309-16.COM
Binary file not shown.
Binary file added dist/C309-17.COM
Binary file not shown.
Binary file modified htc-bin.lbr
Binary file not shown.
Binary file modified z280bin.lbr
Binary file not shown.
Binary file removed z280dist/C280-16.COM
Binary file not shown.
Binary file added z280dist/C280-17.COM
Binary file not shown.

0 comments on commit c747d70

Please sign in to comment.