www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Unable to link program, linker crashes

reply Myron Alexander <someone somewhere.com> writes:
Hello.

I have created a prototype that I use to test the compile speeds of a 
compile time structure test template. I generated the program using gawk 
and gen.awk. It creates 2000 structures and runs the test on each structure

The compilation completes ok but the link fails with no more information 
than a dump of registers. I have attached a screen shot and all code.

I am using DMD1.015, "OPTLINK (R) for Win32  Release 7.50B1", "Digital 
Mars Compiler Version 8.42n".

I'm looking to find out:
   - If anyone come across a similar problem-case.
   - If this is a bug in the D toolchain or if I have hit some limit and 
must reorganise my code.
   - If this is a new bug; in that case I will log it.

Thanks ahead for any help.

Regards,

Myron.
Jun 24 2007
parent reply Myron Alexander <someone somewhere.com> writes:
I found a workaround. It seems that it may be a limit on the linker. I 
split up the structures into separate modules and the linker completed ok.

I'm surprised by how much memory dmd uses in this test. When I tried to 
compile all the modules with one dmd call, the compiler hit about 1 
gigabyte and then ran out of memory. Were talking about less than 2 
megabytes worth of code.

Regards,

Myron.
Jun 25 2007
parent Manfred Hansen <m.hansen kielnet.net> writes:
Myron Alexander wrote:

 I found a workaround. It seems that it may be a limit on the linker. I
 split up the structures into separate modules and the linker completed ok.
 
 I'm surprised by how much memory dmd uses in this test. When I tried to
 compile all the modules with one dmd call, the compiler hit about 1
 gigabyte and then ran out of memory. Were talking about less than 2
 megabytes worth of code.
 
 Regards,
 
 Myron.
Maybe Frank Benoit have that problem before? Search for "Help with linker problems" in this group. 11 Mai mfg Manfred
Jun 26 2007