dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: file read/write code
From: Linus Nielsen Feltzing (
Date: 2002-11-08

Greg Haerr wrote:
>>Thanks for the heads-up. Although I prefer to use unsigned int rather
>> than long.
> Yes, it looks better, but it's not portable, especially for the FAT32
> implementation.
> I hate rewriting code, so I try to specify it for the long term.

That all depends on what platform you want to port to. You can't write
code that is entirely portable among different CPU families. At least
not while keeping the code readable and simple.

If you do try to write it portable, you may have even more problems if
it doesn't work, since you thought it was portable. Better write for the
platform you have now, and deal with portability when you really want to
port it. Maybe you will never port the code, then your efforts would be
for nothing.


Page was last modified "Jan 10 2012" The Rockbox Crew