Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Run issues related to the Tiny Language Compiler . Q 1 According to the last two digits of today's date ( 2 0 2 4

Run issues related to the Tiny Language Compiler.
Q1 According to the last two digits of today's date (20240607), write a simple program using the following statements and report the log generated by tlc.
- Date modulo 3 is 1- while statement
- Date modulo 3 is 2- for statement
- Date modulo 3 is 0- if-else statement
-discuss the results considering the number of lines in the log.
Q2 Do the following things about do-while-statement
Syntax
-do statement while ( expression ) ;
Example program of do-while:
do {
a = a+1;
} while (a <10);
Explain the differences from while-statement in terms of their syntax and behavior.
Show the assumed assembly code translated from the do-while-loop above by referring to the assembly code translated from a while-loop program by tlc.
while (a<10){
a = a+1;
Modify tlc to process do-while-statement.
Q3 Extend tlc
Examples
- Accept array variables
-Accept pointer variables
-Accept division
This extension MUST consider the specification of register usage
in x86-64 instruction set.
Implement something optimization technique

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

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

What resources will these tactics require?

Answered: 1 week ago

Question

What level of impact will this tactic make on the key public?

Answered: 1 week ago

Question

Have you used powerful language in your message?

Answered: 1 week ago