Chapter 11 Flashcards Preview

NAND > Chapter 11 > Flashcards

Flashcards in Chapter 11 Deck (7)
Loading flashcards...
1
Q

What are the variable properties that have to be known inorder to compile variables?

A
2
Q

The compiler uses variable tables to save variable properties.

Complete the blanks:

A
3
Q
A
4
Q

Methods must alwasys return something in Jack.

When compiling a void method, what should be pushed on to the stack before the return statment.

A

At the end of the copiled code, do:

push constant zero

return

This is a dummy value.

5
Q

Compile this expression:

A
6
Q

Compile this expression:

A
7
Q
A