[M3devel] Static chains

Tony Hosking hosking at cs.purdue.edu
Mon Jan 14 16:47:28 CET 2008


Rodney,

I just realised that the static chains variables are *not* always  
being set up for nested function internal use.  i.e., callers will  
pass them, but nested functions that don't explicitly use them will  
not have a static chain.  Is this something essential for you?  Why  
would you need a static chain from within a nested function that  
doesn't use any outer scope variables?  Since it doesn't use any  
outer scope variables they cannot affect its execution, so debugging  
the value of those variables seems unnecessary.  This is the default  
behavior of gcc for static chains.

-- Tony




More information about the M3devel mailing list