guile-devel
[Top][All Lists]
Advanced

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

Re: Stack calibration


From: Neil Jerram
Subject: Re: Stack calibration
Date: Tue, 30 Sep 2008 23:11:38 +0100

2008/9/28 Ludovic Courtès <address@hidden>:
> 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.

Good idea, I'll do that.

   Neil




reply via email to

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