
#9314: Each object file in a static archive file (.a) is loaded into its own mmap()ed page -------------------------------------+------------------------------------- Reporter: kazu- | Owner: yamamoto | Status: new Type: bug | Milestone: 7.10.1 Priority: high | Version: 7.8.3 Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: Other | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * component: GHC API => Compiler Comment: The comment in `rts/Linker.c` that rwbarton referred to in comment:10: {{{ /* We can't mmap from the archive directly, as object files need to be 8-byte aligned but files in .ar archives are 2-byte aligned. When possible we use mmap to get some anonymous memory, as on 64-bit platforms if we use malloc then we can be given memory above 2^32. In the mmap case we're probably wasting lots of space; we could do better. */ }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9314#comment:14 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler