How many assembly instructions does each of your high level code take?

Embedded C interview question

How many assembly instructions does each of your high level code take?

Answer

Any programming language, which provides some level of abstraction above assembly language. These normally use statements consisting of English-like keywords such as "FOR", "PRINT" or "GOTO", where each statement corresponds to several machine language instructions. It is much easier to program in a high-level language than in assembly language though the efficiency of execution depends on how good the compiler or interpreter is at optimizing the program. It is not possible to tell in the number of assembly instruction for a high level code. Depending on the optimization switches the number of Assembly instruction will vary.

No comments:

Post a comment