13.07.2015 Views

apple-pascal-1.3-manual

apple-pascal-1.3-manual

apple-pascal-1.3-manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

No matter how much memory space your hardware provides, the day willcome when it is not enough. This chapter gives you some suggestions onhow to make the most of the available memory when working with large orcomplex Pascal programs. Even when memory space is not a problem, youmay find that these suggestions help you create cleaner and more efficientprograms.There are four areas where large programs most commonly generateproblems:o editingo compilingD linkingo executingThe available techniques for coping with large-program problems in theseareas are discussed separately below.Editing Large Prngra.msThe Apple Pascal Editor has a file capacity of 17920 characters with the64K system and 32256 characters with the 128K system. Ordinarily, all thetext to be compiled as one program is present in a single textfile.When a program outgrows the Editor's capacity, you must break it up. Youcan do this by using the "include" Compiler option to pull a series ofseparate files of source text into one compilation. This option is described inPart II of this <strong>manual</strong>, Chapter 5.Compiling Large ProgramsBeing able to edit a large source text is no guarantee that the Compiler willbe able to compile it. The compilation process has these limitations:o The maximum number of procedures and/or functions allowed in anysegment is 254.o The maximum amount of P-code allowed for any block is 1999 bytes.o The nesting limit for procedures and functions is 8 levels.These limitations are discussed under "Size and Complexity Limits" inChapter 8.III-244Chapter 15: Large Program Management

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!