Path: utzoo!mnetor!uunet!husc6!mailrus!umix!umich!mibte!gamma!ulysses!mhuxo!mhuxu!mhuxi!mhuxh!mhuxt!att-ih!att-cb!clyde!rutgers!iuvax!bsu-cs!dhesi From: dhesi@bsu-cs.UUCP (Rahul Dhesi) Newsgroups: comp.lang.c Subject: Re: Pascal --> C question Message-ID: <2351@bsu-cs.UUCP> Date: 13 Mar 88 14:45:07 GMT References: <12340@brl-adm.ARPA> Reply-To: dhesi@bsu-cs.UUCP (Rahul Dhesi) Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 19 Summary: Highly optimizing compilers In article <12340@brl-adm.ARPA> TLIMONCE%DREW.BITNET@CUNYVM.CUNY.EDU writes: >Actually, the only version of Pascal that I will use is VaxPascal under >VMS (what's that?) because it has some [excellent] optimizations.... ... >Why can't popular C compilers do that? 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 */ -- Rahul Dhesi UUCP: !{iuvax,pur-ee,uunet}!bsu-cs!dhesi