swap(x,y)
Dan Christensen
jdchrist at watcgl.waterloo.edu
Mon Aug 28 13:38:27 AEST 1989
In article <184 at titania.warwick.ac.uk> cudcv at 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 at watcgl.uwaterloo.ca
University of Waterloo, Waterloo, Ont. jdchrist at watcgl.waterloo.edu
More information about the Comp.lang.c
mailing list