Liste des Groupes | Revenir à c theory |
Richard Heathfield <rjh@cpax.org.uk> writes:You're right, of course. Refusing to trust my memory for post-1990 C, I checked by searching my PDF, found it, and forgot to check where I'd ended up (deep in the heart of "common extensions").On 16/03/2025 10:31, Mikko wrote:No, C99 didn't introduce the asm keyword.False. You didn't say that HHH is a C function. In particular, the>
code
shown above does not say so.
It scarcely qualifies as C.
>
For example, it begins by a goto this code:
>
__asm__("lea eax, DATA1");
__asm__("mov Aborted, eax");
__asm__("lea eax, DATA2");
__asm__("mov execution_trace, eax");
__asm__("mov eax, END_OF_CODE");
__asm__("mov End_Of_Code, eax");
>
which any C compiler is free to reject.
>
C99 introduced the asm keyword, but that's spelled asm, not __asm__,
and of course it's not a magic wand, so it can't make an inherently
unportable program work on every platform supported by C
compilers. C/370, for example, would have a fit.
I don't think Olcott intends HHH to be fully portable C (assumingThat's a daring assumption.
he knows what that means).
In any case, his claims about "EveryI can remove almost half the words from that sentence without affecting its inherent accuracy.
sufficiently competent C programmer" are ludicrous.
Les messages affichés proviennent d'usenet.