Indirect jumps
    Christian 
    chrisperx at hotmail.com
       
    Thu Jan 17 02:34:57 PST 2008
    
    
  
Hi,
I would like to implement a direct threaded interpreter and I need support for indirect jumps. I know how to make this in gcc using label references (operator &&):
void interp() {
  void *labelref = &&mylabel;
  goto *labelref;
mylabel:
  ...
}
does dmd or gdc support this ?
I can't use delegates or function pointers since i need the best performance possible (without using assembler).
Thanks in advance,
Christian.
    
    
More information about the Digitalmars-d
mailing list