NCG: AArch64 - Add -fhuge-code-sections.
When enabled the arm backend will assume jumps to targets outside of the current module are further than 128MB away. This will allow for code to work if: * The current module results in less than 128MB of code. * The whole program is loaded within a 4GB memory region. We enable this by default on mac where the lack of split sections can sometimes cause us to go over this limit - see #24648. This works around #24648 for now.
Showing
- compiler/GHC/CmmToAsm/AArch64/CodeGen.hs 11 additions, 3 deletionscompiler/GHC/CmmToAsm/AArch64/CodeGen.hs
- compiler/GHC/CmmToAsm/Config.hs 1 addition, 0 deletionscompiler/GHC/CmmToAsm/Config.hs
- compiler/GHC/Driver/Config/CmmToAsm.hs 1 addition, 0 deletionscompiler/GHC/Driver/Config/CmmToAsm.hs
- compiler/GHC/Driver/DynFlags.hs 10 additions, 0 deletionscompiler/GHC/Driver/DynFlags.hs
- compiler/GHC/Driver/Flags.hs 2 additions, 0 deletionscompiler/GHC/Driver/Flags.hs
- compiler/GHC/Driver/Session.hs 1 addition, 0 deletionscompiler/GHC/Driver/Session.hs
- docs/users_guide/using-optimisation.rst 18 additions, 0 deletionsdocs/users_guide/using-optimisation.rst
Loading
Please register or sign in to comment