memory exhausted

michael cardenas michael_cardenas@deneba.com
Fri Feb 18 06:39:00 GMT 2000


I'm using redhat 6.1. The linker I'm using is ld. I thought it was part of
gcc. Is there a better linker?

>> Often, when trying to link my application, I get an error that memory is
>> exhausted and the link failed. I have 256mb of ram and the resulting
>> executale after a successful compile is 60mb. Even if I quit all other
>> applications, I get the same error. The only thing I can do is to logout
>> and login again.
>>
>> Does this sound like a bug to you?
>
>It may be a bug, but not necessarily in the compiler. When linking
>runs out of memory, it is most likely the linker that fails, which is
>not part of gcc (instead, gcc assumes it is already there and invokes
>it).
>
>Unfortunately, you did not say what operating system you use, so it is
>hard to guess what the problem is.
>
>> Also, should my link of my 60mb application really take 5-7minutes?
>> I does, every time. This is extremely poor.
>
>Again, complain to whoever provided you with the linker. However, if
>it is short of memory, it may suffering from thrashing into swap
>space. Maybe you need to complain to the OS vendor then, as well :-)
>
>Regards,
>Martin





More information about the Gcc mailing list