Welcome, Guest. Please login or register.

Author Topic: Any tutorials/articles on OS-ports ?  (Read 3006 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Cymric

  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 1031
    • Show all replies
Re: Any tutorials/articles on OS-ports ?
« on: December 28, 2004, 03:53:55 PM »
This is almost impossible to answer without the assembly source at hand. These things being notoriously big, can you post a link to them so us helpful blokes can take a peek? :-)
Some people say that cats are sneaky, evil and cruel. True, and they have many other fine qualities as well.
 

Offline Cymric

  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 1031
    • Show all replies
Re: Any tutorials/articles on OS-ports ?
« Reply #1 on: December 30, 2004, 04:50:42 PM »
Quote
FluffyMcDeath wrote:
Why not keep all this stuff in C and do all the fancy pants number crunching and whatever really needs optimizing in assembly?

Even number crunching is not really recommended in assembly these days, provided your compiler is decent enough. The effort you must put in in order to get a meaningful increase in speed is so big that the somewhat less efficient C-code will still give you the answer quickest. Assembly is good for one thing: when memory is exceedingly tight, when you are talking directly to the hardware (device drivers, OS booting, some arcane topics in OS design), or when no compiler is available.
Some people say that cats are sneaky, evil and cruel. True, and they have many other fine qualities as well.