From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a727b8ccdee938d4 X-Google-Attributes: gid103376,public From: jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk) Subject: Re: OS specific support in ADA Date: 1996/07/01 Message-ID: #1/1 X-Deja-AN: 163202664 references: <31D5A7CF.6547@world2u.com> organization: JerryWare HQ, Haarlem, Holland newsgroups: comp.lang.ada Date: 1996-07-01T00:00:00+00:00 List-Id: Rich Maggio (maggior@world2u.com) wrote: : For example, can you call a DOS interrupt directly from an ADA program? Yes, through binding to the djgpp runtime library. See VGAPCK in EZ2LOAD for examples. : Also, is it possible to do ISR's in DOS using the GNAT compiler? Theoretically you can, but given the nature of interrupt handling in a virtual memory enviroment you cannot reliably do so in practice. Note that this has nothing to do with GNAT, the same goes for C/C++. Reliable interrupt handling in DJGPP can only be done in assembler, since that is the only way to lock all memory (code, data, stack,...) used by the interrupt handler in a safe way. -- ----------------------------------------------------------------------- -- Jerry van Dijk -- e-mail: jerry@jvdsys.nextjk.stuyts.nl -- -- Banking Consultant -- Member Team-Ada -- -- Ordina Finance BV -- Located at Haarlem, The Netherlands --