What you want is called static linking, not dynamic linking. It can be done like this: Compile all your library functions into .rel files. Then create a library from them using
sdcclib your_library.lib your_lib_object_file0.rel your_lib_object_file1.rel and so on. And then link the library into your project: sdcc your_library.lib your_prog_object_file0.rel your_prog_object_file1.rel and so on. sdcc will include everything from the program object files, and whatever is needed from the library object files (your library and the standard library) to satisfy dependencies. Philipp ------------------------------------------------------------------------------ Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user