Status on Precise GC

Sean Kelly sean at invisibleduck.org
Sun Sep 9 20:34:08 PDT 2012


On Sep 9, 2012, at 8:16 PM, Tyler Jameson Little <beatgammit at gmail.com> wrote:

> On Sunday, 9 September 2012 at 17:22:01 UTC, dsimcha wrote:
>> On Sunday, 9 September 2012 at 16:51:15 UTC, Jacob Carlborg wrote:
>>> On 2012-09-08 23:35, Tyler Jameson Little wrote:
>>>> Awesome, that's good news. I'd love to test it out, but I've
>>>> never built the D runtime (or Phobos for that matter) from
>>>> source. Are there any instructions or do I just do something like
>>>> make && sudo make install and it'll put itself in the right
>>>> places? FWIW, I'm running Linux with the standard DMD 2.060
>>>> compiler.
>>> 
>>> Just run:
>>> 
>>> make -f posix.mak
>>> 
>>> Or, for Windows:
>>> 
>>> make -f win32.mak
>> 
>> You also need to build Phobos, which automatically links the druntime objects into a single library file, by going into the Phobos directory and doing the same thing.
>> 
>> An annoying issue on Windows, though, is that DMD keeps running out of memory when all the precise GC teimplates are instantiated.  I've been meaning to rewrite the make file to separately compile Phobos on Windows, but I've been preoccupied with other things.
> 
> Cool, that sounds easy enough. I'm running Linux, so hopefully I won't have that problem. I won't need to compile on Windows for quite a while, so that's not a big deal.

Depending on your setup, you may need to set the DRUNTIME_PATH variable to get make to find your runtime library.  If your druntime lib is in ~/lib you'd do:

make -fposix.mak DRUNTIME_PATH=$HOME

The makefile looks for the library in a "lib" subdirectory of whatever directory you supply.


More information about the Digitalmars-d mailing list