It is currently Tue Jan 19, 2021 2:55 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Compiled executable sizes..
PostPosted: Wed Oct 29, 2003 6:48 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Mon Jun 02, 2003 1:42 am
Posts: 2010
Location: Ashland, KY
I'm posting a little invoice manager I've thrown together later today but first wanted to ask something.. I just compiled it and noticed the executable is over 500k - which is odd since it's really not very much code at all. I have another project that's easily 5 times as much code and it compiles down to 130kish..

I'm using the SQLite userlib and I imported the iSEDPDF lib and use it - could it be the PDF lib making this executable so big? The PDF DLL is 500k+.

I don't include anything into the binary either, so it's not an image..

Someone slap me with a clue stick!

_________________
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 29, 2003 6:51 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Jun 02, 2003 1:06 pm
Posts: 713
Location: Norway
*smack*

_________________

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 29, 2003 6:55 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Mon Jun 02, 2003 1:42 am
Posts: 2010
Location: Ashland, KY
That was just a big stick, not a clue stick...

You violent violent man!

:-)

_________________
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 29, 2003 7:00 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Jun 02, 2003 1:06 pm
Posts: 713
Location: Norway
Sorry about that.. I didn't have a clue... (stick?)..ROFL!!!! :twisted:

_________________

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 29, 2003 7:01 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Mon Jun 02, 2003 1:42 am
Posts: 2010
Location: Ashland, KY
hahaha

That makes two of us then... It's almost a club!

_________________
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 29, 2003 7:10 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Jun 02, 2003 1:06 pm
Posts: 713
Location: Norway
While we're at it, why don't we try to crack your problem?!?
What files are you including (or not including) and how big are they?!
(I'm thinking PBI's etc)

_________________

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 29, 2003 7:26 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 5:21 pm
Posts: 5818
Location: Germany
Karbon:

The size of the executable also depends on the commands you use, not only
on size of your code. Some PB commands are internally really big (for
example the various ImagePlugins)

So, if you add in all Image de- and encoders, it will increase
the filesize by about 420Kb!

Timo

_________________
quidquid Latine dictum sit altum videtur


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 29, 2003 8:57 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Mon Jun 02, 2003 1:42 am
Posts: 2010
Location: Ashland, KY
I should have thought of that!

That's exactly what it is. Thanks freak!

_________________
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 29, 2003 9:18 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Apr 26, 2003 5:08 pm
Posts: 404
Location: Denmark
Hi karbon.
Use El_Choni's "EC_ImagePluginOLE_20"
Decodes BMP, ICO, CUR, WMF, EMF, GIF and JPG

It produce much smaller exe's

http://www.reelmediaproductions.com/
the ASM Libarary.

Best regards
Henrik.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 29, 2003 10:49 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Mon Jun 02, 2003 1:42 am
Posts: 2010
Location: Ashland, KY
Thanks!!

_________________
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: hrcoder and 70 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye