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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a18ac4e87554b833 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-27 04:32:57 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread2.news.atl.earthlink.net.POSTED!d9c68f36!not-for-mail Message-ID: <3F9D1075.7070303@noplace.com> From: Marin David Condic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (OEM-HPQ-PRS1C03) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ada's interrupts References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 27 Oct 2003 12:32:56 GMT NNTP-Posting-Host: 165.247.64.186 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.atl.earthlink.net 1067257976 165.247.64.186 (Mon, 27 Oct 2003 07:32:56 EST) NNTP-Posting-Date: Mon, 27 Oct 2003 07:32:56 EST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:1722 Date: 2003-10-27T12:32:56+00:00 List-Id: That depends entirely on your system. Generally, processors and other circuitry on your computer board have interrupts for various purposes. The Run Time System has to give you some method of connecting those hardware interrupts to your Ada software. That would be a matter to discuss with the compiler vendor and/or whoever is doing the RTK. Software can also generate interrupts - sometimes in conjunction with the hardware. If you're using an RTOS it probably has various kinds of software interrupts that are triggered by various events that are hardware or OS related. (Basically, something similar is the basis for "exceptions" in Ada) There is even the possibility of user-generated interrupts. But again that is a matter you need to discover in conjunction with your compiler vendor, OS vendor or hardware vendor. (Id est, you might be able to set timers or interact with watchdogs and have interrupts result.) This is so totally system dependent that the only way you're going to get information about it is to a) talk to your vendors/RTFM or at least b) state everything about your confuguration and hope someone here has used something similar. MDC Tony wrote: > as we know we can program interrupt handle in ada program. but does > anyone know how this kind interrupts work? I mean wheather the > hardware can trigger the interrupt. as we program one interrupts > handle in ada, but how it can be trigger? by hardware or software? > > Many thanks first, > > Tony > > scr106@york.ac.uk -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jsf.mil/NSFrames.htm Send Replies To: m o d c @ a m o g c n i c . r "So if I understand 'The Matrix Reloaded' correctly, the Matrix is basically a Microsoft operating system - it runs for a while and then crashes and reboots. By design, no less. Neo is just a memory leak that's too hard to fix, so they left him in... The users don't complain because they're packed in slush and kept sedated" -- Marin D. Condic ======================================================================