Compile time code paths

Jeremie Pelletier jeremiep at gmail.com
Sat Aug 8 21:44:51 PDT 2009


If a function has both an asm and D implementations inside its body, and the D version can be executed at compile time, but the asm one is much faster at runtime. Is it possible to have the compiler use the D code path at compile time (ie to fill in enums and whatnot), and have the asm version available at runtime.



More information about the Digitalmars-d mailing list