bug-gnucobol
[Top][All Lists]
Advanced

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

Re: [Bug-GnuCOBOL] Binary allocations - -fbinary-size=2-4-8


From: Ron Norman
Subject: Re: [Bug-GnuCOBOL] Binary allocations - -fbinary-size=2-4-8
Date: Mon, 14 May 2018 13:01:39 -0400

With Micro Focus using IBMCOMP both PIC 99 COMP-5 & COMP-4 are 2 byte fields.
Without IBMCOMP  both PIC 99 COMP-5 & COMP-4 are 1 byte fields.
COMP-4 is always BIG-ENDIAN and COMP-5 is always native machine orientation.

With GnuCOBOL -std=default,  both PIC 99 COMP-5 & COMP-4 are 1 byte fields
But with GnuCOBOL -fibmcomp, PIC 99 COMP-5 is 1 byte and PIC 99 COMP-4 is 2 bytes. 
In this case GnuCOBOL is wrong as should be 2 bytes for both to match Micro Focus.

Strangely '-std=mf' results in both PIC 99 COMP-5 & COMP-4 are 1 byte fields




On Mon, May 14, 2018 at 12:49 PM, Simon Sobisch <address@hidden> wrote:
I haven't checked IBMs docs on this but I assume the correct thing to do for std ibm and bs2000 would be to implement COMP-5 as different comp type. What does MicroFocus do in ibm mode?

Simon



--
Cheers
Ron Norman

reply via email to

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