> Hey all, got a hopefully quick question. I have many self-written C > libraries I'm using w/Hi-Tech's PICC. I was playing around today and > noticed that if I include their (for instance) stdlib, or stdio, I get > no increase in code size. With my libraries, when I include them, it > includes everything and the code increases. > > ... > > (FYI: My libraries are all simply .h files with a list of functions, > that's it, plain and simple. When you say "list" of functions, do you mean the function declarations or the function definitions? The .h file should only contain the function templates declared EXTERN. The actual functions must be compiled into their own relocatable binary modules so that the linker can pick out only those it has external references to. This is how all linkable libraries work, and is not limited to C or PICs. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu