Will be fixed in the next beta... Please us CamelCase #PB_Editor_CompileCount, #PB_Editor_BuildCount and #PB_Editor_CreateExecutable until then.Cyllceaux wrote:This is some lines of my code.Code: Select all
LoggerInfo("Version - 0.1."+Str(#pb_editor_buildcount)+"."+Str(#pb_editor_compilecount))
#pb_editor_buildcount
#pb_editor_compilecount
are PB constants when you activate it.
[IDE Tool] pbOptimizer
Re: [IDE Tool] pbOptimizer
Et cetera is my worst enemy
Re: [IDE Tool] pbOptimizer
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
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
A+
Denis
Denis
Re: [IDE Tool] pbOptimizer
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
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
A+
Denis
Denis
Re: [IDE Tool] pbOptimizer
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 .asmDenis 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
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?
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...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
Also nice to see, ~230.000 lines in 72 seconds ^^
...and Thanks for testing!
Et cetera is my worst enemy
Re: [IDE Tool] pbOptimizer
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).chi wrote:Or are there any hidden characters after the previous procedure? Something unusual?
About PureIconManager, i will try with your recommandation and try again.
A+
Denis
Denis
Re: [IDE Tool] pbOptimizer
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.
With PureIconManager, i will try again.
A+
Denis
Denis
Re: [IDE Tool] pbOptimizer
updated to v0.9.8.3
Try the new beta, hope it's fixed now ^^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.
Et cetera is my worst enemy
Re: [IDE Tool] pbOptimizer
updated to v0.9.8.5
Glad to hear that . I fixed a lot of other stuff with the help of your project... Much appreciated!Denis wrote:chi,
it's seems to be Ok now.
Tks
Et cetera is my worst enemy
Re: [IDE Tool] pbOptimizer
Code: Select all
--- 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
Code: Select all
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
...
All of these entries are set to #True
Re: [IDE Tool] pbOptimizer
[/size]What?camille wrote: Part of the source code:Code: Select all
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 ...
Et cetera is my worst enemy
Re: [IDE Tool] pbOptimizer
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
With line 3 "#PB_Compiler_IsIncludeFile = #True" which pbOptimizer is complaining about
Re: [IDE Tool] pbOptimizer
#PB_Compiler_IsIncludeFile is a built-in, reserved constant - I don't think that explicitly modifying its value is supported.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