Why some code files in u-boot, kernel will be in assembly , cannot we have the same thing in c. as the compiler will finally convert it to assembly.
Why some code is in assembly
Collapse
X
-
I believe they did that so the code is as performent as possible. Even tho C will convert its code to assembly it is actually better to write that part in assembly. if you want more info you can find some interesting links on os development on googleOriginally posted by virupaxWhy some code files in u-boot, kernel will be in assembly , cannot we have the same thing in c. as the compiler will finally convert it to assembly.
Comment