mirror of
https://github.com/imjasonh/nescript
synced 2026-07-09 09:18:01 +00:00
Emits W0101 on \`a * b\`, \`a / b\`, \`a % b\` expressions where both operands are non-constant (neither is an integer literal). These lower to calls into the software multiply/divide routines and can blow the 6502 cycle budget. Multiplying by a constant is still silent because the optimizer can strength-reduce power-of-2 cases to shifts and small factors to add chains. https://claude.ai/code/session_01W6eQFStA66EuMKHUFo2rx3 |
||
|---|---|---|
| .. | ||
| analyzer | ||
| asm | ||
| assets | ||
| codegen | ||
| debug | ||
| errors | ||
| ir | ||
| lexer | ||
| linker | ||
| optimizer | ||
| parser | ||
| rom | ||
| runtime | ||
| lib.rs | ||
| main.rs | ||