|
|
Subscribe / Log in / New account

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)

> In fact, I would actually *prefer* the build breakage over a subtle "miscompilation" due to decades old code not playing with the rules of the C machine model or having implicit types and declarations.

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.


to post comments

Obsolete C for you and me

Posted Dec 9, 2023 19:01 UTC (Sat) by mb (subscriber, #50428) [Link]

>Which miscompilation are you talking about?

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.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds