home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / bit / listserv / ibmmain / 2604 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.8 KB  |  32 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!stanford.edu!unixhub!fnnews.fnal.gov!overload.lbl.gov!zeus.ieee.org!europa.asd.contel.com!paladin.american.edu!auvm!AWIIMC12.IMC.UNIVIE.AC.AT!CHRISTIAN.J.REICHETZEDER
  3. Organization: Institut fuer Medizinische Computerwissenschaften
  4. Message-ID: <921109.225421.CET.REICHETZ@AWIIMC12.IMC.UniVie.AC.AT>
  5. Newsgroups: bit.listserv.ibm-main
  6. Date:         Mon, 9 Nov 1992 22:54:21 CET
  7. Sender:       IBM Mainframe Discussion list <IBM-MAIN@RICEVM1.BITNET>
  8. From:         Christian.J.Reichetzeder@AWIIMC12.IMC.UNIVIE.AC.AT
  9. Subject:      Re: Forcing page boundaries in high level code
  10. In-Reply-To:  Message of Mon, 9 Nov 92 16:25:00 EST from <JURASCHEK@GMUVAX>
  11. Lines: 19
  12.  
  13. On Mon, 9 Nov 92 16:25:00 EST David F. Juraschek said:
  14. >For example, is there some way to make various groups of paragraphs to be
  15. >aligned at an even 2K or 4K (or whatever) page.  The object here is to
  16. >allow portions of a COBOL program, for example to be loaded into the same
  17. >physical page of memory [....]
  18. In my experience the primary reason for paging is due to
  19. jumping through the data sections (arrays of structures vs. structures of
  20. arrays and the like).
  21. Admitted - for large  programs code too can cause heavy  paging. As Larry said
  22. overlays can do  some tricks to keep  certain parts of code  together but with
  23. sloppy coding you not only get paging but also I/O due to fetching of modules.
  24. Keep in mind that  HLL's often use library calls so you  always have a certain
  25. minimum working  set. If you  want to bundle  parts together (given  your flow
  26. already  avoids unnecessary  jumps through  the code)  compile the  program in
  27. small chunks.  You can then  direct the loader to  load the parts  at specific
  28. locations. Or you  could write dummy assembler routines which  punch SLC cards
  29. and contain references to the COBOL entry points.
  30.  
  31. Christian
  32.