Periodic reminder: Don’t compile to C.
-
-
Replying to @pcwalton
Why? It's the only way to get native code without only supporting a few popular mainstream platforms.
2 replies 0 retweets 0 likes -
Replying to @RichFelker
Because of undefined behavior, bad error reporting, and never being able to implement proper GC, among other reasons.
4 replies 0 retweets 7 likes -
Replying to @pcwalton @RichFelker
(By error reporting I mean “DWARF debugging info”, sorry.)
1 reply 0 retweets 0 likes -
Replying to @pcwalton @RichFelker
It's possible to generate the right debugging info. If it weren't, you'd have a bad time with the preprocessor.
1 reply 0 retweets 0 likes -
Replying to @MikeHommey @RichFelker
Not at any level better than
#line. You can’t generate arbitrary DWARF DIEs, which is what you really need.2 replies 0 retweets 0 likes -
Replying to @pcwalton @MikeHommey
Do you mean you want debug info reflecting the original language source rather than the C IR?
1 reply 0 retweets 1 like -
Replying to @RichFelker @MikeHommey
Yes. Otherwise it’s a bad developer experience.
2 replies 0 retweets 3 likes
But debuggers are only needed for unsafe languages. 
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.