Modula2's godawful IO.
mcdonald at uxe.cso.uiuc.edu
mcdonald at uxe.cso.uiuc.edu
Mon Apr 25 23:27:00 AEST 1988
>In fact, if your C implementation has a limited address space and a bulky
>floating-point library and does NOT do this, complain to the implementors.
>It's not a novel or strange idea. The very first C implementation, on the
>pdp11, used this trick. If Microslop can't be bothered, don't buy their
>compiler.
--
The following program
#include <stdio.h>
main()
{
int i = 5;
printf("%d is an int\n",i);
}
compiles and links under Microsoft C 5.00 to a .exe file 7089 bytes long.
Changing "int" to "double" and %d to %lf results in a file 21242 bytes long.
The Microsoft C compiler is quite good, better than most Unix ones, I would
guess. It has myriads of options that allow you do get just what you want.
Doug McDonald
More information about the Comp.lang.c
mailing list