home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / apps / 1756 < prev    next >
Encoding:
Text File  |  1992-08-27  |  989 b   |  17 lines

  1. Newsgroups: comp.sys.sun.apps
  2. Path: sparky!uunet!cs.utexas.edu!torn!news.ccs.queensu.ca!ccs-server.QueensU.CA!ccs-server.QueensU.CA!yendtj
  3. From: yendtj@ccs.QueensU.CA (John Yendt)
  4. Subject: Trapping on Integer Overflow
  5. Message-ID: <1992Aug27.201709.21917@ccs.QueensU.CA>
  6. Keywords: unteger overflow trap 
  7. Sender: news@ccs.QueensU.CA (Netnews control)
  8. Organization: Queen's University, Kingston
  9. Date: Thu, 27 Aug 1992 20:17:09 GMT
  10. Lines: 5
  11.  
  12. I am working on a SUN Sparc station.  I am interested in trapping integer overflows in either C or Fortran.  I have been able to trap on floating point overflow, but been unable to on integer overflow.  The documentation for SIGVEC suggests that SIGFPE will be signaled when there is an integer overflow.  This seems strange to me as FP suggests Floating Point.  If anyone has an idea how to do this, or better still an example, please send email to yendtj@ccs.queensu.ca .
  13.  
  14. I will be glad to put the answer on the newsgroup when I get one working.
  15.  
  16.  
  17.