[Info-vax] VMS Cobol - GnuCOBOL

Scott Dorsey kludge at panix.com
Mon Feb 27 18:28:39 EST 2023


David Wade  <g4ugm at dave.invalid> wrote:
>On 27/02/2023 20:58, Arne Vajhøj wrote:
>> On 2/27/2023 11:49 AM, ultr... at gmail.com wrote:
>>> On Thursday, February 23, 2023 at 5:05:50 PM UTC-5, Paul Gavin wrote:
>>>> What, DEC C cannot be debugged?
>>>> Working on some enhancements in a C based app on Alphas running 8.4.
>>>> Can get to debugger just fine, step through code, look at data, set 
>>>> break points, etc., even from within ACMS.
>>>
>>> never debugged dec c but if the compiler debugger is anything like C 
>>> it is difficult ...
>
>I feel the issue with debugging "C" is that in order to effectively use 
>the debugger you tend to need to turn down optimisation, but turning 
>down optimization tends to make the code work as you expect. When you 
>turn it up again, undefined behaviour tends to re-emerge.

This is definitely not the case with either the newer VMS C nor the more
recent gcc.  It used to be a real problem with gcc.  Even worse with
Whitesmith's.  But that was a long time ago.
--scott

-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."



More information about the Info-vax mailing list