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
Choosing flag in bottleneck function: bool or int?
-
- Posts: 75
- Joined: Fri Dec 04, 2020 9:56 pm
Re: Choosing flag in bottleneck function: bool or int?
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?
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?
-
- Posts: 75
- Joined: Fri Dec 04, 2020 9:56 pm
Re: Choosing flag in bottleneck function: bool or int?
Coincidentally, how to get ESP32 binary disassembly was one of my first questions in this thread.
Who is online
Users browsing this forum: Bing [Bot] and 205 guests