High-level programming languages can be thought of as abstract machines for machine language instruction sets. Given the
Question:
High-level programming languages can be thought of as abstract machines for machine language instruction sets. Given the C assignment statement
a = b + c;
do the following:
a. Describe an implementation of the abstract machine by using a pseudo assembly language as the machine language generated by a compiler if the statement is preceded by a declaration of the form
int a, b, c;
b. Describe an implementation of the abstract machine if the statement is preceded by a declaration of the form
float a, b, c;
Show how the machine language for this code segment differs from the code in part a.
c. Describe an implementation of the abstract machine if the statement is preceded by a declaration of the form
int a;
float b, c;
Show how the assembly language for this code segment differs from the code in parts a and b.
Step by Step Answer: