Pettenò: Debunking x32 myths
Posted Jun 28, 2012 0:42 UTC (Thu) by
mansr (guest, #85328)
In reply to:
Pettenò: Debunking x32 myths by nix
Parent article:
Pettenò: Debunking x32 myths
Thanks for the clarification on the flags.
While you are right that -mfpmath=sse still uses the x87 parameter passing, it is my experience that (well-written) software making heavy use of floating-point spends most its time
inside functions rather than in calls between them. Moreover, such software mostly passes around pointers to large arrays of data, not individual floating-point values.
Concerning libm, many compilers (gcc included) inline many of its functions, often using only one or a few instructions. For example, on x86 a call to
sqrt() is turned into a single
sqrtsd instruction.
(
Log in to post comments)