The Gateway to Computer Science Excellence
0 votes
1 view

Extend the handling of field names in Fig. $6.18$ to classes and single-inheritance class hierarchies.

  1.  Give an implementation of class $Enu$ that allows linked symbol tables, so that a subclass can either redefine a field name or refer directly to a field name in a superclass.
  2. Give a translation scheme that allocates a contiguous data area for the fields in a class, including inherited fields. Inherited fields must maintain the relative addresses they were assigned in the layout for the superclass. 

 

in Compiler Design by Veteran (54.8k points) | 1 view

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,647 questions
56,492 answers
195,439 comments
100,696 users