ld: Memory exhausted

Hi,

I’m trying to link a large object on QRTP, but ld keeps running out of
memory. System info:

Pentium I 166Mhz, 48M RAM, 128M .swapfile, running Neutrino.

I tried adding option --no-keep-memory to ld, but that doesn’t help. Nor
does going back to text mode to free up as much as possible. Is there
any other parameter I can adjust?

BTW, while ld is running, I don’t see any change in the swap info
(checked with /sbin/swapctl). Does this mean ld isn’t subject to paging?

TIA,

rick

Rick Lake <rwlake@spam.redirected.to.dev.null> wrote:

Hi,

I’m trying to link a large object on QRTP, but ld keeps running out of
memory. System info:

Pentium I 166Mhz, 48M RAM, 128M .swapfile, running Neutrino.

I tried adding option --no-keep-memory to ld, but that doesn’t help. Nor
does going back to text mode to free up as much as possible. Is there
any other parameter I can adjust?

BTW, while ld is running, I don’t see any change in the swap info
(checked with /sbin/swapctl). Does this mean ld isn’t subject to paging?

ld will use paging, but it’s memory usage patterns probably preclude it.
No doubt it’s doing a large malloc, which cannot be satisfied (even with
the swapper on ) unless you actually have that amount of memory in the
system.


cburgess@qnx.com

48Meg ouch, you are asking for trouble. 64M is minium
and for large project if you don’t have 128M the gcc
will just crawl.

“Rick Lake” <rwlake@SPAM.REDIRECTED.TO.DEV.NULL> wrote in message
news:3A2A4F5C.EE73EC32@SPAM.REDIRECTED.TO.DEV.NULL

Hi,

I’m trying to link a large object on QRTP, but ld keeps running out of
memory. System info:

Pentium I 166Mhz, 48M RAM, 128M .swapfile, running Neutrino.

I tried adding option --no-keep-memory to ld, but that doesn’t help. Nor
does going back to text mode to free up as much as possible. Is there
any other parameter I can adjust?

BTW, while ld is running, I don’t see any change in the swap info
(checked with /sbin/swapctl). Does this mean ld isn’t subject to paging?

TIA,

rick