-->
Page 1 of 3

Xtensa Linker (LD) produce RAM usage

PostPosted: Tue Oct 28, 2014 5:30 pm
by johnnyfp
Hi,

I've currently got a ram overflow while trying to compile a derivative hack of a Webserver and AT enabled firmware.

Does the xtensa Linker have an option to switch on how much ram I am actually over?

Cheers

Code: Select all/opt/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .output/eagle/debug/image/eagle.app.v6.out section `.text' will not fit in region `iram1_0_seg'

Re: Xtensa Linker (LD) produce RAM usage

PostPosted: Tue Oct 28, 2014 5:51 pm
by jcmvbkbc
johnnyfp wrote:Does the xtensa Linker have an option to switch on how much ram I am actually over?

The closest I can think of is enabling link map dump with -M or -Map=<map-file-name> and looking into it.

Re: Xtensa Linker (LD) produce RAM usage

PostPosted: Tue Oct 28, 2014 6:07 pm
by johnnyfp
Thanks,

I tried that, didn't really work, I upped the iram1_0_seg in the linker file instead until it went away. Looks like I'm 3090bytes over.

Re: Xtensa Linker (LD) produce RAM usage

PostPosted: Tue Oct 28, 2014 6:15 pm
by 0ff
Have you tried enabling -DICACHE_FLASH?