gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Why do we default to -mhard-float?

#80045 - acox - Tue Apr 18, 2006 7:35 am

Like it says in the title.

Is there any reason not to compile the libs with -msoft-float?
_________________
3D on GBA

#80047 - wintermute - Tue Apr 18, 2006 8:06 am

acox wrote:
Like it says in the title.

Is there any reason not to compile the libs with -msoft-float?


We don't default to -mhard-float, we actually default to soft float libraries but the resulting object files are marked as hard float for various historical reasons.

This is actually a long standing problem with the marking of arm elfs and one that's difficult to address without breaking compatibility with various libraries.

devkitARM is in use by some official developers in conjunction with the official libraries which are marked this way. Defaulting devkitARM to mark objects as soft-float would remove the ability to work with all of the licensed libraries which are available for GBA or require them to provide another set built with devkitARM.

Since the official toolchain and all other toolchains provided for the GBA ( HAM, devkit advance etc) use hard float marked object files it would be counter productive to make devkitARM behave differently.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog