K
Keith R. Williams
@twister01.bloor.is.net.cable.rogers.com>, news.tally.bbbl67
@spamgourmet.com says...
Again, if you're writing to the metal, who cares about "multi-
platform"? The metal will be different on the other platform, so
it doesn't really make sense to discus it. One can write "to the
metal" in either C or ASM, and it won't be multi-platform.
@spamgourmet.com says...
Although it may not be necessary to use full-fledged assembly, even the C
code is a bit more architecture-specific when doing low-level stuff like
device drivers. Like you don't really have to take into account stuff like
endian orders when writing application code, but you often do when writing
low-level. Or you may have to adjust the size of an element in a structure
when converting from 32-bit to 64-bit. So yes, you can bit-bang with C, but
the C that comes out is not really the most portable.
Again, if you're writing to the metal, who cares about "multi-
platform"? The metal will be different on the other platform, so
it doesn't really make sense to discus it. One can write "to the
metal" in either C or ASM, and it won't be multi-platform.