Explain in detail how a set of software statements in a high level language is converted to assembly and then machine code by GCC internals, and then describe how it works (wrt computer architecture) in detail.
Compiler Interview Questions
188 compiler interview questions shared by candidates
How to do code optimization in extended basic blocks?
Read code and tell whats the output. Follow up Q: calculate time complexity and make it better. given two functions that each one takes a certain num of cycles, how can we change the algorithm to be faster
asked to implement a machine language function with given imaginary machine orders.
another question was to draw a circle with parameter N (radius) inside a matrix.
They asked real questions and not silly trick questions or questions from an undergrad textbook.
A question about resource allocation and contexts. I think it's a graph coloring problem.
Asked about my specific LLVM compiler development experience.
1)Compilers Theory 2)Reading and understanding Assembly Language 3)Delete a node in double linked list 4)Quick Sort
Implement an interpreter in Haskell for a functional language, followed by translating some of the previous into their language.
Viewing 101 - 110 interview questions