Announcement

Collapse
No announcement yet.

PB binary implementation of functions/subs ???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PB binary implementation of functions/subs ???

    Hi all --

    Anybody knows where to find a precise documentation of the way PB implements
    functions/subs? I am especially interested in the way static variables are
    implemeted. According to my own investigations the binary code of functions/subs
    shows the following pattens (this is just to show you what kind of information
    i am looking for):
    Code:
    ---------------------------
    char           Asc-code 
    ---------------------------
    ---> start:
    U              85 
    ‹              139 
    ì              236 
    S              83 
    V              86 
    W              87 
    ƒ              131 
    ì              236 
    \              92 
      
    ---> sub:
    j              106 
    NULL           0 
    j              106 
    NULL           0 
    j              106 
    NULL           0 
      
    ---> function:
    1              49 
    ö              246 
    V              86 
    V              86 
    V              86 
    V              86 
    ‹              139 
    E              69 
    ˆ              136 
      
    ---> end:
                  141 
    e              101 
    ô              244 
    _              95 
    ^              94 
    [              91 
    ]              93 
    Ã/Â            195/194 (no arguments/arguments)
    Regards
    Peter

    ------------------
    [email protected]
    www.dreammodel.dk

  • #2
    None of this type of information is officially/publically documented... why would you need this kind of information?

    FYI, static variables (like globals) are stored in the DATA segment, whereas most local class variables are stored in the stack frame of the Sub/Function.

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment

    Working...
    X