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 934 of 2,753   
   Hans-Peter Diettrich to Bison   
   Re: Questions about Bytecode   
   19 Apr 07 00:23:06   
   
   From: DrDiettrich1@aol.com   
      
   Bison wrote:   
      
   > More specifically, how would I represent literals, like String and   
   > numbers?  The problem I have with this is, how could the VM   
   > differentiate between instructions and literal data?  I've heard   
   > someone say that I could use a delimiter to mark start and end points.   
      
   This looks as if you intend to write out everything while parsing.   
   Consider using multiple sections and tables in the created file,   
   prepare them in memory or temporary files, and write out everything   
   when finished. Having everything in memory will allow to run the   
   parsed source immediately, without creating an precompiled file. Then   
   you'll immediately use the structures as required by the VM, apart   
   from what comes into mind while only parsing.   
      
   DoDi   
      
   --- 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