P
Phil Carmody
Tony said:GUI, threads, database, network... the std C portion looks relatively
miniscule.
I've written a GUI for handheld devices that had to be portable
across both 16-bit and 32-bit CPUs from unrelated architectures.
The way I achieved such 2-platform portability was to be as far
as I could tell 100% portable standard C.
Threads - that's trivial - as the threads don't even need to know
they're threads. The thing that _manages_ threads needs to be
non-portable, as it needs to dick around with things like stack
pointers etc. but that's minuscule compared to the sum total of
all the threads.
Database? Given that database code is some of the most long-running
code in the history of the universe, anyone who codes databases
non-portably should be taken outside and shot. Let's call that
almost entirely portable standard C too.
Network? Given that almost every important spec is defined in
terms of octets, and C guarantees the ability to manage octets,
again, it's trivial to program networking code portably. Unless
you meant PHY drivers, in which case you're utterly unable to
express what you mean, and are worth deriding simply for that
fact.
0/4.
I consider std C/C++ (moreso C++ than C) a platform-specific thing to be
"isolated" also, though. YMMV.
You gibber a lot, though.
Phil