Page 1 of 1

To much linked stuff !? Win32 v3.93 Bug !?

Posted: Mon May 30, 2005 12:53 am
by va!n
Hi Fred!
when using only the pure command "InitSprite()" and compile it and take a look to the asm output, i noticed following...
; Sprite
; SimpleList
; ImagePlugin
; Keyboard
; MultimediaBase
- What is SimpleList (can't find the lib)?
- Why are SimpleList, ImagePlugin and Keyboard libs linked too?

I think, if people dont use any Keyboard functions in there code, the Keyboard lib isnt needed to be linked to the exe!? Same for ImagePlugin!? What do you think?

:wink:

Posted: Mon May 30, 2005 1:20 am
by freak
SimpleList is an internal library used for PB object management.
Note, that when you see the name of a library written in the asm code, it only means,
that there is one or more functions of that lib required.
There will be however only the functions that are required linked to your exe, not the whole lib.

Many libraries share functions with others to avoid repeating code, so there is nothing wrong here.

Don't worry, no unused stuff is included ;)

Posted: Mon May 30, 2005 1:34 am
by va!n
ok, thanks for the info :wink:

so i think, the keyboard lib (or a part of it) will be included too, due fact to init the DX based Keboard commands (too, if you dont use one of its command) , right?

Posted: Mon May 30, 2005 6:14 pm
by Fred
For example the ImagePlugin lib won't be linked at all if you don't use Load/SaveSprite(). All is very modular in PB, it's not because a library is specified than one of its command will be linked.

Posted: Mon May 30, 2005 6:20 pm
by va!n
thanks for the info fred! you are doing a great job!
btw, today i send you some stuff by smail. maybe some things may be interesting for you (like how to speed up pb a lot), be patienced :wink: