4 ms·
GCC can dump it's AST https://stackoverflow.com/questions/15800230/how-can-i-dump-an-abstract-syntax-tree-generated-by-gcc-into-a-dot-file https://stackoverflow
by mhh__ 7y ago
GCC can dump it's AST https://stackoverflow.com/questions/15800230/how-can-i-dump-an-abstract-syntax-tree-generated-by-gcc-into-a-dot-file https://stackoverflow.com/questions/15800230/how-can-i-dump-...
- Ace17 7y agoGCC 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)).