summaryrefslogtreecommitdiff
path: root/docs/users_guide/phases.rst
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2018-11-26 17:21:12 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-03-05 22:22:40 -0500
commit37f257afcd6a52cf4d76c60d766b1aeb520b9f05 (patch)
treeac800e46fbf94c16ce39170f4a720637b07dde06 /docs/users_guide/phases.rst
parent646b6dfbe125aa756a935e840979ba11b4a882c0 (diff)
downloadhaskell-37f257afcd6a52cf4d76c60d766b1aeb520b9f05.tar.gz
Rip out object splitting
The splitter is an evil Perl script that processes assembler code. Its job can be done better by the linker's --gc-sections flag. GHC passes this flag to the linker whenever -split-sections is passed on the command line. This is based on @DemiMarie's D2768. Fixes Trac #11315 Fixes Trac #9832 Fixes Trac #8964 Fixes Trac #8685 Fixes Trac #8629
Diffstat (limited to 'docs/users_guide/phases.rst')
-rw-r--r--docs/users_guide/phases.rst19
1 files changed, 1 insertions, 18 deletions
diff --git a/docs/users_guide/phases.rst b/docs/users_guide/phases.rst
index f5f735b81b..0f70368047 100644
--- a/docs/users_guide/phases.rst
+++ b/docs/users_guide/phases.rst
@@ -732,21 +732,6 @@ for example).
option for Apple's Linker (``-F`` already means something else for
GHC).
-.. ghc-flag:: -split-objs
- :shortdesc: Split objects (for libraries)
- :type: dynamic
- :category: linking
-
- Tell the linker to split the single object file that would normally
- be generated into multiple object files, one per top-level Haskell
- function or type in the module. This only makes sense for libraries,
- where it means that executables linked against the library are
- smaller as they only link against the object files that they need.
- However, assembling all the sections separately is expensive, so
- this is slower than compiling normally. Additionally, the size of
- the library itself (the ``.a`` file) can be a factor of 2 to 2.5
- larger.
-
.. ghc-flag:: -split-sections
:shortdesc: Split sections for link-time dead-code stripping
:type: dynamic
@@ -758,9 +743,7 @@ for example).
output file.
When linking, the linker can automatically remove all unreferenced sections
- and thus produce smaller executables. The effect is similar to
- :ghc-flag:`-split-objs`, but somewhat more efficient - the generated library
- files are about 30% smaller than with :ghc-flag:`-split-objs`.
+ and thus produce smaller executables.
.. ghc-flag:: -static
:shortdesc: Use static Haskell libraries