This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using GCC for "real-time" compilation in audio engine development


On 04-Dec-2002, Torgeir Strand Henriksen <torgshen@stud.iet.hist.no> wrote:
> > In other words, you're looking at dynamic synthesis of C code, to be
> > compiled into .so's in the background, and then loaded into a running
> > application.
> 
> Yes, only I was hoping to avoid going via C, and rather go directly to
> the internal tree representation of GCC.

If you are going to do that, I advise you do it later.
Premature optimization is the root of all evil ;-)
It will be much easier to debug if you start off generating C.
If that turns out to be too slow, then -- and only then --
it may be worth writing your own front-end.  But writing
your own GCC front-end is a non-trivial amount of work
and also requires a non-trivial amount of maintenance,
since the GCC front-end interface is not stable.
It's something you should avoid if you can.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]