Closed dzantemir closed 3 months ago
Likely related to the ___str_0
const (these are generated by full asserts) not getting loaded via ldw
but push
instructions. Since the dce tool only checks for load instructions to evaluate if a constant is used, it falsely optimizes it away.
A fix for this is currently in works where all memory read instructions are tested for constants, not just ld/ldw/ldf
. I'll publish it today or tomorrow.
This will also hopefully also improve backwards- and upwards compatibility for different SDCC versions
sdcc 4.4.1