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