Re:C as an intermediate language (2012)
by MaxBarraclough on Saturday January 20, 2018 @10:21AM
(#16193626)
As I mention below, Vala debugging isn't the catastrophe you think: https://wiki.gnome.org/Projects/Vala/Tutorial#Debugging
I believe it's based on #pragmas that tell the C compiler (and/or GDB, presumably) which line of which file to blame.
Serious work has been done in Vala. It's not fair to dismiss the language as a quaint toy.
Preprocessor directives are not powerful enough [0], imho.
Re:C as an intermediate language (2012)
by MaxBarraclough on Sunday January 21, 2018 @02:56PM
(#16199638)
That isn't an attribute of using C as an IR, it's an attribute of optimising compilers.
The solution is to disable optimisation for debug builds, not to avoid C.
From the gnome.org page:
> The -g command line option tells the Vala compiler to include Vala source code line information in the compiled binary
Still, my simple opinion is: If you are serious, use LLVM. It is not that much harder than outputting C and has clear advantages like debug information.