The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: theunknownguy on April 13, 2010, 07:23:40 PM

Title: Correct way to LIB
Post by: theunknownguy on April 13, 2010, 07:23:40 PM
Hey all i got a question i am making an IOCP library for MASM under (JWASM compiler)

The thing is i read about granularity but in my case i got this procedures:

IOCPCore
IOCPWorkerThreads
IOCPStart
IOCPSetConnection.


etc, they all must be togheter (in theory) but i can put example IOCPCore and IOCPWorkerThreads on differen files and assemble them on different objects, for link them all in the final LIB.

Is this the way to make it?

Or it doesnt matter on this case if i put all procedures in 1 file? (i know it matters, but they are all needed for each other).

Thanks.
Title: Re: Correct way to LIB
Post by: hutch-- on April 14, 2010, 12:45:43 AM
The general drift is if they will always be used together then put them in one file. The idea is to ensure that you don't call one procedure and get other dead code that is not used.
Title: Re: Correct way to LIB
Post by: theunknownguy on April 14, 2010, 06:05:25 AM
Thanks hutch so ill put them all in one file since you need them all  :cheekygreen: