Changes between Version 13 and Version 14 of Internships/JanStolarek
- Jul 5, 2013 1:11:13 PM (22 months ago)
v13 v14 33 33 = Various clean-up tasks = 34 34 == Cleaning up the STG ->Cmm pass == 35 When generating Cmm from STG there is some SRT information being generated (only for CAFs?). It is not used and has to be rebuilt anyway after converting to CPS Cmm. Below are some random notes and pieces of code that might related to this: 35 When generating Cmm from STG there is some . It is not used and has to be rebuilt anyway after converting to CPS Cmm. Below are some random notes and pieces of code that might related to this: 36 36 37 37 * Cmm conversions in the compiler pipeline: `main/HscMain.hs` has `tryNewCodeGen` (l. 1300), which first calls `StgCmm.codegen` and then passes the generated Cmm to `cmmPipeline` function from `cmm/CmmPipeline.hs`. According to Austin Seipp `cpsTop` in `cmm/CmmPipeline.hs` takes care of converting to CPS: "yeah, !CmmPipeline does take care of it. it's partially cpsTop that does it, and doSRTs elaborates the top-level info tables and stuff beyond that but mostly cpsTop. i think your general turning point is after the stack layout and stack pointer manifestation".