Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline FluffyMcDeath

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 3440
    • Show all replies
Re: Any tutorials/articles on OS-ports ?
« on: December 29, 2004, 10:35:40 PM »
Um. Excuse me being way OT here but,

is this sort of thing really worth writing in assembly or is this for personal edification. Making a bunch of OS calls can be done more easily (less typing) in C and will be easier to port to PPC that way. Why not keep all this stuff in C and do all the fancy pants number crunching and whatever really needs optimizing in assembley?

Anyway, just to drag myself back to near the topic ...

have you been here?
Might have something useful.
 

Offline FluffyMcDeath

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 3440
    • Show all replies
Re: Any tutorials/articles on OS-ports ?
« Reply #1 on: December 30, 2004, 07:42:51 PM »
Quote

Cymric wrote:
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.


Depends. Though I usually write the thing in C and then take a look at the optimised assembly for ideas. Some clever solutions those optimzers come up with occassionaly. Sometimes though, the compiler doesn't understand what you're really trying to do. Rewriting the C can help but from time to time you just have to get in there and clean it up by hand. For almost anything you do on a fast machine though, it makes so little difference it's a waste of human resources.