Article View: comp.std.c
Article #125Re: Function Prototypes: Don't they force casts?
From: John F Carr
Date: Sun, 26 Jul 1992 21:38
Date: Sun, 26 Jul 1992 21:38
12 lines
1041 bytes
1041 bytes
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)
Technical Details
Message-ID:
<1992Jul26.213827.23969@athena.mit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!bloom-beacon!bloom-picayune.mit.edu!athena.mit.edu!jfcReferences:
<OINK.92Jul26032212@julian.newshost.uwo.ca> <24914@dog.ee.lbl.gov>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!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