Recent

Author Topic: ARM optimization  (Read 767 times)

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 348
  • My software never cras....
ARM optimization
« on: September 27, 2022, 11:08:05 pm »
I posted a message in General lamenting that the ARM assembler source does not appear to do some pretty obvious optimization.  Pascal Dragon suggested I post this as a "feature request" and accused @FPK or @Gareth as being possibly interested in such.

The post is: https://forum.lazarus.freepascal.org/index.php/topic,60720.msg455185.html#msg455185

Going forward I'm focused on 32 bit, but eventually 64 bit ARM (Rasp Pi to be specific).

Do I need optimized code?  Probably not.
Do I want optimized code?  Duh!  Better, bigger, faster more. 8-) always!

In all seriousness, there are some little itsy bitsy teeny weeny cases where either sampling two things close together or reducing senescence between them (a 25 Hz measurement that already has 20 - 40ms of delay) being merged with a 1000 Hz measurement with an as yet not determined delay.... would be nice.

(In this manner the fast noisy source being corrected with a faster noisier source will be coherenter.  (that's a word - believe me - we take coherentism seriously here).

Anyway, the code (as I show in the link above) irked me in its lack of taking advantage of:
- constants being re-loaded when not needed
- perhaps bumping the indexing register rather than loading the new address into it (not that I'm sure this is actually faster).
and etc.

Of course my assembler days were all CISC and easy...
« Last Edit: September 27, 2022, 11:10:12 pm by AlanTheBeast »
Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: ARM optimization
« Reply #1 on: September 28, 2022, 09:39:11 am »
I posted a message in General lamenting that the ARM assembler source does not appear to do some pretty obvious optimization.  Pascal Dragon suggested I post this as a "feature request" and accused @FPK or @Gareth as being possibly interested in such.

I meant on the bug tracker  ::)

AlanTheBeast

  • Sr. Member
  • ****
  • Posts: 348
  • My software never cras....
Re: ARM optimization
« Reply #2 on: September 28, 2022, 02:57:07 pm »
I posted a message in General lamenting that the ARM assembler source does not appear to do some pretty obvious optimization.  Pascal Dragon suggested I post this as a "feature request" and accused @FPK or @Gareth as being possibly interested in such.

I meant on the bug tracker  ::)

If there is a means to post a feature/improvement request there, I certainly can't find it.  Can't even find a bug I posted there a month or so ago.  Horrible system (GitLab).
« Last Edit: September 28, 2022, 04:34:59 pm by AlanTheBeast »
Everyone talks about the weather but nobody does anything about it.
..Samuel Clemens.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: ARM optimization
« Reply #3 on: September 29, 2022, 09:08:05 am »
I posted a message in General lamenting that the ARM assembler source does not appear to do some pretty obvious optimization.  Pascal Dragon suggested I post this as a "feature request" and accused @FPK or @Gareth as being possibly interested in such.

I meant on the bug tracker  ::)

If there is a means to post a feature/improvement request there, I certainly can't find it.  Can't even find a bug I posted there a month or so ago.  Horrible system (GitLab).

You need to select the correct sub project with Select project to create issue at the upper right. Or use this. Then in the upper right there'll be a blue button New issue.

 

TinyPortal © 2005-2018