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

Benoit Minisini gambas at ...1...
Sat Aug 9 22:25:52 CEST 2008


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...

-- 
Benoit Minisini




More information about the Devel mailing list