esp-rs / esp-template

A minimal esp-hal application template for use with cargo-generate
Apache License 2.0
136 stars 27 forks source link

Add a debug and release profile #150

Closed MabezDev closed 6 months ago

MabezDev commented 6 months ago

The rationale behind opt-level = 's' is that it's a good compromise between code size and code performance. On our chips, there is even a relationship between the two, as our caches are quite small so the smaller the code the more we can fit in the cache for better performance. Users can of course update this for their specific needs.