CPCWiki forum

General Category => Programming => Topic started by: scruss on 17:46, 07 October 18

Title: HI-TECH C v4.11 for Z80
Post by: scruss on 17:46, 07 October 18
Over on Facebook's Zilog Z-80 DIY (https://www.facebook.com/groups/546186508918605/) group, Chris A Hills (https://www.facebook.com/phaedsys) noted that he got permission from Microchip to release HI-TECH C v4.11 for Z80. This is a bit more advanced than the CP/M-hosted v3.xx that's widely available.
Before you all rush off and start downloading it:Download link: http://www.safetycritical.info/pub/Microchip_Hitech_C_Z80.zip
 (http://www.safetycritical.info/pub/Microchip_Hitech_C_Z80.zip)(archive.org mirror (https://web.archive.org/web/20181007142633/http://www.safetycritical.info/pub/Microchip_Hitech_C_Z80.zip))

Licence:
© 2018 Microchip Technology Inc. and its subsidiaries.
Subject to your compliance with these terms, you may use this Microchip software and any
derivatives of this software. You must retain the above copyright notice with any redistribution of
this software and the following disclaimers. It is your responsibility to comply with third party license
terms applicable to your use of third party software (including open source software) that may
accompany this Microchip software.
THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". MICROCHIP WILL NOT SUPPORT THIS
SOFTWARE IN ANY MANNER. NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY
TO THIS SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.
IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL OR
CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THIS
SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE
DAMAGES ARE FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL
LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT
OF FEES, IF ANY, THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
Title: Re: HI-TECH C v4.11 for Z80
Post by: GeoffB17 on 00:30, 08 October 18
Well, interesting.

I've got the CP/M release, from 1985, with the manual etc, which I have used on my PCW.

On PCs, I've mainly used Microsoft C 5.0 and now 7.0

I take it this version is a 'cross-compiler', i.e. you run the system on a PC (8086) but the 'target' is the Z80 (I assume still CP/M).

Anyway, I've downloaded the .ZIP, and unpacked it OK, although there's some problem with some long filenames that irritate my old version of PKUNZIP, and I didn't bother to mess with JZIP which would have been OK.   All the 'working' files seem to be 8.3 filenames, these are OK.   The long ones are some .PDF files with I guess all the docs, I'll need to see what's in these.

Anyway, the files I see are NOT disk images, but the straight file set.   The .PDFs are pretty large, all the rest look totally normal size.   No .DSK.   I've just unpacked unto my main XP machine, but I have three working pure 100% DOS machines (two with MSDOS 5.0, one with 6.2) so I should have no problem getting the system working.   There are some 'extra' progs there to check out, versions of standard utilities like DUMP (not sure if this is a DOS or the CP/M version).

I'll check out the docs (.PDF files) and see what info is there.

Geoff
Title: Re: HI-TECH C v4.11 for Z80
Post by: GeoffB17 on 00:54, 08 October 18
Right, had a quick look at one of the doc files, which reveals that...

This system may actually be a cross compiler for a range of targets, incl Z80 and Z180, and 8086, and other things - but it might be that the docs cover these other things, but the code incl does not?   I'll read further.

The docs refer to a number of facilities that sound more like things that are in my MS C 7.0 that what's in the HiSoft system I already have.   Again, I'll have to check things in more detail.

Geoff
Title: Re: HI-TECH C v4.11 for Z80
Post by: GeoffB17 on 02:05, 08 October 18
The libraries included are ONLY those for Z80 & CP/M, so it's the generic documentation.

I see the files include those for a process called LUCIFER (source and .EXE) which from a quick look seems to be a PC program to emulate CP/M , and provide the facilities of a monitor for testing/debugging a Z80 program.  The software seems to handle disk i/o literally to DOS devices, but all other I/O is intercepted.

Geoff
Title: Re: HI-TECH C v4.11 for Z80
Post by: scruss on 01:49, 09 October 18
Lucifer's a remote serial debugger, if I understand the docs correctly. Link it into your CP/M executable, then you can talk to it remotely over serial from your PC: setting breakpoints, single-stepping, and so on.
The docs are a bit generic. HI-TECH made compilers for many embedded systems, but Microchip bought them for their PIC compilers and stopped sales of all other systems.