Obsolete C for you and me
Obsolete C for you and me
Posted Dec 9, 2023 18:52 UTC (Sat) by ballombe (subscriber, #9523)In reply to: Obsolete C for you and me by mb
Parent article: Modern C for Fedora (and the world)
Which miscompilation are you talking about?
Assignment between different pointer types is about impossible for the compiler to get wrong the compiler, whether or not cast are used.
Posted Dec 9, 2023 19:01 UTC (Sat)
by mb (subscriber, #50428)
[Link]
Well, I said what I was talking about:
>subtle "miscompilation" due to decades old code not playing with the rules of the C machine model or having implicit types and declarations.
Just try to compile a 30-40 year old C program. Chances are good that it just won't work.
Obsolete C for you and me