Mail Archives: djgpp/2001/06/18/03:13:11
On Sun, 17 Jun 2001, April wrote:
> > Anything that does an OS call [causes a __dpmi_int] - read, time,
> > sbrk (used by malloc), sometimes getkey().
>
> Would all file opening - fopen / open / _dos_open / _open - and
> corresponding i/o functions generate the same type of OS call?
Yes. Any function which eventually calls DOS or BIOS will go through
__dpmi_int and __dj_movedata.
> What I'm asking is: if I don't use _open and _read, would the
> interrupt calls be reduced?
Yes. But can your program really run without reading those files? If
it can, why do you call _open and _read in the first place?
- Raw text -