public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Fixed function compilation order
@ 2007-08-08 23:24 Cupertino Miranda
  2007-08-09  0:03 ` Daniel Berlin
  0 siblings, 1 reply; 2+ messages in thread
From: Cupertino Miranda @ 2007-08-08 23:24 UTC (permalink / raw)
  To: gcc

Hello everyone,

I am currently trying to enable GCC to perform compilation without  
having to respect any compilation order, i.e. execute some pass to  
any function at any time (it is not only pass reordering).

As what I have seen from (trunk version of) GCC, it doesn't seem an  
easy task to be achieved and it might traduce in many complications  
later in development.
In that sense I would like to have some opinions and suggestions from  
you all:

  - Imagining I am able to change the function context by updating  
cfun, etc. Will passes (all_passes) execute without
missing/wrong data, i.e. is all shared data between passes accessed/ 
updated thought pointers such as cfun, etc. ?

  - What should I initialise/finalise to be able to perform the  
function context change ?

I would like to have your opinion and tips on how to approach it and  
which problems I might expect to have later.

Thanks in advance,
Cupertino Miranda

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fixed function compilation order
  2007-08-08 23:24 Fixed function compilation order Cupertino Miranda
@ 2007-08-09  0:03 ` Daniel Berlin
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Berlin @ 2007-08-09  0:03 UTC (permalink / raw)
  To: Cupertino Miranda; +Cc: gcc

On 8/8/07, Cupertino Miranda <cupertinomiranda@gmail.com> wrote:
> Hello everyone,
>
> I am currently trying to enable GCC to perform compilation without
> having to respect any compilation order, i.e. execute some pass to
> any function at any time (it is not only pass reordering).

>
> As what I have seen from (trunk version of) GCC, it doesn't seem an
> easy task to be achieved and it might traduce in many complications
> later in development.
> In that sense I would like to have some opinions and suggestions from
> you all:


For tree level optimization, this is really not difficult.
For RTL, this is probably going to be really hard.
>
>   - Imagining I am able to change the function context by updating
> cfun, etc. Will passes (all_passes) execute without
> missing/wrong data, i.e. is all shared data between passes accessed/
> updated thought pointers such as cfun, etc. ?

What do you mean "missing/wrong" data.
>   - What should I initialise/finalise to be able to perform the
> function context change ?

See any IPA pass
>
> I would like to have your opinion and tips on how to approach it and
> which problems I might expect to have later.
>
> Thanks in advance,
> Cupertino Miranda
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-09  0:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-08 23:24 Fixed function compilation order Cupertino Miranda
2007-08-09  0:03 ` Daniel Berlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).