
#8472: Primitive string literals prevent optimization -------------------------------------+------------------------------------- Reporter: akio | Owner: gridaphobe Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: newcomer Operating System: Linux | Architecture: x86_64 Type of failure: Runtime | (amd64) performance bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2554, Wiki Page: | Phab:D2605 -------------------------------------+------------------------------------- Comment (by simonpj):
this means a larger code size.
Why?? In both cases I'd ultimately expect to see a top-level machine-code label for a literal string, and a reference to that label in the compiled code. I see no reason for increased code size, or increased bytes- allocated. Can you explain? Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8472#comment:17 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler