This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: aliasing nastiness
- To: briareos at lokigames dot com
- Subject: Re: aliasing nastiness
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sat, 15 Jan 2000 00:40:50 +0100
- CC: gcc-bugs at gcc dot gnu dot org
- References: <387F78A7.E3B0BFFB@lokigames.com> <200001142145.WAA19564@loewis.home.cs.tu-berlin.de> <20000114152501.K8836@namaste.lokigames-lan.com>
> This is sortof true. VC generates a series of mov instructions to
> literally move bytes into the value, while gcc appears to use the
> floating point instructions to load/store the value.
[...]
> The different instruction generation is puzzling, though.
Both approaches are correct, AFAICT (i.e. without seeing the actual
assembly code). gcc generally uses the FPU to access floating point
values, even for assignments. Whether this is more or less efficient
than the mov insns highly depends on the processor you have, I
believe.
Regards,
Martin