It is currently Thu Oct 17, 2019 2:24 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: [IDE Tool] pbOptimizer
PostPosted: Fri Aug 16, 2019 8:02 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat May 05, 2007 5:31 pm
Posts: 621
Location: Linz, Austria
Cyllceaux wrote:
Code:
LoggerInfo("Version - 0.1."+Str(#pb_editor_buildcount)+"."+Str(#pb_editor_compilecount))


This is some lines of my code.
#pb_editor_buildcount
#pb_editor_compilecount

are PB constants when you activate it.
Will be fixed in the next beta... Please us CamelCase #PB_Editor_CompileCount, #PB_Editor_BuildCount and #PB_Editor_CreateExecutable until then.


Top
 Profile  
Reply with quote  
 Post subject: Re: [IDE Tool] pbOptimizer
PostPosted: Sat Aug 17, 2019 6:06 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Apr 25, 2003 5:10 pm
Posts: 491
Location: Doubs - France
Hi Chi,

with the projet i'm on :

Module, OOP coding, test wity 64 bits compiler PB 5.70 LTS
My example compile without probleme

With your optimizer, it generate an erreur (same error in 32 or 64 bit compilation)

Image


with your pb file, the PB word Procedure is truncated
Image

_________________
A+
Denis


Top
 Profile  
Reply with quote  
 Post subject: Re: [IDE Tool] pbOptimizer
PostPosted: Sat Aug 17, 2019 6:49 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Apr 25, 2003 5:10 pm
Posts: 491
Location: Doubs - France
Chi,

with my Projet PureIconManager (original asm file has 229404 lines)

it takes 71,5 s to optimize

Final exe file size : 1281 Kb
original exe size : 1740 Kb

The exe compile but it's not Ok, it display only this and nothing more

Image


Image

I use 3 ressource files to compile (.rc file) , version informations and constant #PB_Editor_CompileCount
I don't know if i had to add this files somewhere or not
Image

_________________
A+
Denis


Top
 Profile  
Reply with quote  
 Post subject: Re: [IDE Tool] pbOptimizer
PostPosted: Sat Aug 17, 2019 2:11 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat May 05, 2007 5:31 pm
Posts: 621
Location: Linz, Austria
Denis wrote:
Hi Chi,

with the projet i'm on :

Module, OOP coding, test wity 64 bits compiler PB 5.70 LTS
My example compile without probleme

With your optimizer, it generate an erreur (same error in 32 or 64 bit compilation)

with your pb file, the PB word Procedure is truncated
Could you please turn off "Remove Uncalled Procedures" from the settings window and try compiling again? This is just a 'cosmetic' feature anyways, since PB will strip unused Procedures on its own. Only needed if you want to edit the .pb file before converting it to .asm
Any chance you could isolate the problem part (around GetMaximizeButtonPatternColorsStateExpanded() and GetMinimizeButtonPatternColors()) and send me a snippet to test? Or are there any hidden characters after the previous procedure? Something unusual?

Denis wrote:
Chi,

with my Projet PureIconManager (original asm file has 229404 lines)

it takes 71,5 s to optimize

Final exe file size : 1281 Kb
original exe size : 1740 Kb

The exe compile but it's not Ok, it display only this and nothing more

I use 3 ressource files to compile (.rc file) , version informations and constant #PB_Editor_CompileCount
I don't know if i had to add this files somewhere or not
It should be fine without any addition. Could you please uncheck the version info, compile (IDE) and run? Then remove the 3 .rc files line by line and test again. So we could narrow it down a little bit...

Also nice to see, ~230.000 lines in 72 seconds ^^

...and Thanks for testing!


Top
 Profile  
Reply with quote  
 Post subject: Re: [IDE Tool] pbOptimizer
PostPosted: Sat Aug 17, 2019 3:23 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Apr 25, 2003 5:10 pm
Posts: 491
Location: Doubs - France
chi wrote:
Or are there any hidden characters after the previous procedure? Something unusual?


I use extra characters in the module (alt 255 and so one, i will take a deeper look to my code and remove them and try again).

About PureIconManager, i will try with your recommandation and try again.

_________________
A+
Denis


Top
 Profile  
Reply with quote  
 Post subject: Re: [IDE Tool] pbOptimizer
PostPosted: Sat Aug 17, 2019 4:43 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Apr 25, 2003 5:10 pm
Posts: 491
Location: Doubs - France
For the first, i've turned off "Remove Uncalled Procedures" and now no problem , a little project, no optimization at all.

With PureIconManager, i will try again.

_________________
A+
Denis


Top
 Profile  
Reply with quote  
 Post subject: Re: [IDE Tool] pbOptimizer
PostPosted: Sat Aug 17, 2019 9:52 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat May 05, 2007 5:31 pm
Posts: 621
Location: Linz, Austria
updated to v0.9.8.3


Denis wrote:
For the first, i've turned off "Remove Uncalled Procedures" and now no problem , a little project, no optimization at all.

With PureIconManager, i will try again.
Try the new beta, hope it's fixed now ^^


Top
 Profile  
Reply with quote  
 Post subject: Re: [IDE Tool] pbOptimizer
PostPosted: Wed Aug 21, 2019 9:53 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat May 05, 2007 5:31 pm
Posts: 621
Location: Linz, Austria
updated to v0.9.8.4


Top
 Profile  
Reply with quote  
 Post subject: Re: [IDE Tool] pbOptimizer
PostPosted: Thu Aug 22, 2019 5:35 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Apr 25, 2003 5:10 pm
Posts: 491
Location: Doubs - France
chi,

it's seems to be Ok now.

Tks

_________________
A+
Denis


Top
 Profile  
Reply with quote  
 Post subject: Re: [IDE Tool] pbOptimizer
PostPosted: Thu Aug 22, 2019 12:11 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat May 05, 2007 5:31 pm
Posts: 621
Location: Linz, Austria
updated to v0.9.8.5


Denis wrote:
chi,
it's seems to be Ok now.
Tks
Glad to hear that :wink:. I fixed a lot of other stuff with the help of your project... Much appreciated!


Top
 Profile  
Reply with quote  
 Post subject: Re: [IDE Tool] pbOptimizer
PostPosted: Sun Sep 01, 2019 1:38 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat May 05, 2007 5:31 pm
Posts: 621
Location: Linz, Austria
updated to v0.9.8.6


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 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