Compile 16-bit literals for ESP32S3
Posted: Sun Sep 14, 2025 6:55 pm
Hi, I have a function which implements a decision tree with if-else statements involving unsigned 16-bit variables and constants.
However, when I disassemble the compiled file, each 16-bit constant seems to occupy 32 bits in ROM.
Is my understanding correct (spending 32 bits for 16-bit constants)?
Is there a way to use only 16 bits for each literal to save space?
Thanks in advance.
However, when I disassemble the compiled file, each 16-bit constant seems to occupy 32 bits in ROM.
Is my understanding correct (spending 32 bits for 16-bit constants)?
Is there a way to use only 16 bits for each literal to save space?
Thanks in advance.