Standard way to supply hints to branches

Manu turkeyman at gmail.com
Sat Aug 24 16:41:51 UTC 2024


On Sat, 24 Aug 2024 at 12:06, Nicholas Wilson via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:

> On Friday, 23 August 2024 at 01:47:37 UTC, Manu wrote:
> > I'm working on microcontrollers, and many don't have a branch
> > predictor. They do "static" prediction, that is, they just
> > predict branch-not-taken and it's on you to write your code as
> > such, and that's not always possible. (like the loop condition
> > in a for loop)
>
> Stupid questions: does PGO work on the microcontrollers, and
> have you tried PGO?
>

Maybe... I'd have to source the profile from an alt architecture though...
I wonder if the profile is at a higher level (like in the LLVM realm), or
if it ends up profiling target-local constructs.
I'm not likely to use it anyway. I've always found tooling like that to add
unsatisfactory complexity to the build and deploy environment, especially
when the build environment is already a bit fiddley with ROM packaging and
stuff.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20240825/66af33a9/attachment.htm>


More information about the Digitalmars-d mailing list