Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9ea32f7e8d0c0dac1265962f76a661cd68bb970c
Ticket: 2981677fffffffffffffffffffffffffffffffff
Shrink TEBC Activation Record
User & Date: ferrieux on 2010-04-04 22:30:00
Changes

  1. icomment:
    To get a more "runtime" view, I tend to extract the address of locals in a caller and a callee of the function of interest. In the TEBC case,  a breakpoint in some library func like [socket] yields a stack with
    
     TclNRRunCallbacks
     TclExecuteByteCode
     NRCallTEBC
    
    and extracting "&iPtr" under gdb in both TclNRRunCallbacks and NRCallTEBC
    yields:
    
    (gdb) frame 2
    (gdb) print &iPtr
    $1 = (Interp **) 0xbffff194
    (gdb) frame 4
    (gdb) print &iPtr
    $2 = (Interp **) 0xbffff65c
    
    so here the offset is 0x4C8.
    
    Of course this may also include some contribution from the caller's and callee's activations records, but in this specific case they should be small (neither big local arrays nor alloca).
    
    
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"