home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,179 of 2,753   
   n.oje.bar@gmail.com to All   
   basic question about cps   
   12 Nov 12 11:05:49   
   
   Hi, I have a basic question about writing a compiler using conti   
   uation-passing style   
   as an intermediate language.   
      
   It seems to me that if one performs the cps transformation one is left   
   with many 'computed' calls (that is call to variables holding   
   procedure values, namely, the continuation). It seems that compiling   
   such 'computed' calls would be much slower than compiling 'direct'   
   calls to known procedures.   
      
   Question:   
      
   1. Is this assumption valid?   
   2. If it is, then it seems that cps is not very useful without some   
   non-trivial control flow analysis...??   
      
   Please excuse me if this question is very basic.   
      
   Thanks!   
   Nicolas   
   [Yes, it assumes a reasonbly good optimizer. -John]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca