Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6) Write the code to implement the expression A-B-C*D' on two ISA Basic classes: Stack and Memory to Memory (3 address). The instruction sets are:

image text in transcribed
6) Write the code to implement the expression A-B-C*D' on two ISA Basic classes: Stack and Memory to Memory (3 address). The instruction sets are: 1) Stack- push, pop, add, sub, mul, div, etc; 2) Memory to Memory (3 address) add, sub, mul, div, etc. Assuming that addresses (of operand) are 16 bits, data values are 32 bits, and opcodes are 8 bits, compute the size of your program (code), in bytes, and the amount of (data) memory traffic the program would generate, in bytes, when it executes. For multiplication, it is assumed that 'n-byte n-byte' produces 'n- byte'. When you compute the amount of memory traffic generated by the program, compute separately the amount of traffic due to instruction fetch and execution. Memory Traffic (bytes) 3-address Memory Traffic Stack (bytes) 7+8 +4 mul A, C, D sub A B, A 78+4

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_2

Step: 3

blur-text-image_3

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

Evaluate lim(x-->infinity) ax^2/c-bx^2.

Answered: 1 week ago

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago