This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question about compiler-supplied assignment and copy with egcs.
- To: egcs at egcs dot cygnus dot com
- Subject: Question about compiler-supplied assignment and copy with egcs.
- From: Paul Derbyshire <pderbysh at usa dot net>
- Date: Wed, 24 Feb 1999 06:19:53 -0500
Q: If egcs is allowed to supply the assignment operator and copy
constructor for a "plain old data" type, will they be generally more
efficient than user supplied versions?
I would expect so since the compiler should output code to use the
hardware's fastest block memory moves and should optimize temporaries and
copyings away aggressively since the compiler knows there are no side effects.
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." -------------------------------------------------
-- B. Mandelbrot |http://surf.to/pgd.net
_____________________ ____|________ Paul Derbyshire pderbysh@usa.net
Programmer & Humanist|ICQ: 10423848|