Pascal --> C question
Doug Gwyn
gwyn at brl-smoke.ARPA
Sat Mar 19 11:09:55 AEST 1988
In article <2351 at bsu-cs.UUCP> dhesi at bsu-cs.UUCP (Rahul Dhesi) writes:
-Another interesting optimization done by a VMS compiler, that competing
-vendors never thought of doing, is this. If your C program contains
- fflush(stdout);
-the VMS C compiler will optimize this into:
- if (F$MODE == INTERACTIVE) /* if interactive run */
- fflush(stdout);
- else
- printf("\n"); /* if batch run */
Is this true? It's no wonder competing vendors didn't think of
doing it, because it's wrong.
More information about the Comp.lang.c
mailing list