CT usage only in executable

strtr strtr at sp.am
Sat Jul 17 17:04:51 PDT 2010


== Quote from torhu (no at spam.invalid)'s article
> On 15.07.2010 02:29, strtr wrote:
> > Not that the memory is really significant compared to the rest of my program,
> > but I have a few fairly large arrays I use only in compile time and I was
> > wondering why dmd still includes those in the executable (simple text search
> > dug them up).
> As a workaround you could try putting those arrays in a separate module
> which you don't link into your executable.  If you use a build tool like
> xfbuild, you can exclude files with the -X switch.  CTFE would still work.

Thanks, I'll try that if dmd will not do this as well before my program is finished :)


More information about the Digitalmars-d-learn mailing list