Ha ragione MItaly, ho sbagliato io, dev'essere quello che qui http://www.greenend.org.uk/rjk/tech/inline.html scrive con: "If you want to use it from other translation units to the one where it is defined, you put a declaration in a header file". Quindi se non sbaglio anche qui, il prototipo nel file .h e la definizione nel file .c ha effetto solo se sto usando quella funzione in quel file .c
Aggiungo per curiosità che ho letto per gcc esiste il "Link Time Optimization (LTO)": a form of whole program optimization that lets it inline functions from separate object files (http://stackoverflow.com/questions/5...line-functions). Gli oggetti devono essere già stati compilati con -flto.

Rispondi quotando