Page 1 of 1

What is compiled?

Posted: Sat Jul 31, 2004 10:56 pm
by Moonshine
Hi I was just wondering, when an exe is compiled, are the entire contents of a PBLib/Userlib compiled if only one or two commands from that lib are used? Or does it only use the ones that are called?

Just one of those questions thats pestering me at the back of my head :)

Posted: Sat Jul 31, 2004 11:05 pm
by jack
i think it depends on the lib, for example the lib MathExtras by El_Choni
will only export the functions that are used in the program. :|

Posted: Sat Jul 31, 2004 11:10 pm
by freak
PB libs are splitted, so only the used commands are included,
for the userlibs, it depends on wether they were written to support that or not.

Timo

Posted: Sun Aug 01, 2004 1:54 am
by Kale
for the userlibs, it depends on wether they were written to support that or not.
In laymans terms how would you write a lib to support this?

Posted: Sun Aug 01, 2004 10:25 am
by Num3
Good question Kale :twisted:

Posted: Sun Aug 01, 2004 11:12 am
by jack
i think you need to compile each function in your lib separtely into obj files, then invoke lcclib (or equivalent) to build a lib file.
then you run LibraryMaker (Library SDK folder) to make a PB lib. :)

Posted: Sun Aug 01, 2004 1:44 pm
by Moonshine
Thanks for the replies :)

Posted: Thu Aug 12, 2004 11:19 pm
by freak
Kale wrote:
for the userlibs, it depends on wether they were written to support that or not.
In laymans terms how would you write a lib to support this?
... use Tailbite and let it take care of it for you :)

Actually you have to put every function into a seperate .obj file, and combine
them into a .lib file, as jack has allready said, that's all.


Timo

Posted: Fri Aug 13, 2004 12:43 am
by Kale
... use Tailbite and let it take care of it for you
he he :)

Thanks Timo/Jack.