Hi, I am currently building my first compiler through the help of a
few books. So far I have my grammar and most of the front-end ready,
up to the AST.
Next step is to convert to intermediate code. What I am not sure about
is whether to generate Three Address Code, or SSA. Most books
introduce triples and quadruples, and then talk about SSA later on,
stating that it can be used for many optimization/transformation
techniques and is preferred over 3ac/etc.
Can I generate SSA immediately from the AST?
Best Regards,
K. Phillips