delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/04/18:16:58

From: "Florian X" <dos DOT fire AT aon DOT at>
Newsgroups: comp.os.msdos.djgpp
References: <8eojad$f7k$1 AT news1 DOT sinica DOT edu DOT tw> <8eon1r$4b2$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>
Subject: Re: device driver using DJGPP
Date: Thu, 4 May 2000 15:50:03 +0200
X-Newsreader: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Lines: 43
Message-ID: <391180ad$0$81970@SSP1NO17.highway.telekom.at>
NNTP-Posting-Host: 212.183.88.172
X-Trace: newsreader.vienna.highway.telekom.at 957448365 81970 212.183.88.172
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi!

Is there some example source code (for DJGPP or Borland/Turbo C/c++) for a
Device driver which could be used also as tsr? like dos emm386, NWCACHE of
Dr-DOS so you can install it in the config.sys

DEVICE=c:\dos\driver.exe

Or in the autoexec.bat/at the prompt:

c:\dos\driver.exe

?

Thanks, Florian



Hans-Bernhard Broeker schrieb in Nachricht
<8eon1r$4b2$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>...
>Kuang-chun Cheng <kccheng AT soliton DOT phys DOT sinica DOT edu DOT tw> wrote:
>
>> Can I develop MS-DOS device driver using DJGPP?
>
>You can, but I doubt it'll make much sense. Device drivers are still
>best written in 16bit assembly or C, unless you need to access 32bit
>memory space (as with memory-mapped PCI devices). These days, I'd
>recommend something like the freed TurboC for the general coding, and
>nasm for the assembly stuff, where needed.
>
>At the time device drivers are loaded, the necessary environment for
>running DJGPP-compiled applications may not be fully present, yet. And
>besides, even though the memory footprint of CWSDPMI and the DJGPP
>startup code isn't *that* oversized any more, you almost certainly
>don't want to spend that much memory permanently. 40 KB drivers are a
>pain. Not even to mention that several DOS programs will refuse to
>work because the pre-loaded 32bit DPMI server prevents their DOS
>extender of choice from loading.
>--
>Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
>Even if all the snow were burnt, ashes would remain.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019