Mail Archives: djgpp-workers/1998/09/06/14:48:52
Nate Eldredge wrote:
> > Just a simple question - is there any method to prevent
> > specific function from expanding inline ?
> If you don't declare it `inline' and optimize with less than `-O3',
> AFAIK, it won't be inlined.
This one is subject to change by user of library - and lib must work...
> No inline :
> * Uses varargs.
> * Has nested functions.
Does it also apply to constructor - i.e. will something like
Class::Class(){
void f(){}
...
... constructor code
...
}
do the magic ?
> > I need it to prevent constructors of some classes from
> > expanding inline. I need a real call instruction to them
> > everywhere they are used.
> You could define it outside the class, perhaps?
IMHO it'll not help in some cases -
i.e. simple enough constructor of base class defined in the same file
before
derived one will be likely inlined _in the body of derived class
constructor_
Am I wrong ?
============================
Ilya P. Ryzhenkov aka Orangy
iNetLab
e-mail : orangy AT inetlab DOT com
ICQ : 17942172
- Raw text -