D garbage collector and real-time systems

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 27 23:43:35 PST 2015


On Wed, 28 Jan 2015 06:58:41 +0000, Tom wrote:

> Or is there now the possibility of disabling the GC altogether, or
> replacing it with a refcounting 'GC' etc?

you still can do manual memory management with `malloc()` and friends. 
but you must be very cautious with dynamic arrays and slices. may be your 
best bet is to not use built-in dynamic arrays at all and write a 
replacement class with manual memory management. ah, and the same for AAs.

it's possible, if somewhat cumbersome. and you can use 'dmd -vgc' to 
check for hidden allocations. so it may be not as simple as adding some 
compiler switch, but still not that hard too.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150128/31fd185b/attachment.sig>


More information about the Digitalmars-d mailing list