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
How long is too long?
-
gnozal
- PureBasic Expert

- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
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.
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).
-
gnozal
- PureBasic Expert

- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
So I only need the source file for compilation, and no additional files.Fangbeast wrote:Stupid questionb but..What's the advantage of including icons as hex data rather than just icons?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
> 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.
> 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
- Rook Zimbabwe
- Addict

- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
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!
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!
- Fangbeast
- PureBasic Protozoa

- Posts: 4801
- Joined: Fri Apr 25, 2003 3:08 pm
- Location: Not Sydney!!! (Bad water, no goats)
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.gnozal wrote:So I only need the source file for compilation, and no additional files.Fangbeast wrote:Stupid questionb but..What's the advantage of including icons as hex data rather than just icons?

