home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / ada / 2204 < prev    next >
Encoding:
Text File  |  1992-07-27  |  2.0 KB  |  49 lines

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!gatech!destroyer!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!lynx!nmsu.edu!opus!pat
  3. From: pat@summit.opus (pat gioannini)
  4. Subject: Re: Serial interrupt handler in Meridian Ada on PC?
  5. In-Reply-To: mskuhn@immd4.informatik.uni-erlangen.de's message of Thu, 23 Jul 1992 20:12:37 GMT
  6. Message-ID: <PAT.92Jul27074448@summit.opus>
  7. Sender: usenet@nmsu.edu
  8. Organization: /home/pat/.organization
  9. References: <1992Jul21.110241.15174@verdix.com>
  10.     <Bruyt1.F0F@immd4.informatik.uni-erlangen.de>
  11. Date: Mon, 27 Jul 1992 14:44:47 GMT
  12. Lines: 35
  13.  
  14. >> Perhaps the better solution is not to implement the interrupt handler
  15. >> in Meridian Ada but to use one of the many high quality public domain
  16. >> serial port drivers and write just an Ada interface. These often are
  17. >> written in highly optimized machine code and include also support for
  18. >> a large variety of serial line chips (e.g. the 16550 with 16 byte FIFO
  19. >> etc.). I highly recommend drivers conforming to the FOSSIL specification
  20. >> that evolved in the Fido community, e.g. the BNU driver.
  21. >>
  22. >> Markus
  23.  
  24.  
  25. I am wondering how well these drivers work with Ada tasking.  
  26.  
  27. If the interrupt handler is written in Ada then receiving a character 
  28. available interrupt can start rendezvous with higher level task.  The 
  29. higher level task starts immediately if its priority is high enough.  
  30.  
  31. If the interrupt handler is written in assembly or C or whatever and does
  32. not understand Ada tasking you are left with polling the serial driver
  33. for a character available.
  34.  
  35. What I am getting at it the latency between receiving a character and actually
  36. processing it can be quite large with foreign language device drivers that
  37. do not interact with the Ada runtime system.  It depends on the application
  38. whether this is bad or not.  Using a comercial package can save a lot of 
  39. time.  I wish device drivers for serial ports and such written in Ada were
  40. more commonly available.
  41.  
  42.  
  43. pat
  44. pat@psl.nmsu.edu
  45. --
  46. pat gioannini
  47. pat@psl.nmsu.edu
  48.  
  49.