Page 1 of 1
Choosing flag in bottleneck function: bool or int?
Posted: Sat Nov 27, 2021 5:06 pm
by RichPiano
I have very hot code that I want to optimize as far as possible. If I have the choice between bool or int flags, what should I choose when coding with C++ for the xtensa-compiler?
https://stackoverflow.com/questions/576 ... l-or-ifint
Re: Choosing flag in bottleneck function: bool or int?
Posted: Sun Nov 28, 2021 2:17 pm
by Victoria Nope
Not an answer, but a note; you may get disassembly by yourself. Because so long you really want the best optimization for your code, you should consult generated assembler code anyway.
Re: Choosing flag in bottleneck function: bool or int?
Posted: Mon Dec 13, 2021 6:54 am
by RichPiano
Thanks for your hint. I'm a bit of a noob in looking at assembler code. How do I do that for the xtensa compiler? I know I can use godbolt for all desktop compilers, but for the extensa one I would have to look into the obj files?
Re: Choosing flag in bottleneck function: bool or int?
Posted: Mon Dec 13, 2021 11:41 am
by Victoria Nope
Coincidentally, how to get ESP32 binary disassembly was one of my first questions in
this thread.