I've decided to make a obj file with some routines I've made (rellocatable code) and to call them from my main asm file. I've noticed that even though I only mention only a couple of those routines in my main asm file using EXTERN , the final hex file contains all the code of the .o file. I did some research that drove me into the conlcusion that this should be normal and in order to avoid it I should make a lib file and so I did. The problem is that still I get a Hex file with all the code of the core asm + the lib file.
Do you have any suggestions?
I am stuck almost a day trying to figure out what's wrong.
Do you have any suggestions?
I am stuck almost a day trying to figure out what's wrong.
Last edited: