More NULL questions
Doug Gwyn
gwyn at smoke.BRL.MIL
Wed Oct 11 17:15:27 AEST 1989
In article <448 at shodha.dec.com> devine at shodha.dec.com (Bob Devine) writes:
-In article <903 at abvax.UUCP>, aep at ivan (Alex E. Pensky) writes:
-> Even if pointers and integers are the same size and have the same
-> representation, you are still in trouble if your compiler passes int
-> parameters and pointer parameters via different mechanisms.
- What different mechanisms? C only supports call-by-value for
-parameters (I'm ignoring the special casing of arrays here). How
-can pointers be passed differently than ints? It sounds like you
-used a broken compiler.
[This list sure has been getting a lot of GUESSWORK posted to it recently.]
A simple example is that the first M integer parameters might be passed
in data registers and the first N pointer parameters passed in address
registers. Yes, there are compilers that follow conventions like this,
and even stranger ones. They are not "broken".
More information about the Comp.lang.c
mailing list