9 - <program> Reserved Word: class IDENTIFIER:...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
<program> Reserved Word: class IDENTIFIER: CS316ex9 [not in symbol table] { <dataFieldDecl> Reserved Word: static <varDecl> Reserved Word: int <singleVarDecl> IDENTIFIER: timescalled [not in symbol table] [ ] = *** Generating: 0: PUSHSTATADDR 0 <expr3> <expr2> <expr1> Reserved Word: new Reserved Word: int [ <expr3> <expr2> <expr1> *** Generating: 1: PUSHNUM 1 UNSIGNED INTEGER LITERAL: 1 ... node has no more children ... node has no more children ... node has no more children *** Generating: 2: HEAPALLOC ] ... node has no more children ... node has no more children ... node has no more children *** Generating: 3: SAVETOADDR ... node has no more children ; ... node has no more children ... node has no more children <dataFieldDecl> Reserved Word: static <varDecl> Reserved Word: int <singleVarDecl> IDENTIFIER: arr [not in symbol table] [ ] ... node has no more children ; ... node has no more children ... node has no more children <mainDecl> Reserved Word: public Reserved Word: static Reserved Word: void Reserved Word: main ( Reserved Word: String IDENTIFIER: args [not in symbol table] [
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
] ) *** Generating: 4: INITSTKFRM ? <compoundStmt> { <statement> <assignmentOrInvoc> IDENTIFIER: arr [static var (address = 1)] *** Generating: 5: PUSHSTATADDR 1 = <expr3> <expr2> <expr1> Reserved Word: new Reserved Word: int [ <expr3> <expr2> <expr1> *** Generating: 6: PUSHNUM 101 UNSIGNED INTEGER LITERAL: 101 ... node has no more children ... node has no more children ... node has no more children *** Generating: 7: HEAPALLOC ] ... node has no more children ... node has no more children ... node has no more children *** Generating: 8: SAVETOADDR ; ... node has no more children ... node has no more children <statement> <assignmentOrInvoc> IDENTIFIER: arr [static var (address = 1)] *** Generating: 9: PUSHSTATADDR 1 *** Generating: 10: LOADFROMADDR [ <expr3> <expr2> <expr1> *** Generating: 11: PUSHNUM 2 UNSIGNED INTEGER LITERAL: 2 ... node has no more children ... node has no more children + <expr2> <expr1> IDENTIFIER: acker [not in symbol table] <argumentList> ( <expr3> <expr2> <expr1> *** Generating: 12: PUSHNUM 3 UNSIGNED INTEGER LITERAL: 3 ... node has no more children ... node has no more children
Background image of page 2
... node has no more children *** Generating: 13: PASSPARAM , <expr3> <expr2> <expr1> *** Generating: 14: PUSHNUM 3 UNSIGNED INTEGER LITERAL: 3 ... node has no more children ... node has no more children ... node has no more children *** Generating: 15: PASSPARAM , <expr3> <expr2> <expr1> IDENTIFIER: timescalled [static var (address = 0)] *** Generating: 16: PUSHSTATADDR 0 *** Generating: 17: LOADFROMADDR ... node has no more children ... node has no more children ... node has no more children *** Generating: 18: PASSPARAM ) ... node has no more children *** Generating: 19: CALLSTATMETHOD ?
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/05/2010 for the course COMPUTER S 700 taught by Professor Joewhite during the Spring '10 term at Universidad San Martín de Porres.

Page1 / 18

9 - &lt;program&gt; Reserved Word: class IDENTIFIER:...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online