home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 4,589 of 4,675   
   Anton Ertl to Frederick Virchanza Gotham   
   Re: Write x86_64 thunk to invoke any lam   
   16 Apr 23 17:04:14   
   
   From: anton@nospicedham.mips.complang.tuwien.ac.at   
      
   Frederick Virchanza Gotham  writes:   
   >The technique described in this post will only work on CPU's where the   
   >program counter can be set to an address in data memory, and therefore   
   >we will use 'void*' for Datum B rather than 'void(*)(void)'. I'm open   
   >to correction here but I think this technique will work on every   
   >implementation of C++ in existence today, even on microcontrollers such   
   >as the Texas Instruments F28069 and the Arduino Atmel sam3x8e.   
      
   On MacOS on Apple Silicon an mmap() with RWX does not work.  I read   
   some page where Apple describes the hoops they want you to jump though   
   to make JIT compilers work, but I forgot the details.   
      
   From some web page I got the impression that some BSD has the same   
   misfeature, but I don't have first-hand experience wrt that.   
      
   - anton   
   --   
   M. Anton Ertl                    Some things have to be seen to be believed   
   anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen   
   http://www.complang.tuwien.ac.at/anton/home.html   
      
   --- 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