home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!stanford.edu!unixhub!fnnews.fnal.gov!overload.lbl.gov!zeus.ieee.org!europa.asd.contel.com!gatech!paladin.american.edu!auvm!GMUVAX.BITNET!JURASCHEK
- Original_To: JNET%"Ibm-main@ricevm1"
- Original_cc: JURASCHEK
- Message-ID: <IBM-MAIN%92110915341937@RICEVM1.RICE.EDU>
- Newsgroups: bit.listserv.ibm-main
- Date: Mon, 9 Nov 1992 16:25:00 EST
- Sender: IBM Mainframe Discussion list <IBM-MAIN@RICEVM1.BITNET>
- From: "David F. Juraschek" <JURASCHEK@GMUVAX.BITNET>
- Subject: Re: Forcing page boundaries in high level code
- Lines: 33
-
- Oops! So sorry.
- I was not asking how to cause the output to EJECT to the top of a form.
- (I can understand the confusion.)
-
- I want to know if there is a COBOL and perhaps a PL/I trick - in the code
- that is generated by the compiler - to force portions of the object code
- to begin on page boundaries.
-
- For example, is there some way to make various groups of paragraphs to be
- aligned at an even 2K or 4K (or whatever) page. The object here is to
- allow portions of a COBOL program, for example to be loaded into the same
- physical page of memory - or at least to begin at the same page. (And,
- this should be for a potentially gigantic COBOL program.) The academic
- reason for this is to potentially reduce paging by a large COBOL (or PL/I)
- program because at various points it's only referencing other code which
- is within the same Page or group of pages in memory.
-
- Alignment is no problem in Assembler and it can be accomplished in the
- WORKING STORAGE portion of COBOL without too much hassle. But how do you
- control this kind of alignment in the PROCEDURE DIVISION? (Or similar parts
- of a PL/I program?)
-
- Again, this is purely an academic question - so please - no debates about
- the viability of COBOL or PL/I (or lack thereof) over some other language.
-
- And, again, I'm not asking about aligning the compiler print out at the
- top of form with EJECT or some other printout command. These are memory
- pages - not paper pages.
-
- Thanks.
-
- -Dave Juraschek
- IBM Systems - George Mason University
-