Compiler Engineer Interview Questions

152 compiler engineer interview questions shared by candidates

Primitive Assembley Question: ============================= Assume your assembley language includes ONLY the following instructions: - 'inc REG': increments a given register by one. - 'dec REG': decrements a given register by one. - 'jnz LABEL': jumps to a given LABEL if the previous instruction's result was not zero. - 'HALT': stops running. Task: A and B registers hold non-negative values. The program should calculate the value of |A-B| and locate the result in C. In addition the language holds registers C, D, ..., Z, which you can assume are initialized at program start to zero.
avatar

Junior Compiler Software Engineer

Interviewed at CEVA

3.5
Apr 12, 2021

Primitive Assembley Question: ============================= Assume your assembley language includes ONLY the following instructions: - 'inc REG': increments a given register by one. - 'dec REG': decrements a given register by one. - 'jnz LABEL': jumps to a given LABEL if the previous instruction's result was not zero. - 'HALT': stops running. Task: A and B registers hold non-negative values. The program should calculate the value of |A-B| and locate the result in C. In addition the language holds registers C, D, ..., Z, which you can assume are initialized at program start to zero.

Viewing 21 - 30 interview questions

Glassdoor has 152 interview questions and reports from Compiler engineer interviews. Prepare for your interview. Get hired. Love your job.