11 - Reserved Word: class IDENTIFIER: CS316ex11...

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: CS316ex11 [not in symbol table] { <mainDecl> Reserved Word: public Reserved Word: static Reserved Word: void Reserved Word: main ( Reserved Word: String IDENTIFIER: Args [not in symbol table] [ ] ) *** Generating: 0: INITSTKFRM ? <compoundStmt> { <statement> <outputStmt> Reserved Word: System . Reserved Word: out . Reserved Word: println ( <printArgument> <expr3> <expr2> <expr1> IDENTIFIER: fib [not in symbol table] <argumentList> ( <expr3> <expr2> <expr1> *** Generating: 1: PUSHNUM 12 UNSIGNED INTEGER LITERAL: 12 ... node has no more children ... node has no more children ... node has no more children *** Generating: 2: PASSPARAM ) ... node has no more children *** Generating: 3: CALLSTATMETHOD ? ... node has no more children ... node has no more children ... node has no more children *** Generating: 4: WRITEINT ... node has no more children ) ; *** Generating: 5: WRITELNOP ... node has no more children ... node has no more children } ... node has no more children *** Fixed Up: 0: INITSTKFRM 0 *** Generating: 6: STOP
Background image of page 1

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

View Full DocumentRight Arrow Icon
... node has no more children <methodDecl> Reserved Word: static Reserved Word: int *** Fixed Up: 3: CALLSTATMETHOD 7 *** Generating: 7: INITSTKFRM ? IDENTIFIER: fib [method (start address = 7)] ( <parameterDeclList> <parameterDecl> Reserved Word: int IDENTIFIER: n [not in symbol table] ... node has no more children ... node has no more children ) <compoundStmt> { <statement> <ifStmt> Reserved Word: if ( <expr7> <expr6> <expr5> <expr4> <expr3> <expr2> <expr1> IDENTIFIER: n [local var (stackframe offset = -2)] *** Generating: 8: PUSHLOCADDR -2 *** Generating: 9: LOADFROMADDR ... node has no more children ... node has no more children ... node has no more children ... node has no more children == <expr4> <expr3> <expr2> <expr1> *** Generating: 10: PUSHNUM 0 UNSIGNED INTEGER LITERAL: 0 ... node has no more children ... node has no more children ... node has no more children ... node has no more children *** Generating: 11: EQ ... node has no more children ... node has no more children ... node has no more children ) *** Generating: 12: JUMPONFALSE ? <statement> Reserved Word: return <expr3> <expr2> <expr1> *** Generating: 13: PUSHNUM 0 UNSIGNED INTEGER LITERAL: 0
Background image of page 2
... node has no more children ... node has no more children ... node has no more children *** Generating: 14: RETURN 1 ; ... node has no more children Reserved Word: else *** Generating: 15: JUMP ? *** Fixed Up: 12: JUMPONFALSE 16 <statement> <ifStmt> Reserved Word: if ( <expr7> <expr6> <expr5> <expr4> <expr3> <expr2> <expr1> IDENTIFIER: n [local var (stackframe offset = -2)] *** Generating: 16: PUSHLOCADDR -2 *** Generating: 17: LOADFROMADDR ... node has no more children ... node has no more children ... node has no more children ... node has no more children
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 / 11

11 - Reserved Word: class IDENTIFIER: CS316ex11...

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