2 ms·
> As for GNU/Linux, can you assure memset works that way in all hardware platforms supported by Linux? I don't know, that's why I'm asking. I'm not going to t
by lmm 10y ago
> As for GNU/Linux, can you assure memset works that way in all hardware platforms supported by Linux?
I don't know, that's why I'm asking.
I'm not going to try to write code portable to all theoretically possible unices - I doubt anyone has managed that for nontrivial programs, and it's too hard to tell. Hell, I'm content to exclude a fair few systems I know exist (CHAR_BIT != 8, non-IEEE FP). If it's supported on all the platforms I've heard of I'll do it - it's just not practical to hope to be POSIX-complient in a language-lawyer sense.
- pjmlp 10y ago> I doubt anyone has managed that for nontrivial programs, and it's too hard to tell. In the early 2000's, the company I worked for was deploying UNIX based software for GNU/Linux, FreeBSD, HP-UX, Aix, Solaris and Windows (yes Windows, not a typo).
- lmm 10y agoSure, writing a program that works on 6 actually existing unices with test instances (or even just documentation) is relatively easy. Writing one for all possible unices including some that don't exist at the time of writing is a lot harder.
- pjmlp 10y agoThose 6 were already enough to learn how "portable" POSIX actually is.