Re: Preventing the deletion of unreferenced strings by optimizing compilers

2013-10-31 Thread Kirk Wolf
FWIW, in z/OS C/C++, you can use #pragma comment copyright - http://pic.dhe.ibm.com/infocenter/zos/v1r13/index.jsp?topic=%2Fcom.ibm.zos.r13.cbclx01%2Fpragma_comment.htm Kirk Wolf Dovetailed Technologies http://dovetail.com -- F

Re: Preventing the deletion of unreferenced strings by optimizing compilers

2013-10-31 Thread John Gilmore
The VDL formalization of PL/I does not guarantee this behavior. I am not, however, at all fearful that some optimizer may behave differently, at least for long. There is an old understanding common to scientific and business programming that aggregates, arrays and structures|records, are likely t

Re: Preventing the deletion of unreferenced strings by optimizing compilers

2013-10-31 Thread Charles Mills
: IBM-MAIN@LISTSERV.UA.EDU Subject: Preventing the deletion of unreferenced strings by optimizing compilers I wanted to test my notion before presenting it, and it does turn out that embedding an unreferenced value in a structure (COBOL record) at least one other element of which is referenced in an

Re: Preventing the deletion of unreferenced strings by optimizing compilers

2013-10-31 Thread Joel C. Ewing
This certainly seems like a reasonable behavior for an optimizing compiler, but does the formal PL/I semantics demand the behavior you have observed or is this just the current implementation behavior? If this behavior is not formalized in language semantics, does that not allow a more sophisticat

Preventing the deletion of unreferenced strings by optimizing compilers

2013-10-31 Thread John Gilmore
I wanted to test my notion before presenting it, and it does turn out that embedding an unreferenced value in a structure (COBOL record) at least one other element of which is referenced in an executable statement ensures that that structure will not be deleted. A PL/I example declare 1 copyright