"Lassie" <> writes:
> "Keith Thompson" <kst-> schreef in bericht
> news:...
>> As usual, you choose to be insulting just because you're talking to
>> Richard Heathfield.
>>
>> It's a 258-page document. Do you expect him, or anyone else, to read
>> the whole thing just to answer a question? Sheesh.
>
> You dont have to read it to understand what kind of standard this is
> especially if you have some practical experience in programming.
>
>>
>>> Take for instance this C code. I add line numbers for reference
>>>
>>> (1) int heathfield(short cbfalconer,double jkuyper)
>>> (2) {
>>> (3) }
>>
>> I presume that doesn't appear in the ABI.
>
> it does. return value, parameters, function calls etc.
I meant that that specific code, with identifiers "heathfield",
"cbfalconer", and "jkuyper", doesn't appear in the ABI.
>> So the ABI specifies how C code interfaces with other code, and that
>> certainly affects the generated code in some circumstances. But
>> that's nowhere near what the OP was asking about, namely "standards
>> that tell us how c code has to be compiled into machine code".
>
> It is, this is the way to go for that platform. You can view it as UB
> if a compiler tries to be smart and does things completely different
> from other compilers on the same machine. This code will not work
> together with other binaries anymore. But I'm sure you wont view it
> like that, otherwise you wouldnt be right anymore. Disagreement for
> the sake of argument.
Not at all.
My point, which you conveniently snipped, is that the ABI presumably
doesn't specify what machine code should be generated from C code in
all circumstances. It merely defines the behavior, and *maybe* the
actual machine code, for the interaction between the generated code
and other code in the system.
[snip]
Re-read the original question that started this thread. Do you really
think the OP was asking about ABIs?
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"