Mail Archives: djgpp/2001/06/12/06:45:24
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
> On Mon, 11 Jun 2001, Yury A. Zaitsev wrote:
>> So, Win9x DOS box is the best environment for DJGPP, isn't it?
> It depends. For some uses, plain DOS with CWSDPMI is better.
Let me add that DOSEMU, in my experience, is no worse than Windows at
all. It's really quite nice, once you've configured it to support
DPMI. It even has the added benefit of debugging printouts from DOSEMU
itself you can activate, which might come in very handy at times.
> If timeouts are the issue, you could use `alarm' or `setitimer' for a
> much better and more portable code.
Here, I beg to differ. A busy-loop calling time() or one of its friend
is the *only* truly portable way you can make a program check its own
running time, since these functions are required by ANSI C itself.
Compare that to the portabilities of alarm() and setitimer():
alarm: not ANSI, POSIX
setitimer: not ANSI, not POSIX
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -