[GHC] #1257: Bytecode generator can't handle unboxed tuples

GHC ghc-devs at haskell.org
Mon Aug 22 03:38:48 UTC 2016


#1257: Bytecode generator can't handle unboxed tuples
-------------------------------------+-------------------------------------
        Reporter:  igloo             |                Owner:
            Type:  bug               |               Status:  closed
        Priority:  high              |            Milestone:  7.4.1
       Component:  GHCi              |              Version:  6.6
      Resolution:  wontfix           |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:  dsrun014
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by dobenour):

 I can think of a few options

 - Auto-generate a bunch of return frames for different length tuples.
 Doesn't work because unboxed tuples can store unboxed data, so we get an
 exponential code size blowup.
 - Write a little interpreter (directly in Cmm) that looks at metadata in
 stack frame and does the appropriate operations.  This one should work.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/1257#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list