Analyzer 2.0b for V4

Developed or developing a new product in PureBasic? Tell the world about it.
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

va!n wrote:@remi_meier:
10 points for your great tool! I like your work and this tool! :D
Its cool to see you are inspired by the video i send you 8)
Do you mean the one with the hot babe with the big boobs? :lol:

Anyway, remi_meier, thanks for this tool! Now Isee that I made 2 senseless optimizations. :o
thefool
Always Here
Always Here
Posts: 5881
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

@rob6523

First of all, he SAID it was updated for 4.0!!!
Second; Why don't you look in the zip file the source is there and have always been!
rob6523
User
User
Posts: 59
Joined: Sat Sep 25, 2004 2:02 pm
Location: Netherlands (Ophemert)
Contact:

Post by rob6523 »

@thefool

If you're talking about ANALYZER, yes, correct.

But I was talking about OPTIMIZER, a different tool from remi_meier, which doesn't include the sources and which doesn't run with PB4

Rob.
thefool
Always Here
Always Here
Posts: 5881
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

whoops :oops:
sorry i didn't read your post good enough..
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Post by remi_meier »

Actually the source seems to be included as "Optimizer.pb" in the zip of
the purearea.net showcase :?:

But I don't see a really big need for it anymore in PB4. The cutting-out
unneeded procedures wont work and wont be needed. The optimization
with the %-operator is included in PB4. I think the most interesting feature
is the faster multiplication of constant values.

greetz
Remi
Athlon64 3700+, 1024MB Ram, Radeon X1600
rob6523
User
User
Posts: 59
Joined: Sat Sep 25, 2004 2:02 pm
Location: Netherlands (Ophemert)
Contact:

Post by rob6523 »

@remi_meier

Unfortunately optimizer.pb isn't included in the purearea.net showcase download.

Would you be willing to release it to us?

Thanks,

Rob.
tomijan
Enthusiast
Enthusiast
Posts: 107
Joined: Sun Dec 11, 2005 1:32 pm

Post by tomijan »

remi_meier wrote: The optimization
with the %-operator is included in PB4
what you mean about this? is that modulo operator?
tom
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Post by remi_meier »

@rob6523
I don't know which link you used, but I see "Optimizer.pb" in the zip from
http://mypage.bluewin.ch/remimeier/zip/Optimierer.zip

@tomijan
Yep, modulo. Optimization of expressions like "a % 32", all "a % 2^n"
should be optimized by PB now.
Athlon64 3700+, 1024MB Ram, Radeon X1600
rob6523
User
User
Posts: 59
Joined: Sat Sep 25, 2004 2:02 pm
Location: Netherlands (Ophemert)
Contact:

Post by rob6523 »

@remi_meier

Optimizer.pb wasn't in the CodeArchiv_2.0-Preview.zip I today downloaded.

Thanks for the link!
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Post by newbie »

Very usefull tool, I was looking at something to check where was my bottlenecks in my code, and your tool is amazing, thank you very much for sharing your work :D
- Registered PB user -

Using PB 4.00
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Amen brother! Thousand thanks Remi !
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Num3
PureBasic Expert
PureBasic Expert
Posts: 2810
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Analyser just does nothing on my side... Just freezes the code until i kill it :(

Optimizer on the other hand works well!
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Post by remi_meier »

Thx @all!

Num3: Is there some test code you could send me? Anyway, I will take a look
again at the code because it was written in the early days of PB4 and now
I know the features a bit better.
Athlon64 3700+, 1024MB Ram, Radeon X1600
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

remi_meier, thanks for this! Very nice. :D

JFYI I've noticed there seems to be an issue if the source file being analysed is in UTF-8. Running Analyzer with a UTF-8 source, I get a PureBasic dialog stating "Line 178: Syntax error!". Your Analyzer "started" dialog is never seen.

The program I was tested as the simplest example to show the problem:

Debug "hello"

reverting the source code format to 'plain text' made this dialog go away. It also happens with longer code.
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Post by remi_meier »

Jep, that was it. Didn't test it because I have not too much time at the
moment, but this should be fixed now!
Thanks for the information! It should read now he BOM header and write
back in UTF-8, ASCII or Unicode, like the file to compile.

http://mypage.bluewin.ch/remimeier/zip/analyzer.zip
Athlon64 3700+, 1024MB Ram, Radeon X1600
Post Reply