Got an idea for enhancing PureBasic? New command(s) you'd like to see?
-
coma
- Enthusiast

- Posts: 164
- Joined: Fri Aug 15, 2003 3:46 am
- Location: Canada
Post
by coma »
if was an example to show how things may be "curious".
sometimes, the empty loop take more time than the other one.
-
Psychophanta
- Always Here

- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
-
Contact:
Post
by Psychophanta »
coma:
result for your last question was: 156 / 109 , other times 140 / 110 ...
Freak:
Yes, i know, but i prefer real ASM better than inlined

-
Dare2
- Moderator

- Posts: 3321
- Joined: Sat Dec 27, 2003 3:55 am
- Location: Great Southern Land
Post
by Dare2 »
hehe. I had the empty loop come 2nd a few times as well.
Deduction - Bloat your code! It may run faster!
-
techjunkie
- Addict

- Posts: 1126
- Joined: Wed Oct 15, 2003 12:40 am
- Location: Sweden
-
Contact:
Post
by techjunkie »
Psychophanta wrote:result is: 110 / 94 / 125 / 46
The result on my Dell Dimension 8200 (P4 2GHz) is,
203 / 141 / 1140 / 32
Why is the t2 example so slow? Hmmmm...

(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
-
Psychophanta
- Always Here

- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
-
Contact:
Post
by Psychophanta »
techjunkie wrote
Why is the t2 example so slow? Hmmmm...
I don't know, but it seem one more of the Intel incoherences; now with XCHG instruction, and AMD seem to be less incoherent with this instruction.
Have you tried Intel i386 LOOP asm instruction? it is a shame

-
coma
- Enthusiast

- Posts: 164
- Joined: Fri Aug 15, 2003 3:46 am
- Location: Canada
Post
by coma »
XCHG eax,ebx is very fast.
it's "XCHG eax,mem" that is slow.
-
Psychophanta
- Always Here

- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
-
Contact:
Post
by Psychophanta »
XCHG eax,ebx is very fast.
it's "XCHG eax,mem" that is slow.
Which demonstrates still more incoherence

-
Trond
- Always Here

- Posts: 7446
- Joined: Mon Sep 22, 2003 6:45 pm
- Location: Norway
Post
by Trond »
XHCG with memory operand always asserts a bus lock to make the instruction atomic. That's why it's slow.
Since we have the new structure assignment, I request this feature to work for structured types as well.
-
talisman
- Enthusiast

- Posts: 231
- Joined: Sat May 23, 2009 9:33 am
Post
by talisman »
Trond wrote:XHCG with memory operand always asserts a bus lock to make the instruction atomic. That's why it's slow.
Since we have the new structure assignment, I request this feature to work for structured types as well.
...and your reply came in just 5 years slow

-
DarkDragon
- Addict

- Posts: 2344
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
-
Contact:
Post
by DarkDragon »
talisman wrote:Trond wrote:XHCG with memory operand always asserts a bus lock to make the instruction atomic. That's why it's slow.
Since we have the new structure assignment, I request this feature to work for structured types as well.
...and your reply came in just 5 years slow

He wants it for structured types

. So thats the right topic.
bye,
Daniel
-
John Puccio
- User

- Posts: 26
- Joined: Fri Jun 12, 2009 6:56 am
- Location: My Keyboard
Post
by John Puccio »
Trond wrote:Since we have the new structure assignment, I request this feature to work for structured types as well.
+1 @Trond's request. I think that would be really neat!
-
blueznl
- PureBasic Expert

- Posts: 6166
- Joined: Sat May 17, 2003 11:31 am
-
Contact:
Post
by blueznl »
Me too!
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide
right here... )