Why don\t we rewrite it all in assembly language for processor Mega666?
• (ADB) Basically because we wouldn”t gain much in terms of efficiency, but would lose a lot in terms of ease of maintenance and readability of the source code. Gcc is actually quite efficient, when we look at the assembler code generated. You are referred to Andrew Tanenbaum”s book “Structured Computer Organization”, 3rd ed., pages 401-404, for a more detailed comparison of the use of high level languages vs. assembly language in the implementation of OS”s. There are a number of references on the subject at the end of the book, too.