On 8/12/2016 7:41 AM, Shachar Shemesh wrote:
That table was not expensive to compute, and its constantness wasn't crucial
enough even for me to put a wrapper pointer and only access it through it. Had
that not been the case, and had that table been more expensive to computer, I'd
probably compute at compile time with an external tool.

What I do (and is done in building DMD) is write a program (optabgen.c) to generate the tables and write a C++ source file, then compile the generated file into DMD.

Reply via email to