|Basic blocks and CFG firstname.lastname@example.org (lican) (2009-03-16)|
|Re: Basic blocks and CFG email@example.com (Diego Novillo) (2009-03-17)|
|Re: Basic blocks and CFG firstname.lastname@example.org (kamal) (2009-03-17)|
|Date:||Tue, 17 Mar 2009 09:15:44 -0700 (PDT)|
|Posted-Date:||17 Mar 2009 17:05:54 EDT|
On Mar 17, 7:22 am, lican <lica...@gmail.com> wrote:
> Does anyone know if it is possible to build basic blocks without
> generating IR, directly from an AST? I find it rather difficult. For
> simple cases why not, but the main problems are the nested loops and
> break / continue statements in loops. I ignore the gotos, I don't
> need them in the language I'm building. So... possible, anyone tried
> this earlier?
Nope -this wasn't considered even for a source to source (fortran to
parallel fortran) translator I worked for. The main issue is that you
need to identify a basic block to apply I/M optimization techniques.
Return to the
Search the comp.compilers archives again.