Article View: comp.sys.amiga.tech
Article #9333Device drivers in Aztec C
From: Peter Schachte
Date: Wed, 20 Jul 1988 22:01
Date: Wed, 20 Jul 1988 22:01
26 lines
1675 bytes
1675 bytes
I've been trying to get Matt Dillon's PIPE: device driver to run under
Aztec C 3.6a. (I want to write my own device, and this seems like a
good first step.) I've made these changes to the source (from Fish disk
55 or so):
Put 'L' after all constant int args to lib functions
Put in call to geta4() as first statement in _main (but after
initializers -- is this a problem? Do I need geta4() here?)
replaced bmov() and bzero() calls with appropriate Aztec calls.
I haven't been compiling with -L (long int) switch. It compiles
without complaint, and links ok with misc.o (which also compiles fine).
It also mounts without complaint, but when I try dir PIPE:, the guru
strikes. (I know PIPE: doesn't support dir; that's why I tried it. It
seemed like a good way to check that the driver is there without
checking any of the piping code.)
So my question is: is there anything I'm missing? Any compile or link
switches I need? Any Aztec-specific restructuring (different main
procedure or something)? Any suggestions would be appreciated.
Otherwise, it's time to SDB this sucker. (BTW, the SDB manual implies
that it IS possible to write device drivers and libraries in Aztec.)
Thanks in advance.
-Peter Schachte
pds@quintus.uucp
..!sun!quintus!pds
Technical Details
Message-ID:
<180@quintus.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!cmcl2!nrl-cmf!ames!zodiac!joyce!sri-unix!quintus!pdsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!cmcl2!nrl-cmf!ames!zodiac!joyce!sri-unix!quintus!pds From: pds@quintus (Peter Schachte) Newsgroups: comp.sys.amiga.tech Subject: Device drivers in Aztec C Message-ID: <180@quintus.UUCP> Date: 20 Jul 88 22:01:19 GMT Sender: news@quintus.UUCP Reply-To: pds@quintus (Peter Schachte) Organization: Quintus Computer Systems, Inc. Lines: 26