Is there any disadvantage to using -cp compiler option for full pointer support?

Question ID : 129
Created on 2010-05-28 at 11:14 AM
Author : Veryant Support []

Online URL :

By default (i.e. without -cp), the isCOBOL compiler uses Java memory for all data items. The Java Virtual Machine safeguards programs that use purely Java memory and that do not call native functions. These programs cannot cause memory protection faults, bus errors, segmentation violations, stack corruption, illegal instructions, and other memory related problems.

-cp is implemented using native memory. It enables the following functionality:

Veryant recommends that you use the -cp compiler option only if you require one or more of the above capabilities.

Note: If you need to compile with -cp and your program uses the figurative constant NULL then add the following compiler option in order to treat NULL as ZERO since NULL is reserved for use with objects (object-oriented programming):


Note: If your program uses pointers only within COBOL and between COBOL programs and does not use pointer arithmetic, then compile with the -ca compiler option instead of -cp. The -ca option has the following effects:

See also Does SET ADDRESS OF X TO Y work?

Back to Original Question