This is the mail archive of the gcc-patches@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] |
Other format: | [Raw text] |
The compiler already uses very efficient code to do 64-bit multiplication in ARM mode. In the THUMB mode, the same code cannot be generated because the required instructions are not available. So 64-bit multiplication in THUMB is done by calling libgcc, which implements 64-bit multiplication using 32-bit operations in C. The code is inherently not very efficient and never uses the ARM multiplication instruction because it is compiled for THUMB.
-- Mark Mitchell CodeSourcery mark@codesourcery.com (650) 331-3385 x713
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |