Definition of boolean type

Guy Harris guy at auspex.UUCP
Thu Mar 2 04:51:38 AEST 1989


 >With the compiler I am currently using, I use "if (x == FALSE)" or
 >"if (x != FALSE).  This doesn't have an ambiguity because of multiple
 >true values.  The compiler I am using generates LESS code this way. 
 >("if (x)" causes it to go to the work of converting it to a 1 or 0
 >with some less than efficient code.  That is ignoring the fact the
 >whole process it unneeded.)

Yup, it sure is unneeded.  Why is the compiler in question so dumb?

 >PROM space is tight, so this becomes important.

Are there any smart compilers for the chip in question?  If so, you
might want to pick them up, given that PROM space *is* so tight....



More information about the Comp.lang.c mailing list