Here's a good article on how HP's C compilers do it.
There are gotchas in here, and definitely compiler dependencies. Unless there's a damn good reason, I'd also say, there should never be any unsigned int, short, or byte variables in the code, and there shouldn't be any signed/unsigned conversions.
There are gotchas in here, and definitely compiler dependencies. Unless there's a damn good reason, I'd also say, there should never be any unsigned int, short, or byte variables in the code, and there shouldn't be any signed/unsigned conversions.
Comment