[perl #51634] [BUG] docs/parrotbyte.pod && docs/pdds/pdd13_bytecode.pod are either incorrect/unclear

James Keenan via RT parrotbug-followup at parrotcode.org
Fri Feb 6 02:09:54 UTC 2009


This appears to still be an issue.  Here is the relevant section from
docs/pdds/pdd13_bytecode.pod:

483 =head3 Fixup Segment
 484 
 485 The fixup segment maps names of subs to offsets in the bytecode
stream. It
 486 adds one extra field to its header.
 487 
 488 {{ TODO: I think label fixups are no longer used. Check if that is
so. }}
 489 
 490  
+--------+--------+--------------------------------------------------------+
 491   | Offset | Length | Description                                 
          |
 492  
+--------+--------+--------------------------------------------------------+
 493   | 1      | 1      | Number of fixup table entries that follow.  
          |
 494   |        |        |    n                                        
          |
 495  
+--------+--------+--------------------------------------------------------+
 496 
 497 This is followed by n fixup table entries, of variable length, that
take the
 498 following form.
 499 
 500  
+--------+--------+--------------------------------------------------------+
 501   | Offset | Length | Description                                 
          |
 502  
+--------+--------+--------------------------------------------------------+
 503   | 0      | 1      | Type of the fixup. Must be:                 
          |
 504   |        |        |    0x01 - Subroutine fixup                  
          |
 505  
+--------+--------+--------------------------------------------------------+
 506   | 1      | 1      | The label that is being fixed up. A string
constant,   |
 507   |        |        | stored as an index into the constants table.
          |
 508  
+--------+--------+--------------------------------------------------------+
 509   | 2      | 1      | For subroutine fixups, this is an index into
the       |
 510   |        |        | constants table for the sub PMC corresponding
to the   |
 511   |        |        | label.                                      
          |
 512  
+--------+--------+--------------------------------------------------------+



More information about the parrot-dev mailing list