#: 16749 S12/OS9/68000 (OSK)
23-Oct-92 22:16:15
Sb: #16642-Ultra-C
Fm: Graham Ullrich/C.B.,CO 76506,2037
To: William F. McGill/CA 73177,3433
Bill,
The nice feature of ANSI-compliant compilers is function parameter type
checking at compile time. That is, the compiler detects errors where you call
a function with a particular argument type, but the function is defined with a
different argument type. For example:
int foobar( int param );
main() {
unsigned int wrong_type;
foobar( wrong_type ); /* this would be caught by the compiler */ }
Although you may have no difficulty remembering parameter types, new
programmers may inadvertently use the wrong type, or you may change function
names, etc. I've found this alone helps me immensely. Just another thing I
don't have to worry about.
Microware is claiming about 50% to 70% executable execution speed increase for
Ultra C. Lots of function names have changed, which can be handled by macro
#defines.
Graham
|