Path: utzoo!utgpu!watmath!watcgl!jdchrist From: jdchrist@watcgl.waterloo.edu (Dan Christensen) Newsgroups: comp.lang.c Subject: Re: swap(x,y) Message-ID: <11274@watcgl.waterloo.edu> Date: 28 Aug 89 03:38:27 GMT References: <8350@boring.cwi.nl> <8514@galbp.LBP.HARRIS.COM> <3040@solo5.cs.vu.nl> <32074@ism780c.isc.com> <184@titania.warwick.ac.uk> Reply-To: jdchrist@watcgl.waterloo.edu (Dan Christensen) Organization: Computer Graphics Lab, University of Waterloo Lines: 19 In article <184@titania.warwick.ac.uk> cudcv@warwick.ac.uk (Rob McMahon) writes: >On our Gould PN6000 with GCC 1.34 > > { > int tmp; > tmp = x; > x = y; > y = tmp; > } > >compiles to > > xchg r5,r4 Just out of curiousity, is space allocated for tmp? ---- Dan Christensen, Computer Graphics Lab, jdchrist@watcgl.uwaterloo.ca University of Waterloo, Waterloo, Ont. jdchrist@watcgl.waterloo.edu