Highlighted
Absent Member.
Absent Member.
311 views

Compiling for data items greater than 64k

Greetings,

We're trying to compile several programs written in Acucobol 4.1 with the 10.2.1 compiler. We're hitting this particular issue. Many programs are throwing

"data item exceeds 64K"

The thing is, I am trying to compile the program with the -Z41 flag set for backwards compatibility. These load modules are used by a 4.1 runtime so this is important.

10.2.1 compiles the program successfully without the -Z41 flag set.

I see that there is an additional flag that seems to address exactly the issue I am facing

-Zl     All data items may be larger than 64 KB. This option is obsolete. In versions prior to 6.0, this option caused the compiler to allow data items larger than 64 KB.

As mentioned above, the option is obsolete and the compiler is clearly ignoring the flag even when set.

Any way forward?

0 Likes
1 Reply
Highlighted
Outstanding Contributor.
Outstanding Contributor.

RE: Compiling for data items greater than 64k

Hi,
The -Zl option is obsolete IF you are creating object files 6.0 or newer. It still applies if you are creating older object files. Compiling with both -Z41 and -Zl should enable data items larger than 64k. I do not have version 4.1 and so my tests were done comparing compiler version 5.2.1 with 10.2.1. They behave the same with data items larger than 64k using both -Z41 and -Zl.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.