andrewc12 / parse_rtl

python script for parsing gcc's RTL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

Tool to parse gcc's RTL dumps.

Usage

  • compile with CFLAGS+=-fdump-rtl-expand
  • check filename of generated .expand files. Current code assumes "*.c.213r.expand". If yours looks different, adjust _rtl_expand_suffix variable in parse_syms.py
  • run "parse_syms.py <path-to-expand_files> >out.dot
  • create pdf, e.g., "dot -Tpdf out.dot > out.pdf"

About

python script for parsing gcc's RTL

License:GNU General Public License v3.0


Languages

Language:Python 100.0%