This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: aliasing nastiness


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]