CompuServe Messages

C Compilers: which one?

    22-Jul-89 14:59:46
Fm: John Draper 76703,4322
To: Black Belt Systems 76004,1771
Ben, Inline assembly is good for more than 'hacks'. It isthere for those times when you _must_ fit the system, rather than accepting the generalized solutions offered by C. I have seen inline asm in code written by people who avoid asm like the plague, simply because C would not do the job. As well, I have seen these same people asking if there was a way to do it, with a lot of high-powered people eventually saying that they couldn't see a way around the problem. If you have never had to use it, that'sfine. If you try to avoid it, that's fine too. I'm happy for you. You should not, however, put down those who because of what they are doing, find it unavoidable. Readability of my code should be no concern of yours. Portability of my code is my choice. In both cases, the finished program gives no indication of either criteria. What difference does it make to anyone but the author? As for 16 vs 32 bit ints, well, both compilers handle both. Lattice chose to default to the big, slow model, with horrendous gyrations needed to generate small code. Manx chose the other way around. Subjective opinions as to which is prefereable are welcome. Absolute edicts are not. -larry