26 October 2021, 23:12 | #41 |
OctaMED Music Composer
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 666
|
The web version has some strange output, looks like some debug or something?
PHP Code:
|
27 October 2021, 14:53 | #42 |
Lemon. / Core Design
Join Date: Mar 2016
Location: Tier 5
Posts: 1,211
|
that's JSON
|
27 October 2021, 15:56 | #43 |
OctaMED Music Composer
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 666
|
Of course, but looks like a debugging output. Is it supposed to be like this?
|
28 October 2021, 00:33 | #44 |
Registered User
Join Date: Jan 2021
Location: Watford, UK
Posts: 57
|
|
28 October 2021, 09:36 | #45 |
OctaMED Music Composer
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 666
|
it works, thanks! And thanks for the useful tool!
|
28 October 2021, 09:39 | #46 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
|
This is a very cool tool - extremely useful.
It can save me a lot of work for the optimisation phase! In fact, the only possible major improvement I can see would be to be able to select CPU type (000/020/etc) as well |
28 October 2021, 11:28 | #47 | ||
Registered User
Join Date: Jan 2021
Location: Watford, UK
Posts: 57
|
Quote:
From the MC68020UM: Quote:
|
||
28 October 2021, 11:33 | #48 |
OctaMED Music Composer
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 666
|
|
28 October 2021, 17:57 | #49 | |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
|
Quote:
To me, this all sounds tricky, but perhaps you or someone else here has some shortcuts/methods that make it easier. Instruction overlap is even more tricky, as the initial workings of the 68020 regarding this are not properly/fully documented by Motorola or anyone else (there is something in the user manual, but I'm pretty sure those examples are just the tip of the iceberg in terms of what can and can't happen). I'd personally suggest leaving this out altogether, getting a reasonable baseline count is worthwhile on it's own even if it may miss out on the overlap advantages. Anyway, I'd honestly already be very happy with a cycle counter that shows best/cache/worst cases for 68020+. I'd be even happier with one that allows me to specify the worst case cycle speed penalty (as this is fully dependent on memory speed and A1200 chip memory is quite slow) |
|
28 October 2021, 21:23 | #50 |
German Translator
Join Date: Aug 2018
Location: Drübeck / Germany
Age: 49
Posts: 183
|
very good tool, but if I want find an optimization for a mulu, muls
I get a range of cycles. It could be optimized. (thats only a suggestion for improvement) 70 is max time. Motorola documentation only list max time for any instruction that has variable timing. Code: MULS, MULU — The multiply algorithm requires 38+2n clocks where n is defined as: MULU: n = the number of ones in the <ea> MULS: n=concatenate the <ea> with a zero as the LSB; n is the resultant number of 10 or 01 patterns in the 17-bit source; i.e., worst case happens when the source is $5555. Code:
mul: cycles n move.l #0,d0 12(3/0) move.l #0,d1 12(3/0) mulu d0,d1 ; 38 0 38(1/0) 70(1/0) move.l #1,d0 move.l #0,d1 mulu d0,d1 ; 40 1 move.l #2,d0 move.l #0,d1 mulu d0,d1 ; 40 10 move.l #3,d0 move.l #0,d1 mulu d0,d1 ; 42 11 248(28/0) – 376(28/0) |
29 October 2021, 01:45 | #51 |
Registered User
Join Date: Jan 2021
Location: Watford, UK
Posts: 57
|
Yeah it does give exact cycle counts using the correct algorithm when multiplying by immediate values. What it can't currently do is know what value is in a given register like in your example. It would essentially have to execute the code to know this. For now it gives a range in this case.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
horiz. size & vert. size greyed out in some configurations | honx | support.WinUAE | 3 | 15 August 2020 21:14 |
ASM: Asm-ONE or AsmPro - how to set a Hello amiga coders, I hope it is ok to hijack ? | Fireball | Coders. Asm / Hardware | 2 | 24 April 2020 21:16 |
Hex2 - my little calculator | ALB42 | News | 0 | 11 November 2018 11:46 |
Amiga calculator | cla | Coders. Releases | 35 | 30 December 2017 15:00 |
Speccy on Ti-89 calculator | Fred the Fop | Retrogaming General Discussion | 3 | 27 January 2007 02:30 |
|
|