suztomoの日記

To be a good software engineer

gcc -E -I ~/Downloads/ghc-7.0.3/includes/ main.c > expanded.c
(ghc -optc-ggdb -keep-tmp-files -tmpdir ./tmp -v -fvia-C Main.hs 2>&1) > ghc_output.txt

Then I get macro-expanded code