Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
about:sac2c [2016/10/19 22:25] – created hnvabout:sac2c [2016/10/19 22:42] (current) – Added image block hnv
Line 12: Line 12:
 However, C is used as an intermediate language in order to achieve portability among different target architectures and to reuse existing compiler technology for the generation of machine specific code. However, C is used as an intermediate language in order to achieve portability among different target architectures and to reuse existing compiler technology for the generation of machine specific code.
  
-The following graphic illustrates the major compilation phases of sac2c. Most of the intermediate phases operate on a code representation that is based on static single assignment form (SSA). To achieve this two additional phases called Fun2LaC and LaC2Fun transform intermediate SAC code into this convenient format and vice versa. For example, front-end representations of loops and if-clauses are transformed to what they actually represent: tail-end recursive functions and functional conditionals. +The following graphic illustrates the major compilation phases of sac2c. Most of the intermediate phases operate on a code representation that is based on static single assignment form (SSA). To achieve this two additional phases called Fun2LaC and LaC2Fun transform intermediate SAC code into this convenient format and vice versa. For example, front-end representations of loops and if-clauses are transformed to what they actually represent: tail-end recursive functions and functional conditionals. 
 + 
 +<imgcaption comp-phases center|Compilation Phases of the sac2c compiler>{{ :about:comp_phases.png|Compilation Phases}}</imgcaption>