Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Language L generates code for Machine M. Compiler is in L. Obtain a compiler of

ID: 3636014 • Letter: L

Question

Language L generates code for Machine M. Compiler is in L. Obtain a compiler of L that generates code for M and runs on M. Pick
which one you need and write explain through words or picture.
a. Interpreter of M on machine N
b. Compiler of C on M
c. Compiler L on machine N

2. What is the dynamic link and what is it used for?

3. define a function in Lisp that takes something like '(a (b c) (d e) (b d) a (f))
and prints the list without duplicates. In other words, the answer should be '(a (b c) (d e) (f)).

4. numOfItems [[1,2][3][4,5,6]]
numOfItems :: [[a]] -> Int
Make it to where this function counts the number of atoms. The answer should come out to be 6.

5. r_is_a_function :- + r_is_not_a_function
r_is_not_a_function :- r(X,Y), r(X,Z), Y = Z
Make this into a one-to-one function

Explanation / Answer

Hi I have done the solution for this in my notebook. But the solution is too big , I cannot type it here because very less time is remaining.. So please rate me Lifesaver and I'll share the answer with you through email or cramster inbox. I don't do this generally, but I have no other option here because there's very less time left... you need not worry as I have the solution ready