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,834 of 2,753   
   Robert A Duff to Philip Herron   
   Re: Jit Implementation   
   19 Mar 10 15:03:19   
   
   From: bobduff@shell01.TheWorld.com   
      
   Philip Herron  writes:   
      
   > [A JIT compiler has to do the moral equivalent of dlopen(), take a   
   > chunk of data and make it be code, with everything in memory rather   
   > than in files.  On many architectures, you don't actually have to do   
   > anything since code and data are in the same address space so you   
   > can set a pointer to point to the code you just wrote and call it,   
   > but on others you do need some help from the system, e.g., on recent   
   > x86 where data pages are usually marked no-execute. -John]   
      
   Also, on some machines you might need to do some cache flushing.   
   Otherwise, the processor might execute old instructions.   
      
   - Bob   
   [Quite right -- it's very machine specific. -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