I would like to pick certain functions e.g. sinf() from newlib to be placed in internal memory by use of the .ldf-file while still keeping the bulk of the newlib in external memory.
Is this possible?
My experiments with the syntax of the .ldf has not yet been successfull
Does anyone know how to do this?
This is an example of what I've tried:
------------------------------------
NEW_LIB_RO . : {lib_a-*.o(.text .rodata) *.o(libgloss_epiphany)} > EXTERNAL_DRAM_0
NEW_LIB_WR . : {lib_a-*.o(.data) } > EXTERNAL_DRAM_0
/* an atempt to place sinf in internal memory */
NEW_LIB_RO : {*sf_sin.o(.text .rodata) *sf_sin.o(libgloss_epiphany) } > INTERNAL_RAM
NEW_LIB_WR : {*sf_sin.o(.data) } > INTERNAL_RAM
------------------------------------