Path: utzoo!attcan!uunet!husc6!uwvax!oddjob!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.wizards Subject: Re: /dev/stdin Message-ID: <12327@mimsy.UUCP> Date: 6 Jul 88 07:21:25 GMT References: <16305@brl-adm.ARPA> <8220@ncoast.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 14 >In article <16305@brl-adm.ARPA> rbj@cmr.icst.nbs.gov (Root Boy Jim) suggests: >>Another (mis?)use is to compile programs from stdin. First, we do >>`ln -s /dev/stdin x.c', then `cc -c x.c'. ... In article <8220@ncoast.UUCP> allbery@ncoast.UUCP (Brandon S. Allbery) writes: >Would this work? I was under the impression that the C compiler made >multiple passes over the source .... Some do; but the first will be /lib/cpp, with output sent to a temp file, in this case. I suppose someone might run the preprocessor twice. . . . -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris