Periodic reminder: Don’t compile to C.
Why? It's the only way to get native code without only supporting a few popular mainstream platforms.
-
-
Because of undefined behavior, bad error reporting, and never being able to implement proper GC, among other reasons.
-
(By error reporting I mean “DWARF debugging info”, sorry.)
-
It's possible to generate the right debugging info. If it weren't, you'd have a bad time with the preprocessor.
-
Not at any level better than
#line. You can’t generate arbitrary DWARF DIEs, which is what you really need. -
Do you mean you want debug info reflecting the original language source rather than the C IR?
-
Yes. Otherwise it’s a bad developer experience.
-
rustc goes to a lot of effort to make good debug info, because our users demanded it:https://github.com/rust-lang/rust/tree/master/src/librustc_codegen_llvm/debuginfo …
End of conversation
New conversation -
-
-
It works pretty well for Nim, though.
-
No, it doesn’t. Nim should stop compiling to C.
End of conversation
New conversation -
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.