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 1,760 of 2,753   
   Walter Banks to Joshua Cranmer   
   Re: Switch statement code generation   
   05 Nov 09 15:12:30   
   
   From: walter@bytecraft.com   
      
   Joshua Cranmer wrote:   
      
   > I'm trying to put together a list of various methods to do code generate   
   > for switch statements.   
   >   
   > This is what I have so far:   
   > * Successive if/else branches   
      
   I have seen / have implemented  if/else as either buried as part of the   
   switch body or as a separate if/else code block that jumps into the   
   switch body. The determining factor is the distance a conditional   
   branch can jump.   
      
   Regards,   
      
   Walter..   
   --   
   Walter Banks   
   Byte Craft Limited   
   Tel. (519) 888-6911   
   http://www.bytecraft.com   
      
   --- 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