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 799 of 2,753   
   Jeff Kenton to szigetir@gmail.com   
   Re: Making my first compiler   
   25 Sep 06 01:14:38   
   
   From: jeffrey.kenton@comcast.net   
      
   szigetir@gmail.com wrote:   
   > I'm trying to create a pascal subset interpreter/compiler.   
   >   
   > Do I HAVE to create a syntax tree? Or can I go straight to creating   
   > Intermediate Code (Quadruples) in Yacc's reduce actions?   
      
   You can definitely generate intermediate code directly.  I've seen   
   compilers that do it, but it's not something that I recommend.  You may   
   think it will speed up your compilation or save you work, but it's not   
   measurably faster and it especially complicates optimizations and the   
   linking together of conditional branching code.   
      
   Separate your compiler into sensible parts.   
      
   jeff   
      
   --- 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