Why some code is in assembly

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • virupax
    New Member
    • May 2008
    • 3

    Why some code is in assembly

    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.
  • micmast
    New Member
    • Mar 2008
    • 144

    #2
    Originally posted by virupax
    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.
    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 google

    Comment

    Working...