Page 1 of 2

Max. Compilation lines of code... ?

Posted: Fri Jul 20, 2012 4:57 pm
by marc_256
Hi,

- For my program that I just compiled,
I'm about 758 374 lines of code to compilation.
And I'm not in 40% of my program... :shock:

Image

Q: What is the max. of lines that PB can compile :?:

Marc,

Re: Max. Compilation lines of code... ?

Posted: Fri Jul 20, 2012 6:39 pm
by Nubcake
marc_256 wrote:Hi,

- For my program that I just compiled,
I'm about 758 374 lines of code to compilation.
And I'm not in 40% of my program... :shock:

Image

Q: What is the max. of lines that PB can compile :?:

Marc,
That's a lot of code! :D

Curious questions:

1.What program are you creating?
2.How long does it take to compile all that?

Nubcake

Re: Max. Compilation lines of code... ?

Posted: Fri Jul 20, 2012 7:50 pm
by marc_256
Hi Nubcake,
That's a lot of code! :D

Curious questions:

1.What program are you creating?
2.How long does it take to compile all that?

Nubcake
1. Its my 3D CAD/CAM/CAE program, now with *'Mesh editing' and *'Image editing' ...
I started 2 years ago now :(
it a lot of code specially for the 3D part (OGRE).
* = Not finished yet... :( but moving on every day... :)

2. About 2...3 minutes on a 2.8 GHz pc with only 2Gb of ram with PB 4.61 Final.

Parts of the program are DATA (DataSections) so...
In a week or two... :?: , I will post a part of it in a small demo.

I just love PB 4.61 with CanvasGadget(),


Marc,

Re: Max. Compilation lines of code... ?

Posted: Fri Jul 20, 2012 8:35 pm
by Franky
You did 760 000 lines of code in 2 years which would be twice 365 days?
That's more than 1000 lines every DAY, MONDAY to SUNDAY, WINTER TO SUMMER TO WINTER TO SUMMER TO WINTER. :shock:

Don't get me wrong, the screens on your website look impressive, but I would guess that once you get a bug report, you might get in very big trouble :?


my biggest project got 10% of your's and all in all I wrote about 60% of the lines of code you've written in that program.

So, simple question: How did you get so many lines of code?

Re: Max. Compilation lines of code... ?

Posted: Fri Jul 20, 2012 9:07 pm
by marc_256
Hi Franky,
You did 760 000 lines of code in 2 years which would be twice 365 days?
That's more than 1000 lines every DAY, MONDAY to SUNDAY, WINTER TO SUMMER TO WINTER TO SUMMER TO WINTER. :shock:
Like I wrote in my previous post, there is about 50% data.
I wrote a program to convert 'Blender' pre build meshes to Ogre mesh data.
Also I wrote a program to convert '.bmp' images to binary data for store button images, logos, ...
Don't get me wrong, the screens on your website look impressive, but I would guess that once you get a bug report, you might get in very big trouble :?
I started programming on an APPLE II, and did my first 3D applications on it. :twisted:
Veeeeery slowly, .... 1 Mhz 6502 cpu with 16Kb ram :shock:
I learned to do partial programming.
I test small parts of the big project for about 90% and only then I implement them in to the big project.
So, simple question: How did you get so many lines of code
If you use 'macros', and 3D stuff maths and lots of programming hours, about 14 Hrs a day...
Hope one day to be payed back for all this. :mrgreen:

PS: I'm just divorced (is this correct english), do not look to far to find a reason ... :?

marc,

[Edit]: I wrote a program to convert (for 60%) C++ code to PB code.
So I copied some old 3D stuff from C++ to PB.
Even old 3D (like 3D matrices and math) stuff I did on my oldest PC 486 in QB4.5 I converted to PB.

Re: Max. Compilation lines of code... ?

Posted: Sat Jul 21, 2012 12:23 am
by MachineCode
Franky wrote:How did you get so many lines of code?
Number of lines never impresses me. Half could be blank lines for white space reasons, or even lots of single lines like "a=a+1".

Re: Max. Compilation lines of code... ?

Posted: Sat Jul 21, 2012 12:49 am
by c4s
marc_256 wrote:Like I wrote in my previous post, there is about 50% data.
I wrote a program to convert 'Blender' pre build meshes to Ogre mesh data.
Also I wrote a program to convert '.bmp' images to binary data for store button images, logos
You say roughly 400.000 lines of code which is actually just data?
If that's correct then I think that you are doing something wrong. Why don't you include PNG images (smaller filesize than BMP), or use IncludeBinary or even better: Not compile them into the executable at all and store them in a custom data file?!

300.000-400.000 lines of code is still very impressive. Good luck with your project!

Re: Max. Compilation lines of code... ?

Posted: Sat Jul 21, 2012 4:07 am
by Tenaja
MachineCode wrote:
Franky wrote:How did you get so many lines of code?
Number of lines never impresses me. Half could be blank lines for white space reasons, or even lots of single lines like "a=a+1".
Yes, but even if half are blank, and even if you are one of those guys who refuses to make a proc longer than 10 lines with 20 lines of comments, that is STILL a LOT of code and a LOT of comments!

Re: Max. Compilation lines of code... ?

Posted: Sat Jul 21, 2012 5:56 am
by Danilo
marc_256 wrote:Q: What is the max. of lines that PB can compile :?:
Should only be limited by the amount of RAM you have.
PB full version does not have a line limit.

Re: Max. Compilation lines of code... ?

Posted: Sat Jul 21, 2012 6:15 am
by marc_256
Hi Danilo,
Should only be limited by the amount of RAM you have.
PB full version does not have a line limit.
Thanks for your answer.
Now I can go on with my project, without to be worry. :wink:

Marc,

Re: Max. Compilation lines of code... ?

Posted: Sat Jul 21, 2012 6:19 am
by marc_256
Hi c4s,
300.000-400.000 lines of code is still very impressive. Good luck with your project!
Thanks for the your encouraging words, I can use them ... :wink:

Marc,

Re: Max. Compilation lines of code... ?

Posted: Sat Jul 21, 2012 6:22 am
by marc_256
Hi Tenaja,
Yes, but even if half are blank, and even if you are one of those guys who refuses to make a proc longer than 10 lines with 20 lines of comments, that is STILL a LOT of code and a LOT of comments!
Well how bigger the project, how more I use comments to remember some things.
There are parts of the software I wrote more than a year now,
and if you have to find something back or to change it is sometimes hard to remember how I programmed it.

Marc,

Re: Max. Compilation lines of code... ?

Posted: Sat Jul 21, 2012 10:51 am
by luis
c4s wrote:You say roughly 400.000 lines of code which is actually just data?
If that's correct then I think that you are doing something wrong.
[...]
Not compile them into the executable at all and store them in a custom data file?!
I agree on that. Instead of all that data forced in the data segment maybe he should consider to store it in a single external resource file, packed or encrypted if that's really needed. Also it would speed up compilation time.

Re: Max. Compilation lines of code... ?

Posted: Sat Jul 21, 2012 10:59 am
by Fred
You should really use IncludeBinary (or even external files) instead of tons of Data, it will speed up the compiling quite a bit.

edit: luis got me ;)

Re: Max. Compilation lines of code... ?

Posted: Sat Jul 21, 2012 11:01 am
by marc_256
Hello Luis,

c4s and you are write,
but I'm in a development stadium,
there are to many images who are changing, button images, logos, background images, cursors, etc. ...
So, it is the best way for this moment.
If all my images , cursors and meshes are ok, then I can put them together.

Thanks for the advice,

Marc,

Edit: and Fred thanks