Saving Registers during CallsTopAnouncementsGenerating Code for Methods

Generating Code for Methods

  1. It seems like it would be a good idea to review/summarize the suggestions for generating code for methods and method invocations.

  2. As mentioned above, to make all this work, you should restructure the trees for invocations of non-local methods so that they look like trees for qualified invocations. To do this you will add a subtree that describes an expression that evaluates to the object on which the method should be invoked.

  3. Finally, since all of this depends upon the idea that objects will contain pointers to method tables and also contain static links, we should talk about implementing the "new" operation for a moment.

Computer Science 434
Department of Computer Science
Williams College

Saving Registers during CallsTopAnouncementsGenerating Code for Methods