Context Navigation

Ticket #1011
(closed feature: done)

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

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.