Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
April 20, 2005 Disabling GC | ||||
---|---|---|---|---|
| ||||
Hello All !
Does someone tried to use D without GC ? Do I need to recompile phobos to
disable GC ?
And does some language features such as dynamic arrays and AA rely on GC ?
--
Vladimir
|
April 20, 2005 Re: Disabling GC | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir | Vladimir wrote: > Hello All ! > Does someone tried to use D without GC ? Do I need to recompile phobos to > disable GC ? > And does some language features such as dynamic arrays and AA rely on GC ? > import std.gc; ... disable(); // or std.gc.disable(); // if you have something named disable already... ... Don't know about the Dynamic array and AA stuff...I'd like to know myself... -- -PIB -- "C++ also supports the notion of *friends*: cooperative classes that are permitted to see each other's private parts." - Grady Booch |
April 20, 2005 Re: Disabling GC | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul Bonser | Paul Bonser wrote: >> Does someone tried to use D without GC ? Do I need to recompile phobos to >> disable GC ? > std.gc.disable(); // if you have something named disable already... > ... I don't think enabling/disabling is implemented yet in Phobos ? But I do know that it is possible to recompile it, without GC. --anders |
April 20, 2005 Re: Disabling GC | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anders F Björklund | Anders F Björklund wrote:
> Paul Bonser wrote:
>
>>> Does someone tried to use D without GC ? Do I need to recompile phobos to
>>> disable GC ?
>
>
>> std.gc.disable(); // if you have something named disable already...
>> ...
>
>
> I don't think enabling/disabling is implemented yet in Phobos ?
>
> But I do know that it is possible to recompile it, without GC.
I haven't looked at it, but I assume that with some tweaking anybody could do it.
What would be nice, is to have a disableGC.txt in the Phobos directory, explaining how to do it.
(It should actually be in the GC documentation, but, hey, one can't expect to get all the money in the world. :-) )
|
April 24, 2005 Re: Disabling GC | ||||
---|---|---|---|---|
| ||||
Posted in reply to Georg Wrede | Just do an extern (C): main , and dont call gc_init(); Charlie "Georg Wrede" <georg.wrede@nospam.org> wrote in message news:4266768A.4040905@nospam.org... > Anders F Björklund wrote: > > Paul Bonser wrote: > > > >>> Does someone tried to use D without GC ? Do I need to recompile > >>> phobos to > >>> disable GC ? > > > > > >> std.gc.disable(); // if you have something named disable already... > >> ... > > > > > > I don't think enabling/disabling is implemented yet in Phobos ? > > > > But I do know that it is possible to recompile it, without GC. > > I haven't looked at it, but I assume that with some tweaking anybody could do it. > > What would be nice, is to have a disableGC.txt in the Phobos directory, explaining how to do it. > > (It should actually be in the GC documentation, but, hey, one can't > expect to get all the money in the world. :-) ) |
April 25, 2005 Re: Disabling GC | ||||
---|---|---|---|---|
| ||||
Posted in reply to Charlie | Charlie wrote: > Just do an extern (C): main , and dont call gc_init(); Thanks ! > > Charlie > "Georg Wrede" <georg.wrede@nospam.org> wrote in message > news:4266768A.4040905@nospam.org... >> Anders F BjЖrklund wrote: >> > Paul Bonser wrote: >> > >> >>> Does someone tried to use D without GC ? Do I need to recompile >> >>> phobos to >> >>> disable GC ? >> > >> > >> >> std.gc.disable(); // if you have something named disable already... >> >> ... >> > >> > >> > I don't think enabling/disabling is implemented yet in Phobos ? >> > >> > But I do know that it is possible to recompile it, without GC. >> >> I haven't looked at it, but I assume that with some tweaking anybody could do it. >> >> What would be nice, is to have a disableGC.txt in the Phobos directory, explaining how to do it. >> >> (It should actually be in the GC documentation, but, hey, one can't >> expect to get all the money in the world. :-) ) -- Vladimir |
Copyright © 1999-2021 by the D Language Foundation