Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#261 closed enhancement (duplicate)

Implement tailcalls in the C backend

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

Description

The C backend currently performs standard calls for the tailcallN# primops, instead of doing a real tail call.

For direct tail recursion we should overwrite the function parameters with the new arguments and jump back the start of the function.

Change History (3)

comment:1 Changed 7 years ago by benl

  • Type changed from defect to enhancement

comment:2 Changed 7 years ago by benl

  • Resolution set to duplicate
  • Status changed from new to closed

comment:3 Changed 5 years ago by benl

  • Milestone 0.4.0 deleted

Milestone 0.4.0 deleted

Note: See TracTickets for help on using tickets.