Skip to contentSkip to conversation

C undefined behavior fix

PATCH [email protected] 1 participant 1 message Jan 6, 2002

lore
Share & tools
lore
#0 lore raw

<<I think the goal and intent, for Ada and C as well, is to say that the compiler will generate what is possible from assembly code written by an expert on the platform, using the best fitting access that is possible.

Quoted 1 line
Quoted 1 line

Ah ha! But then look again at my 16-bit example, an expert assembly langauge programmer will use a 32 bit load if efficiency is not an issue (and it does not matter if there are extra bits around), but a 16-bit load if the hardware for some reason requires it. How is the poort C compiler to distinguish these cases automatically?