News for hackers. Stuff that matters.
Re:C as an intermediate language (2012) by rayiner on Wednesday July 17, 2013 @11:03AM (#6058036)
You lose a lot of things the C compiler does for you by targeting LLVM directly. A big one is debug info. The C compiler will emit debug information for you, and with some line directives, as shown in the article, or maybe scripts, you can get minimally usable source-level debugging without having to generate your own debug info.
Re:C as an intermediate language (2012) by pcwalton on Wednesday July 17, 2013 @12:00PM (#6058419)
LLVM has high-level support for debug info. (You have to actually generate it, which isn't free, but neither is generating #line directives, so it's arguably a wash.)