guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stack calibration


From: Ludovic Courtès
Subject: Re: Stack calibration
Date: Sun, 28 Sep 2008 22:07:52 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

One last thing...

"Neil Jerram" <address@hidden> writes:

> @@ -81,6 +106,15 @@ scm_stack_report ()
>  void
>  scm_init_stackchk ()
>  {
> +#ifdef GUILE_CALIBRATION_MEASURED_DEPTH_1
> +  /* Calculate calibrated stack depth limit. */
> +  calibrated_m = ((double) (GUILE_CALIBRATION_MEASURED_DEPTH_2 - 
> GUILE_CALIBRATION_MEASURED_DEPTH_1))
> +    / (GUILE_CALIBRATION_REFERENCE_DEPTH_2 - 
> GUILE_CALIBRATION_REFERENCE_DEPTH_1);
> +  calibrated_c = ((double) GUILE_CALIBRATION_MEASURED_DEPTH_2)
> +    - calibrated_m * GUILE_CALIBRATION_REFERENCE_DEPTH_2;
> +#endif
> +  scm_calculate_stack_limit ();
> +
>  #include "libguile/stackchk.x"
>  }

I'd like it better it these were statically initialized.

Ludo'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]