11.07.2015 Views

Program Logic Manual - All about the IBM 1130 Computing System

Program Logic Manual - All about the IBM 1130 Computing System

Program Logic Manual - All about the IBM 1130 Computing System

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.

ID WordThe layout of <strong>the</strong> Symbol Table ID word is given inTable 4. The ID word is formed when <strong>the</strong> entry isplaced in <strong>the</strong> Symbol Table.Table 4. The Contents of <strong>the</strong> FORTRAN Symbol Table ID WordBitPosition0 1 - Constant0 - VariableStatus and Meaning1 1 - Integer0 - Real2 1 - COMMONName-Data WordsThe Name-Data words of Symbol Table entries have<strong>the</strong> following format:3-4 01 - One dimension10 - Two dimensions11 - Three dimensions5 1 - Statement function parameter/dummy argument6 1 - Statement number7 1 - Statement function nameWord BitContents8 1 - Subprogram name9 1 - FORMAT statement number1 0 0, if <strong>the</strong> following 15 bits contain<strong>the</strong> first half of a constant; 1, if<strong>the</strong> following 15 bits contain anythingo<strong>the</strong>r than <strong>the</strong> first half of aconstant.1-15 First 15 bits of <strong>the</strong> 30-bit SymbolTable entry2 0 Same as bit 0 of word 11-15 Second 15 bits of <strong>the</strong> 30-bit SymbolTable entry10 1 - Referenced statement number or definedvariable11 1 - External12 1 - Generated temporary storage location (GT)13 1 - Subscript-generated temporary variable (SGT)14 1 - <strong>All</strong>ocated variable15 Not UsedThree words are always used for <strong>the</strong> dimensioninformation regardless of <strong>the</strong> number of dimensions.For one-dimensional arrays, all three dimensionwords contain <strong>the</strong> integer constant that specifies <strong>the</strong>dimension of <strong>the</strong> array. For example, <strong>the</strong> entry forarray ARRAY (10) would appear as:Dimension Information Array Name10 I 10 I 10 ID WorcDimensioned EntriesLowest- Highest-AddressedAddressedWordWordThe Symbol Table entry for a dimensioned variablerequires six words: two for <strong>the</strong> array name, onefor <strong>the</strong> ID word, and three for <strong>the</strong> dimension information.The dimension information occupies <strong>the</strong>three lowest-addressed words, <strong>the</strong> ID word occupies<strong>the</strong> next higher-addressed word, and <strong>the</strong> Name-Datawords occupy <strong>the</strong> two highest-addressed words.For two-dimensional arrays, <strong>the</strong> first (highestaddressed)dimension word contains <strong>the</strong> integerconstant of <strong>the</strong> first dimension; <strong>the</strong> middle andlast (lowest-addressed) dimension words bothcontain <strong>the</strong> product of <strong>the</strong> first and second dimensioninteger constants. Thus, <strong>the</strong> dimension informationfor array B(5,15) appears as:Section 11. FORTRAN Compiler 79

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

Saved successfully!

Ooh no, something went wrong!