I've got the same problem as john. Does PICC linker permits to make linkable libraries? Or Hitech's or anything else? Does someone has a code example of those linkable libraries? ____________________ Samuel BOUQUET Sociiti INOV'TRONIK 8/10 rue Emile Sehet ZA des chataigniers 95150 Taverny, FRANCE ____________________ Tel: (33) 1 39 95 29 50 Fax: (33) 1 39 95 74 10 s.bouquet@inovtronik.com -----Message d'origine----- De : pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]De la part de Olin Lathrop Envoyi : mardi 17 dicembre 2002 14:04 @ : PICLIST@MITVMA.MIT.EDU Objet : Re: [PIC]: C library optimization > 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 -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu