3 ms·
GCC can dump its internal representation at almost every stage of the compilation process. However, it's intended for diagnosing issues in the compilers or plu
by Ace17 7y ago
GCC can dump its internal representation at almost every stage of the compilation process.
However, it's intended for diagnosing issues in the compilers or plugins ; it's definitely not meant to be used as an interoperable format to be loaded back into a program.
gcc doesn't even provide a way to specify the output path for the dump file (too bad, as reliable AST dumping could enable implementing ast-based-ccache (instead of preprocessed-code-based-ccache, for compilation-caching of preprocessor-less languages)).