HiTech C compiler extravaganza

Página 1/2
| 2

Por [D-Tail]

Ascended (8250)

Imagen del [D-Tail]

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 sesión o register para postear comentarios

Por Huey

Prophet (2675)

Imagen del Huey

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????

Por [D-Tail]

Ascended (8250)

Imagen del [D-Tail]

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.

Por ARTRAG

Enlighted (6550)

Imagen del ARTRAG

13-07-2008, 22:28

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

Por Huey

Prophet (2675)

Imagen del Huey

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.

Por PingPong

Prophet (3769)

Imagen del PingPong

14-07-2008, 18:57

D-Tail: check your mail,please.

Por [D-Tail]

Ascended (8250)

Imagen del [D-Tail]

14-07-2008, 23:13

Much obliged ^_^

Por k0ga

Expert (77)

Imagen del k0ga

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

Por [D-Tail]

Ascended (8250)

Imagen del [D-Tail]

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?

Por k0ga

Expert (77)

Imagen del k0ga

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.

Por ARTRAG

Enlighted (6550)

Imagen del ARTRAG

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)

Página 1/2
| 2