In Code Warrior, a library is really just an object file.  CW uses an
object file format in which functions and function-static data and so on
are stored in separate hunks within the object file.  It is this arrange-
ment into separate per-function hunks that allows CW's linker to strip
unused functions and their data from inside an object file.

Actually, a CW library is a set of object files. It's just that CW doesn't write object files out to disk anywhere; it just stores them in the project data folder in its own database. Our object files separate each function into its own code item for linking -- we even do this for our ELF-emitting tools, like the CW PACE Native Object compiler.


--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to