It is currently Tue Oct 27, 2020 4:22 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3  Next
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: 767
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.

_________________
Et cetera is my worst enemy


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: 549
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: 549
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: 767
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!

_________________
Et cetera is my worst enemy


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: 549
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: 549
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: 767
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 ^^

_________________
Et cetera is my worst enemy


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: 767
Location: Linz, Austria
updated to v0.9.8.4

_________________
Et cetera is my worst enemy


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: 549
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: 767
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!

_________________
Et cetera is my worst enemy


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: 767
Location: Linz, Austria
updated to v0.9.8.6

_________________
Et cetera is my worst enemy


Top
 Profile  
Reply with quote  
 Post subject: Re: [IDE Tool] pbOptimizer
PostPosted: Tue Jul 14, 2020 9:22 pm 
Offline
User
User

Joined: Tue Nov 19, 2019 12:52 pm
Posts: 48
Code:
 ---  ASM  -------------------------------------------------------------------------------------------------------------------------

   
   ******************************************
   PureBasic 5.72 (Windows - x64)
   ******************************************
   
   Compiling D:\Users\Highend\Development\PureBasic\Large text file creator\Large text file creator_pbOpt.pb
   Loading external libraries...
   Starting compilation...
   Error: Line 3 - Constant already declared with a different value: #PB_Compiler_IsIncludeFile.


   Optimizing...


   Time: 0.2s


Part of the source code:
Code:
EnableExplicit
#PB_Compiler_IsMainFile = #True
#PB_Compiler_IsIncludeFile = #True
DeclareModule Consts
#SQ = Chr(39)
#DQ = #DOUBLEQUOTE$
#DCRLF = #CRLF$ + #CRLF$
#EOL = #CRLF$
#OS_Sep = "\"
#HWND_MESSAGE = -3
Enumeration ExitCodes 0 Step -1
#Ok
#Error_Undefined
#Error_Already_Running
#Error_AutoElevation
#Error_InsufficientArgs
EndEnumeration
EndDeclareModule
Module Consts
EndModule
UseModule Consts
#PB_Compiler_IsIncludeFile = #True
DeclareModule Structs
Structure _OWN
...


Each include module has this statement that pbOptimizer doesn't like.
All of these entries are set to #True


Top
 Profile  
Reply with quote  
 Post subject: Re: [IDE Tool] pbOptimizer
PostPosted: Wed Jul 15, 2020 12:39 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat May 05, 2007 5:31 pm
Posts: 767
Location: Linz, Austria
camille wrote:
Part of the source code:
Code:
EnableExplicit
#PB_Compiler_IsMainFile = #True
#PB_Compiler_IsIncludeFile = #True
DeclareModule Consts
#SQ = Chr(39)
#DQ = #DOUBLEQUOTE$
#DCRLF = #CRLF$ + #CRLF$
#EOL = #CRLF$
#OS_Sep = "\"
#HWND_MESSAGE = -3
Enumeration ExitCodes 0 Step -1
#Ok
#Error_Undefined
#Error_Already_Running
#Error_AutoElevation
#Error_InsufficientArgs
EndEnumeration
EndDeclareModule
Module Consts
EndModule
UseModule Consts
#PB_Compiler_IsIncludeFile = #True
DeclareModule Structs
Structure _OWN
...
What?

_________________
Et cetera is my worst enemy


Top
 Profile  
Reply with quote  
 Post subject: Re: [IDE Tool] pbOptimizer
PostPosted: Wed Jul 15, 2020 7:00 am 
Offline
User
User

Joined: Tue Nov 19, 2019 12:52 pm
Posts: 48
That's the beginning of the "Large text file creator_pbOpt.pb" file.

With line 3 "#PB_Compiler_IsIncludeFile = #True" which pbOptimizer is complaining about


Top
 Profile  
Reply with quote  
 Post subject: Re: [IDE Tool] pbOptimizer
PostPosted: Wed Jul 15, 2020 7:23 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Nov 09, 2011 8:58 am
Posts: 613
camille wrote:
That's the beginning of the "Large text file creator_pbOpt.pb" file.

With line 3 "#PB_Compiler_IsIncludeFile = #True" which pbOptimizer is complaining about


#PB_Compiler_IsIncludeFile is a built-in, reserved constant - I don't think that explicitly modifying its value is supported.

_________________
My new project: A simple HTML/CSS UI engine for PB desktop apps
viewtopic.php?f=7&t=74582


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

All times are UTC + 1 hour


Who is online

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