Thread overview | |||||
---|---|---|---|---|---|
|
June 24, 2007 Unable to link program, linker crashes | ||||
---|---|---|---|---|
| ||||
Attachments: | 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. |
June 25, 2007 Re: Unable to link program, linker crashes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Myron Alexander | 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. |
June 26, 2007 Re: Unable to link program, linker crashes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Myron Alexander | 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
|
Copyright © 1999-2021 by the D Language Foundation