Re: Interaction between optimizer and inline asm in gcc?

kg_russell@yahoo.co.uk (Lord_Carnage)
23 May 2002 01:50:01 -0400

          From comp.compilers

Related articles
Interaction between optimizer and inline asm in gcc? colohan+@cs.cmu.edu (Christopher Brian Colohan) (2002-05-17)
Re: Interaction between optimizer and inline asm in gcc? loewis@informatik.hu-berlin.de (2002-05-23)
Re: Interaction between optimizer and inline asm in gcc? sam@zoy.org (2002-05-23)
Re: Interaction between optimizer and inline asm in gcc? journeyman@compilerguru.com (2002-05-23)
Re: Interaction between optimizer and inline asm in gcc? kg_russell@yahoo.co.uk (2002-05-23)
| List of all articles for this month |

From: kg_russell@yahoo.co.uk (Lord_Carnage)
Newsgroups: comp.compilers
Date: 23 May 2002 01:50:01 -0400
Organization: http://groups.google.com/
References: 02-05-092
Keywords: GCC, optimize
Posted-Date: 23 May 2002 01:50:01 EDT

Hi Chris,


When you have inline asm blocks in loops under GCC and specify the
-funroll-loops option then the loop is still unrolled. This was
tested under GCC 2.95.3.


Cheers,


Kev


Christopher Brian Colohan <colohan+@cs.cmu.edu> wrote
> I am working on an architecture research project where we are using
> inline assembly instructions to instrument and change the behaviour of
> loops.
>
> I was wondering if anyone has looked into the impact of doing this on
> gcc's optimizer: in other words, how conservatively does gcc treat
> inline asm statements? For example, would inserting such a statement
> inhibit loop unrolling?


Post a followup to this message

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