Re: Basic blocks and CFG

kamal <kamalpr@hp.com>
Tue, 17 Mar 2009 09:15:44 -0700 (PDT)

          From comp.compilers

Related articles
Basic blocks and CFG licaner@gmail.com (lican) (2009-03-16)
Re: Basic blocks and CFG dnovillo@acm.org (Diego Novillo) (2009-03-17)
Re: Basic blocks and CFG kamalpr@hp.com (kamal) (2009-03-17)
| List of all articles for this month |

From: kamal <kamalpr@hp.com>
Newsgroups: comp.compilers
Date: Tue, 17 Mar 2009 09:15:44 -0700 (PDT)
Organization: Compilers Central
References: 09-03-078
Keywords: analysis, AST
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.



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.