MIPS varargs (Was Re: Reality check)
Barry Margolin
barmar at think.com
Sun Nov 4 10:55:39 AEST 1990
In article <14322 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) writes:
>In article <108077 at convex.convex.com> gargulak at mozart.convex.com (Tom Gargulak) writes:
>>For example, the following two functions will have different codegen.
>> test(Xa_alist) {}
>> test(va_alist) {}
>>No include files required.
>Well, that's clearly wrong behavior, since both these are merely functions
>having a single int-valued parameter.
If the code generated by each version has the same high level results, why
is it wrong? Perhaps there might be miniscule performance differences, but
does the any C specification say anything about relative performance of
code generated from different pieces of source?
I'd say that the behavior of this compiler is surprising, perhaps even
undesirable, but I think it would be allowed by most language specs.
--
Barry Margolin, Thinking Machines Corp.
barmar at think.com
{uunet,harvard}!think!barmar
More information about the Comp.std.c
mailing list