How long is too long?

Everything else that doesn't fall into one of the other PB categories.
Lubos
Enthusiast
Enthusiast
Posts: 167
Joined: Tue Feb 03, 2004 12:32 am
Contact:

How long is too long?

Post by Lubos »

Hi,
I should like to know:

How long (theoretically) can be source code for one PB exe file ?
How much of code lines is a practical limit for PB from your point of view ?
How longest real code in PB do you know ? (Lenght of source code, name and purpose of program only.)
Thanks for your time
Lubos
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Hi,
I don't know about theoretical limits.
In my experience, the longuest source I have ever (successfully) compiled with PB is the PureFORM source code : 34875 lines or 1688136 bytes with all icons included as hexadecimal data.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4801
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Stupid questionb but..What's the advantage of including icons as hex data rather than just icons?
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Fangbeast wrote:Stupid questionb but..What's the advantage of including icons as hex data rather than just icons?
So I only need the source file for compilation, and no additional files.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
freak
PureBasic Team
PureBasic Team
Posts: 5962
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

> How long (theoretically) can be source code for one PB exe file ?
> How much of code lines is a practical limit for PB from your point of view ?

To use the debugger, one includefile should not be longer than 16777215 lines of code, with a maximum of 255 includefiles.
If you do not need the debugger, you should even be able to surpass that limit.

Thats not a real practical limit imho.
quidquid Latine dictum sit altum videtur
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

Mt POS program has over 8000 lines... has 188 button gadgets and 11 listicon gadgets... includes 12 images with an average size of 18k and loads two preference files and sets up three buffers...

And compiles to 182k

I would suspect there is an upper limit on the gadgets around 9999 per window. However I am unsure... I have a Chinese Lannguage Word Processor in the works now...

I really wouldn't worry about it. Program happily. Be Good to your code and don't code n00bish stoopid( write malware / spyware / viri / trojans / chatbots to bring MSN to its kneez)! You will learn and be happy!

Now start creating! 8)
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4801
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

gnozal wrote:
Fangbeast wrote:Stupid questionb but..What's the advantage of including icons as hex data rather than just icons?
So I only need the source file for compilation, and no additional files.
Thanks, i'll have to look into this. People used to complain that I never included the graphics in my projects and this might be a simpler way. Some people want everything free.
Post Reply