home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / std / c / 2366 < prev    next >
Encoding:
Text File  |  1992-07-26  |  1017 b   |  25 lines

  1. Newsgroups: comp.std.c
  2. Path: sparky!uunet!gatech!bloom-beacon!bloom-picayune.mit.edu!athena.mit.edu!jfc
  3. From: jfc@athena.mit.edu (John F Carr)
  4. Subject: Re: Function Prototypes: Don't they force casts?
  5. Message-ID: <1992Jul26.213827.23969@athena.mit.edu>
  6. Sender: news@athena.mit.edu (News system)
  7. Nntp-Posting-Host: achates.mit.edu
  8. Organization: Massachusetts Institute of Technology
  9. References: <OINK.92Jul26032212@julian.newshost.uwo.ca> <24914@dog.ee.lbl.gov>
  10. Date: Sun, 26 Jul 1992 21:38:27 GMT
  11. Lines: 12
  12.  
  13. In article <24914@dog.ee.lbl.gov> torek@horse.ee.lbl.gov (Chris Torek) writes:
  14. >... will fail on machines on which function pointers
  15. >appear negative after conversion to int.  (I have a fuzzy memory that
  16. >suggests this may have been the case on some Elxsi machine, for
  17. >instance.)
  18.  
  19. On a VAX or MIPS, a pointer to a function in the kernel will convert
  20. to a negative integer.  I think Sun OS on a SPARC maps some code at
  21. high addresses (0xff??????) which appear negative.
  22.  
  23. --
  24.     John Carr (jfc@athena.mit.edu)
  25.