On 2021-11-13 02:32, Phil Smith III wrote:
Thanks to all for the replies. I had clearly forgotten what MVHI did (OK, I
probably never knew-too many new instructions!).



As I said, it's not a problem, but I'm a bit bothered by your comment,
Peter:
So this is not a curious "optimization". It is a natural non-optimization.



Seems like the unoptimized code is oddly crude.

Unoptimised code typically has redundant instructions.
For example, a store instruction to finish an assignment operation
might be followed by a load from the same place in a following
statement.

I suppose compiler authors
must fight the urge to do some basic optimization, but why would it ever be
this bad?

Is this bad? You would not notice the time to execute the
redundant LR instruction.

If you want better code, specify optimisation.


I do like the pseudo-assembler, putting as much info as possible in. It just threw me since I was first wondering "Is there some new assembler syntax
I've missed??"

Reply via email to