AnsweredAssumed Answered

Using multiple heaps - spoofing heap.asm

Question asked by spacklebum on Nov 3, 2011
Latest reply on Nov 8, 2011 by spacklebum

Instead of rebuilding the library as suggested in the compiler manual, I am trying to spoof the heaps.asm file in libc to add another heap descriptor. To do this I copied and pasted the heaps.asm file into my project and added another descriptor, and updated the LDF. This works under VisualDSP updates 9, 9.1 and 10 -- but not update 8. Under update 8 it gives me a linker error that states that ___lib_heap_space is multiply defined (li1050).


I understand from a previous question that the linker uses local files before library files, so it is ignoring the heaps.doj file in update 9-10. Under update 8, the file seg_init.asm has the same contents, so I don't know why it's giving me this error. Is the linker checking the file contents to ensure all the labels are the same?


While I'm fine with using update 9-10 with no errors, I want to make sure that this solution (spoofing heaps.asm in libc) will continue to work on future updates to VisualDSP, especially if there are any linker updates.