Chasing RAM - libc ..
m8847
m8847 at abc.se
Wed Oct 13 15:31:24 UTC 2010
I am a bit short of RAM in my project, so I am trying to free up as much
as
possible, and I have seen that libc uses a lot, which I am unsure about.
I have rolled my own malloc()/free(), and thus should not use any library
version of them. I hope. And I only use C-code, no C++.
These are the worst consuming bits, but maybe these are things that need
to
be around(?) (or can I somehow tweak them away?):
.bss 0x2000fae4 0x194
/home/micke/CodeSourcery/Sourcery_G++/bin/../lib/gcc/m68k-elf/4.4.1/../../../../m68k-elf/lib/m5208/libc.a(lib_a-__atexitg.o)
0x2000fae4 _cslibc_global__atexit
0x2000fae8 _cslibc_global__atexit0
.bss 0x2000fa6c 0x78
/home/micke/CodeSourcery/Sourcery_G++/bin/../lib/gcc/m68k-elf/4.4.1/../../../../m68k-elf/lib/m5208/libc.a(lib_a-stderr.o)
0x2000fa6c _cslibc_global__stderr
0x2000fa70 __stderr
.bss 0x2000fcac 0x34
/home/micke/CodeSourcery/Sourcery_G++/bin/../lib/gcc/m68k-elf/4.4.1/../../../../m68k-elf/lib/m5208/libc.a(lib_a-mallocr.o)
0x2000fcac __malloc_top_pad
0x2000fcb0 __malloc_max_sbrked_mem
0x2000fcb4 __malloc_max_total_mem
0x2000fcb8 __malloc_current_mallinfo
.data 0x20000350 0x410
/home/micke/CodeSourcery/Sourcery_G++/bin/../lib/gcc/m68k-elf/4.4.1/../../../../m68k-elf/lib/m5208/libc.a(lib_a-mallocr.o)
0x20000350 __malloc_av_
0x20000758 __malloc_trim_threshold
0x2000075c __malloc_sbrk_base
.data 0x20000248 0xf0
/home/micke/CodeSourcery/Sourcery_G++/bin/../lib/gcc/m68k-elf/4.4.1/../../../../m68k-elf/lib/m5208/libc.a(lib_a-_new.o)
0x20000248 _cslibc_global__new
Any views on them are welcome!
Micael
More information about the coldfire-gnu-discuss
mailing list