Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

suppose that you have a simple one pass macro pro reyuired in pass macro processor built uoo rcses the general scheme described in Section 4.1.

suppose that you have a simple one pass macro pro
image text in transcribed
reyuired in pass macro processor built uoo rcses the general scheme described in Section 4.1. a have a two-pass macroassembler- hat is, a one- into Pass 1 of a two-pass assembler. The s Suppose that we macro processor nse that we want t the programmer to be able to invoke include the macro definitions in the For example, a programmer might simply write otnt in his or her program-the macro processor retrieve the definition of RDBUFF from a ry. Briefly describe how this feature could be programmer having to Su macros withou source a Suppose that am. his a RDBUFF statement macro standard implemented efficien tly that macros are not allowed to have the same name as instructions. For example, if the programmer tries to de- named CLEAR, the macroassembler should give an ecause CLEAR is a SIC/XE machine instruction). CLEA fine a macro Describ e how this restriction could be implemented. e that we do want to allow macros to have the same machine instructions. For example, if the programmer d CLEAR, then any CLEAR statements in ssembled should be expanded as macro invo- If the programmer does not define a macro named CLEAR, then any CLEAR statements should be assembled as ma- c Now suppose name as defines a macro name the program being a cations. chine instructions. Describe how this could be implemented. d. Suppose, as in part (c), that macros are allowed to have the sam name as machine instructions. Suppose that we want to have th definitions of such macros retrieved automatically from a macr library, as in part (a). What problems arise? How might yo solve these problems? on 4.2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions