Ticket #1011 (closed feature: done)

Opened 12 years ago

Last modified 12 years ago

Packfile PMCs cannot create a bytecode file from scratch

Reported by: Util Owned by:
Priority: normal Milestone:
Component: core Version: 1.6.0
Severity: medium Keywords: packfile pmc pbc hello
Cc: Language:
Patch status: Platform:

Description

PIR code needs to be able to use Packfile PMCs to create runnable bytecode files from scratch, without being based on any existing .pbc file on disk. This capability will allow several Parrot tools to be refactored to remove their duplicated knowledge of packfile internals.

Change History

Changed 12 years ago by Util

According to Bacek in TT#504 (comment 17), it is not Packfile PMC that needs enhancing to solve this:

    ...it's not Packfile's fault.
    We need a way to construct Sub in PIR.
    Almost all preparations of it are done.
    We just need to implement Sub.init_pmc
    which will accept Hash with field values
    and construct Sub without attaching to
    current Interp.

Changed 12 years ago by bacek

Sub.init_pmc was implemented in r41313 - r41316. I'm not closing this ticket because I lost my example how to create PBC from PIR...

-- Bacek

Changed 12 years ago by bacek

  • status changed from new to closed
  • resolution set to done

Example added in r41354. Closing ticket unless someone can provide counter-example :)

Note: See TracTickets for help on using tickets.