Path: utzoo!attcan!uunet!husc6!think!ames!nrl-cmf!cmcl2!brl-adm!adm!rbj@nav.icst.nbs.gov From: rbj@nav.icst.nbs.gov (Root Boy Jim) Newsgroups: comp.unix.wizards Subject: /dev/stdin Message-ID: <16471@brl-adm.ARPA> Date: 12 Jul 88 22:43:21 GMT Sender: news@brl-adm.ARPA Lines: 34 From: "Brandon S. Allbery"Date: 5 Jul 88 17:47:29 GMT Followup-To: comp.unix.wizards As quoted from <16305@brl-adm.ARPA> by rbj@cmr.icst.nbs.gov (Root Boy Jim): +--------------- | Another (mis?)use is to compile programs from stdin. First, we do | `ln -s /dev/stdin x.c', then `cc -c x.c'. I'm sure one can find really +--------------- Would this work? I was under the impression that the C compiler made multiple passes over the source -- not useful if you build a pipe with Multiple passes? rm /bin/cc /lib/cpp x.c | /lib/ccom | /lib/c2 | /bin/as -o x.o Multiple passes, yes, but not over the original source. ln -s /dev/stdin x.c; (CProgramGenerator | cc -c x.c); rm x.c ++Brandon -- Brandon S. Allbery, uunet!marque!ncoast!allbery DELPHI: ALLBERY For comp.sources.misc send mail to ncoast!sources-misc (Root Boy) Jim Cottrell National Bureau of Standards Flamer's Hotline: (301) 975-5688 The opinions expressed are solely my own and do not reflect NBS policy or agreement My name is in /usr/dict/words. Is yours?