This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

will GNU printf() use malloc?

I am calling GNU's printf and I find that the elf out contains following segment:

 .data          0x000802f4      0x444 c:/gnu/pc-cygwin/arm-elf/lib/libc.a(mallocr.o)
                0x00080700                __malloc_top_pad
                0x00080708                __malloc_max_sbrked_mem
                0x00080704                __malloc_sbrk_base
                0x00080710                __malloc_current_mallinfo
                0x000802f4                __malloc_av_
                0x0008070c                __malloc_max_total_mem
                0x000806fc                __malloc_trim_threshold
                0x00080740                .=ALIGN(0x10)

from the linker map file, I see freer.o and mallocr.o is also linked because wsetup.o references to them. Does GNU's vsprinf() use malloc?!

Do I miss anything? I do not want to use malloc in my design. Thanks.

0