Opened 7 years ago

Closed 3 years ago

#267 closed defect (wontfix)

Tailcalls don't work with the C backend.

Reported by: benl Owned by:
Priority: normal Milestone: 0.5.0
Component: Core to Sea Translation Version: 0.2.1
Keywords: Cc:

Description (last modified by benl)

For the LLVM backend we use LLVM's support for tail calls, but compiling via C doesn't produce them.

In the alpha compiler we emit a label at the start of every function and jump back to the start when doing a tail-recursive call.

Change History (3)

comment:1 Changed 6 years ago by benl

  • Description modified (diff)
  • Milestone changed from 0.4.0 to 0.5.0

comment:2 Changed 6 years ago by benl

  • Component changed from Unknown to Core to Sea Translation

comment:3 Changed 3 years ago by benl

  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.