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,351 of 2,753   
   =?UTF-8?B?Q8Opc2Fy?= to anton@mips.complang.tuwien.ac.at   
   Re: IR Representation   
   11 Sep 15 17:01:52   
   
   From: divcesar@gmail.com   
      
   Thank you Anton [and John]. With the addition of an artificial node   
   everything made sense now.   
      
   Now I am wondering, how do you usually represent conditional nodes and   
   looping structures using trees?   
      
   Eg.:   
      
          c = a + b;   
          if c > 10 goto L1 else goto L2   
   L1:  a = 10;   
          goto L3;   
   L2:  a = 20;   
   L3:   
      
      
   CC)sar.   
      
      
   On Tue, Sep 8, 2015 at 4:49 AM, Anton Ertl   
    wrote:   
   >>This linear representation is really just an array of IR instructions,   
   >>something on these lines: vector; As operands   
   >>instructions have pointers to entries in the symbol table.   
   >   
   > Sounds like quadruples. ...   
      
   --- 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