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.

Execution Error MessagesThe information given in the program listing can be very valuable fordebugging a large program. A run-time error message will normally indicatethe segment number, the procedure number, and the byte number withinthe procedure where the error occurred.Here is a sample run-time error message:Execution Error # 1S# 1, P# 1, I H 5Press to continueS# is the segment number, P# is the procedure number, and I# is the bytenumber in that procedure where the error occurred. In this example, youcould find the Pascal statement where the error occurred by findingSegment 1 in the second column of the listing, then Procedure 1 in the thirdcolumn. Then look in the fourth column for the largest byte number that isless than 5. This is the starting byte number of the statement that containsByte 5 of Procedure 1 of Segment 1, and this is the statement where theerror occurred.All possible Apple Pascal execution error messages are listed inAppendix 2H.Compiler OptionsCompiler options allow you to make choices about how the Compileroperates. There areo Options that control the operation of the Compiler itself, such as choosingwhether or not it will create a program listing;o Error-checking options that allow you to turn on and off certainautomatic error-reporting features;o Options that allow you to control the compilation and loading of programsegments and Program Units;o Miscellaneous Compiler options.All of these are discussed in the following sections. The syntax for writingCompiler options in source text, and their behavior from the viewpoint ofthe Pascal language, are discussed in Chapter 14 of Part III.Compiler Options 11-147

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

Saved successfully!

Ooh no, something went wrong!