I figured out how to hard set compiler optimization. What do you think? #7842
XanCraft21
started this conversation in
General
Replies: 2 comments 3 replies
-
Opinion: code space is already at a premium on this platform. I am curious though.
|
Beta Was this translation helpful? Give feedback.
3 replies
-
There is no setting best for all. "-Os" is a good standard choice. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, i wanted to share something i did with the esp32 drivers. I found a very old article on the official arduino forum after a google search telling how to force set compiler optimization on avr boards, can be found in platform .txt. I applied this same method to the esp32 drivers and got it working. Although my code takes slightly more program space, it runs better now. This small hack can be done on any boards package that does not have the settings in the tools menu but can be changed in the text file.
I wanted to ask for other people’s opinions on doing this optimization hack. What do you think? Is it worth sacrificing code space for more speed? Will it be good to use with commercial products?
Beta Was this translation helpful? Give feedback.
All reactions