<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 24 Aug 2024 at 12:06, Nicholas Wilson via Digitalmars-d <<a href="mailto:digitalmars-d@puremagic.com">digitalmars-d@puremagic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Friday, 23 August 2024 at 01:47:37 UTC, Manu wrote:<br>
> I'm working on microcontrollers, and many don't have a branch <br>
> predictor. They do "static" prediction, that is, they just <br>
> predict branch-not-taken and it's on you to write your code as <br>
> such, and that's not always possible. (like the loop condition <br>
> in a for loop)<br>
<br>
Stupid questions: does PGO work on the microcontrollers, and <br>
have you tried PGO?<br></blockquote><div><br></div><div>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.</div><div>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.<br></div></div></div>