GNU Pascal and warnings.

Maurice Lombardi Maurice.Lombardi at ujf-grenoble.fr
Wed Feb 18 17:04:55 CET 2009



Lennart Thelander a écrit:
> Hello.
> 
> For quite many functions/Procedures, I get two warnings:
> warning: frame size too large for reliable stack checking
> warning: try reducing the number of local variables
> 
> Say what? Reducing the number of local variables? Here's an example:
> 
> PROCEDURE TTextEditItem.HandleKey(VAR theEvent:EventRecord);
> VAR
>    i            : SInt16;
>     pt            : Point;
>     theChr        : Char;
>     theKey        : SInt16;
>     shift        : BOOLEAN;
>     option        : BOOLEAN;
>     control        : BOOLEAN;
>     command        : BOOLEAN;
>     lineHeight,
>     ascent         : SInt16;
>     theStyle     : TextStyle;
> 
> I say that's a small amount of (small) local variables, so how can there 
> be too many?
> 
> And what is a "frame" and how can I reduce its size? Or better: How do I 
> allow for a larger frame size?
> 
> This is GNU Pascal 3.4.6u2 on Mac OS X and Xcode 2.5.

I had a similar message with stack checking on on a Fedora core 6 system with a 
64 bits cpu.
But I had indeed a large array as local variable, thus allocated on stack.
So I supposed it was normal and simply turned off stack checking.
May be there is a problem with 64  bits cpu's. What is yours ?

Maurice

-- 
        Maurice Lombardi
Laboratoire de  Spectrometrie Physique,
Universite Joseph Fourier de Grenoble, BP87
38402 Saint Martin d'Heres Cedex     FRANCE
Tel: 33 (0)4 76 51 47 51
Fax: 33 (0)4 76 63 54 95
mailto:Maurice.Lombardi at ujf-grenoble.fr






More information about the Gpc mailing list