HiTech C compiler extravaganza

Page 1/2
| 2

By [D-Tail]

Ascended (8231)

[D-Tail]'s picture

13-07-2008, 20:01

From someone I know I received some C files, to be compiled w/ HiTech C. Well, I've looked on the HiTech C website, downloaded some programs and an IDE, installed it all, but now what? It may be worth noticing that I run a GNU/Linux system, so a Windows binary won't do the job for me Tongue

On the HiTech website, I saw various free & trial downloads, from which I took the PICC-18 PRO package and the HI-TIDE (IDE) package. That lot seems to work, but what should I do in order to open a project, compile and whatnot? Thanks in advance Smile

Login or register to post comments

By Huey

Prophet (2642)

Huey's picture

13-07-2008, 21:56

You got HPDZ?

IIRC the (cross-development) z80 compiler/IDE isn't available for download. You have to mail them. They will send you a 30 day trail version.

The're is no windows binary its MS-DOS. Perhaps that is easier to run????

By [D-Tail]

Ascended (8231)

[D-Tail]'s picture

13-07-2008, 22:17

Hmm, then what use is a 30-day trial version? Maybe SDCC is a better alternative here? MS-DOS binaries are no problem, I've got DOSBOX.

By ARTRAG

Enlighted (6173)

ARTRAG's picture

13-07-2008, 22:28

The HTC IDE runs from XP and Wind 98, never tried from Vista

By Huey

Prophet (2642)

Huey's picture

13-07-2008, 22:34

Hmm, then what use is a 30-day trial version? Maybe SDCC is a better alternative here? MS-DOS binaries are no problem, I've got DOSBOX.

well. There is a very simple workaround for that.

By PingPong

Prophet (3281)

PingPong's picture

14-07-2008, 18:57

D-Tail: check your mail,please.

By [D-Tail]

Ascended (8231)

[D-Tail]'s picture

14-07-2008, 23:13

Much obliged ^_^

By k0ga

Expert (77)

k0ga's picture

15-07-2008, 07:19

From someone I know I received some C files, to be compiled w/ HiTech C. Well, I've looked on the HiTech C website, downloaded some programs and an IDE, installed it all, but now what? It may be worth noticing that I run a GNU/Linux system, so a Windows binary won't do the job for me Tongue

I use dosemu with a simple script and I can execute under linux without problems, even use a Makefile which use command line executable. I post here the script:

dosemu -dumb -quiet \"zc -Bc -CPM -Zg -W-9 -P8 -Ezc.err  $*\" >/dev/null 2>&1 
ret=`cat zc.err | grep error | wc -l`
cat zc.err >&2 
rm zc.err  
exit $ret


Of course you have to modify your autoexec.bat in DOS system and add these lines:

unix ln -s $PWD $DOSTMP/pwd
e:
cd pwd
unix -e

By [D-Tail]

Ascended (8231)

[D-Tail]'s picture

15-07-2008, 10:52

k0ga: thanks! At the moment I use DOSBOX, which works perfectly well to be honest. Although looking at your script, it seems that you've got some fancy error handling as well. So you use ZC for doing the compilation/linking job? In what aspect does it differ from HiTech C?

By k0ga

Expert (77)

k0ga's picture

15-07-2008, 13:24

k0ga: thanks! At the moment I use DOSBOX, which works perfectly well to be honest. Although looking at your script, it seems that you've got some fancy error handling as well. So you use ZC for doing the compilation/linking job? In what aspect does it differ from HiTech C?

ZC is the command line executable of Hitech C. And I use the script to allow use ZC from linux in my own Makefiles and with the linux file tree (I prefer use xemacs instead of Hitech environment). The error handling is oriented to make program can understand when the compilation is correct or not (return 0 without errors or a postive value in other case), and it can stop the process.

By ARTRAG

Enlighted (6173)

ARTRAG's picture

15-07-2008, 13:27

[D-Tail]
actually ZC is the HTC compiler (in v7.8 release IIRC)....

Probably you are using a different version of the compiler (or you are running something else)

Page 1/2
| 2