Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

A sine curve goes off to infinity, or at least the end of the blackboard. -- Prof. Steiner


devel / comp.os.cpm / Re: ANN: A NEW HI-TECH C TREAT!

SubjectAuthor
* Re: ANN: A NEW HI-TECH C TREAT!fridtjof.ma...@gmail.com
`* Re: ANN: A NEW HI-TECH C TREAT!Kurt Pieper
 `* Re: ANN: A NEW HI-TECH C TREAT!marb...@yahoo.co.uk
  `- Re: ANN: A NEW HI-TECH C TREAT!CP/M User

1
Re: ANN: A NEW HI-TECH C TREAT!

<3c2e7116-3ae9-43d9-b5e2-87b9a7c87085n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2676&group=comp.os.cpm#2676

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:6214:1933:: with SMTP id es19mr4839377qvb.42.1628786893238;
Thu, 12 Aug 2021 09:48:13 -0700 (PDT)
X-Received: by 2002:a9d:206c:: with SMTP id n99mr4099230ota.64.1628786892952;
Thu, 12 Aug 2021 09:48:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Thu, 12 Aug 2021 09:48:12 -0700 (PDT)
In-Reply-To: <b93c53d1-f1a6-46cc-a2e7-9ed5cf017487n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:955f:2c00:e944:939f:55ad:a135;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:955f:2c00:e944:939f:55ad:a135
References: <b93c53d1-f1a6-46cc-a2e7-9ed5cf017487n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3c2e7116-3ae9-43d9-b5e2-87b9a7c87085n@googlegroups.com>
Subject: Re: ANN: A NEW HI-TECH C TREAT!
From: fridtjof...@gmail.com (fridtjof.ma...@gmail.com)
Injection-Date: Thu, 12 Aug 2021 16:48:13 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 76
 by: fridtjof.ma...@gmail - Thu, 12 Aug 2021 16:48 UTC

On Wednesday, August 11, 2021 at 8:43:19 PM UTC-4, fridtjof.ma...@gmail.com wrote:
> https://github.com/ratboy666/tiny
>
> is a new hi-tech C treat
>
> Introducing csup.rel - the minimal c support library. tiny.c compiles,
> convert to REL, and links (hello world style program). The final
> executable? 128 bytes. All C.
>
> Enjoy
>
> This is because I am doing some bit-twiddling for APU, and wanted to
> get away from the assembler drudge. Maybe this will help -- was
> thinking this may be possible today, and I threw it together.

"Back in the day" I used Whitesmiths C. In my opinion the best native C
compiler for 8080. I got my Altair-Duino about a year ago, and wanted
a C compiler. HI-TECH C had prototypes -- a big plus! So, gave it a
whirl. The worst thing? Only Z80 (no 8080). For 8080, I can de-proto
the source and run through Whitesmiths (but, the Altair-Duino supports
Z80 as well -- and Turbo Pascal needs it). But, modulo a few bugs (so
far, only 2 bugs in code generation -- which is actually very good). The
compiler actually takes slightly less memory than Whitesmiths.

The "fixable" issue was that HI-TECH insists on using its on object,
library formats. I find that very annoying. Whitesmiths was popular
enough that PSA PLINK-II support the Whitesmiths REL format.
But, the OBJ for HI-TECH? Not so much. This forced me to use
the HI-TECH assembler, linker, the whole toolchain. Not my cup of
tea. I really like M80 (at least it properly supports 8080, Z80, and
macros). So, I invested some time in reverse engineering wtf
was going on with the HI-TECH formats. I don't really care what the REL
format is -- just that it is MicroSoft and Digital Research. Months of
toil resulted in AS to MAC which I used to port the HI-TECH runtime
to REL format. But that was not "ok" -- ran into another bug with
HI-TECH that I doubt anyone would have reasonably forseen. If the C
compiler is told to generate assembler, not object, it (sometimes)
produces AS files that don't assemble. This was vexing, but I used
my notes on OBJ to produce OBJ to MAC. Then, M80 and we are
"good to go". Note that my use of M80 to generate REL from MAC is
just a labour saving device (it avoids the need for me to understand
REL files).

After this "correction", HI-TECH C is doing an absolutely stellar job for me.
Now that I have it "tamed", I can use it to produce ultra-small executables
(tiny.com), mix with FORTRAN-80 or BASIC-80 (mixed). Now that
standard REL files are used, we can use PLINK-II for linking and
overlays.

If someone knows the original author(s) of HI-TECH C, send
my regards. This compiler has truly stood the test of time!
I assume that the original source is lost -- I know that

https://github.com/nikitinprior

has being doing great work in regenerating source, and
making improvements,

https://github.com/agn453/HI-TECH-Z80-C

has been collecting stuff related to the compiler.

Hi-TECH C 3.09, 35 years old -- now officially my favorite compiler.

And beating my own drum - my Hi-TECH C work

https://github.com/ratboy666/tiny
https://github.com/ratboy666/mixed
https://github.com/ratboy666/mtrel

If you haven't tried it... give it a spin! Damn, it is that good.

Now -- onto the "real meat". I am thinking of replacing NCSV, CSV and CRET functions
with a profiler/run-time optimizer. How much interest, if any, is there in that?

Fred Weigel

Re: ANN: A NEW HI-TECH C TREAT!

<102fb736-35f2-4a20-8228-5761d66854cbn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2677&group=comp.os.cpm#2677

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:de13:: with SMTP id h19mr6124273qkj.441.1628796963280;
Thu, 12 Aug 2021 12:36:03 -0700 (PDT)
X-Received: by 2002:a05:6830:4486:: with SMTP id r6mr4673378otv.53.1628796962391;
Thu, 12 Aug 2021 12:36:02 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Thu, 12 Aug 2021 12:36:02 -0700 (PDT)
In-Reply-To: <3c2e7116-3ae9-43d9-b5e2-87b9a7c87085n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:e1:6f0c:8e00:187c:e253:f2be:f86e;
posting-account=_oyBIAkAAAA5ltXQoYluyPl1VPbzgS5O
NNTP-Posting-Host: 2003:e1:6f0c:8e00:187c:e253:f2be:f86e
References: <b93c53d1-f1a6-46cc-a2e7-9ed5cf017487n@googlegroups.com> <3c2e7116-3ae9-43d9-b5e2-87b9a7c87085n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <102fb736-35f2-4a20-8228-5761d66854cbn@googlegroups.com>
Subject: Re: ANN: A NEW HI-TECH C TREAT!
From: kurt.pie...@web.de (Kurt Pieper)
Injection-Date: Thu, 12 Aug 2021 19:36:03 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Kurt Pieper - Thu, 12 Aug 2021 19:36 UTC

Hello fred,

I think your contributions are excellent.

I think there aren't that many Z80 users who have C experience.
It's a small church.

First I am learning HI-Tech C z80 for applications with i2c.

Go on. I really enjoy reading the reports and testing them too.
I run the program tiny.c on a sc114.

Greetings from Germany
Kurt

Re: ANN: A NEW HI-TECH C TREAT!

<bf557a55-be2e-499d-aa54-fd3f5dcfe860n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2681&group=comp.os.cpm#2681

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:2912:: with SMTP id m18mr3137334qkp.331.1628874401691;
Fri, 13 Aug 2021 10:06:41 -0700 (PDT)
X-Received: by 2002:aca:1e05:: with SMTP id m5mr2845542oic.29.1628874401362;
Fri, 13 Aug 2021 10:06:41 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 13 Aug 2021 10:06:41 -0700 (PDT)
In-Reply-To: <102fb736-35f2-4a20-8228-5761d66854cbn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=90.254.175.191; posting-account=NDbexAkAAABcldymCnMdZSdAv_y5Ch4B
NNTP-Posting-Host: 90.254.175.191
References: <b93c53d1-f1a6-46cc-a2e7-9ed5cf017487n@googlegroups.com>
<3c2e7116-3ae9-43d9-b5e2-87b9a7c87085n@googlegroups.com> <102fb736-35f2-4a20-8228-5761d66854cbn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bf557a55-be2e-499d-aa54-fd3f5dcfe860n@googlegroups.com>
Subject: Re: ANN: A NEW HI-TECH C TREAT!
From: marbly...@yahoo.co.uk (marb...@yahoo.co.uk)
Injection-Date: Fri, 13 Aug 2021 17:06:41 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: marb...@yahoo.co.uk - Fri, 13 Aug 2021 17:06 UTC

On Thursday, 12 August 2021 at 20:36:03 UTC+1, Kurt Pieper wrote:
> ... I think there aren't that many Z80 users who have C experience. ...
I started using C on the ZX Spectrum (though I mostly used Basic, and a little bit of Lisp).
My next computer was an Amstrad PCW8512 (CP/M at last!). I used C on that too (Mix C?) (also Mallard Basic and Turbo Pascal (great product!)). I can't remember if I used Hi-Tech C on the PCW, though I remember using a compiler which didn't handle prototypes, so 4*atan(1) was gibberish, not π. (4*atan(1.0) was fine, though.)

Re: ANN: A NEW HI-TECH C TREAT!

<91fc0dae-31fe-4b69-bded-8ff42068e5e2n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2683&group=comp.os.cpm#2683

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:6214:518f:: with SMTP id kl15mr351908qvb.36.1628923813068;
Fri, 13 Aug 2021 23:50:13 -0700 (PDT)
X-Received: by 2002:a05:6830:264b:: with SMTP id f11mr5107296otu.8.1628923812845;
Fri, 13 Aug 2021 23:50:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 13 Aug 2021 23:50:12 -0700 (PDT)
In-Reply-To: <bf557a55-be2e-499d-aa54-fd3f5dcfe860n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=1.136.109.187; posting-account=3Ir8PQkAAAAb4qUxykk-Dh1GLGVjl2PG
NNTP-Posting-Host: 1.136.109.187
References: <b93c53d1-f1a6-46cc-a2e7-9ed5cf017487n@googlegroups.com>
<3c2e7116-3ae9-43d9-b5e2-87b9a7c87085n@googlegroups.com> <102fb736-35f2-4a20-8228-5761d66854cbn@googlegroups.com>
<bf557a55-be2e-499d-aa54-fd3f5dcfe860n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <91fc0dae-31fe-4b69-bded-8ff42068e5e2n@googlegroups.com>
Subject: Re: ANN: A NEW HI-TECH C TREAT!
From: cpm22_u...@yahoo.com (CP/M User)
Injection-Date: Sat, 14 Aug 2021 06:50:13 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: CP/M User - Sat, 14 Aug 2021 06:50 UTC

On Saturday, August 14, 2021 at 3:06:42 AM UTC+10, marb...@yahoo.co.uk wrote:
> On Thursday, 12 August 2021 at 20:36:03 UTC+1, Kurt Pieper wrote:
> > ... I think there aren't that many Z80 users who have C experience. ...
> I started using C on the ZX Spectrum (though I mostly used Basic, and a little bit of Lisp).
> My next computer was an Amstrad PCW8512 (CP/M at last!). I used C on that too (Mix C?) (also Mallard Basic and Turbo Pascal (great product!)). I can't remember if I used Hi-Tech C on the PCW, though I remember using a compiler which didn't handle prototypes, so 4*atan(1) was gibberish, not π. (4*atan(1.0) was fine, though.)

I would say the same for Amstrad CPC users, but instead of using a language on the CPC, they turn to their C like cross-compiler platform to produce a commercial like product for the CPC.

In the meanwhile integrated BASIC languages are falling behind because other 8bit platforms have new variants with updates, all I can do is try the same, though is difficult when you're a person of 1.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor