[Gambas-devel] I am using ddd to debug - problem

Laurent Carlier lordheavym at ...176...
Sat Aug 9 22:36:55 CEST 2008


Le Saturday 09 August 2008 22:25:52 Benoit Minisini, vous avez écrit :
> On samedi 09 août 2008, Laurent Carlier wrote:
> > Le Saturday 09 August 2008 09:58:14 Benoit Minisini, vous avez écrit :
> > > On vendredi 08 août 2008, Kari Laine wrote:
> > > > Found it !
> > > >
> > > > there is somewhere in the makefiles -O3 which replaces -O0. I will
> > > > try to fix this.
> > > >
> > > > Best Regards
> > > > Kari
> > >
> > > Yes. It was a trick to force gcc to use -O3 and not -Os for a specific
> > > file. And I didn't realize that the --disable-optimization flag is not
> > > taken into account then.
> > >
> > > I must find a way to specify file-specific compilation flags with
> > > automake. If you have ideas... :-)
> > >
> > > Regards,
> >
> > Is it really useful to put only this optimizing option for only one file
> > ? (iguess it's for gb_table.c).
> >
> > ++
>
> Yes. It makes the code of this file about 5% faster, and as this is the
> main interpreter loop, I think it's worth it.
>
> In Gambas 3, another source file has its own optimization flags.
>
> But I admit this is not the correct solution. Maybe this is a lack of
> feature in automake...

Add another variable like CORE_OPTIMIZE replaced in automake with -O3 in case 
of optimizing or with AM_CFLAG otherwise.

Perhaps i will take a look tonight after watching TV :-p

++





More information about the Devel mailing list