www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Using a development branch of druntime+phobos with ldc

reply Per =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
I'm experimenting with a new GC at

https://github.com/nordlow/druntime/blob/fastalloc-gc/src/gc/impl/fastalloc/gc.d

in my druntime branch fastalloc-gc.

I've found a way to benchmark it using dmd as outlined at

https://forum.dlang.org/post/zjxycchqrnxplkrlmnsj forum.dlang.org

but what about rebuilding druntime+phobos with ldc and linking 
with that specific libphobos.so when compiling my benchmarking 
app with ldc? Is it possible? If so, what's the preferred way?
Oct 10 2018
parent reply kinke <kinke libero.it> writes:
On Wednesday, 10 October 2018 at 08:29:52 UTC, Per Nordlöw wrote:
 but what about rebuilding druntime+phobos with ldc and linking 
 with that specific libphobos.so when compiling my benchmarking 
 app with ldc? Is it possible? If so, what's the preferred way?
LDC has its own forks of druntime and Phobos, with numerous required adaptations. So you'd need to apply your patches to those forks & build the libs (druntime and Phobos are separate libs for LDC), e.g., with the included ldc-build-runtime tool, which makes this painless: https://wiki.dlang.org/Building_LDC_runtime_libraries The Wiki page also shows how to link those libs instead of the shipped-with ones.
Oct 10 2018
parent Per =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
On Wednesday, 10 October 2018 at 10:06:36 UTC, kinke wrote:
 LDC has its own forks of druntime and Phobos, with numerous 
 required adaptations. So you'd need to apply your patches to 
 those forks & build the libs (druntime and Phobos are separate 
 libs for LDC), e.g., with the included ldc-build-runtime tool, 
 which makes this painless: 
 https://wiki.dlang.org/Building_LDC_runtime_libraries
 The Wiki page also shows how to link those libs instead of the 
 shipped-with ones.
Thanks.
Oct 10 2018