vnmakarov / mir

A lightweight JIT compiler based on MIR (Medium Internal Representation) and C11 JIT compiler and interpreter based on MIR
MIT License
2.29k stars 145 forks source link

c2m dump the generated assembly #333

Closed c8ef closed 1 year ago

c8ef commented 1 year ago

I have a few questions, if you wouldn't mind answering them. Firstly, I was wondering whether there are any command line flags in c2m that would allow for dumping the generated assembly code. Additionally, I was curious as to whether there are any similar flags for dumping the optimizing pipeline, similar to what is available in LLVM, which would allow us to easily see what changes have occurred between each optimization step.

c8ef commented 1 year ago

Oh, I find -dg comes in handy.