[llvm-dev] Built in progmem variables in AVR
Stephen Checkoway via llvm-dev
llvm-dev at lists.llvm.org
Sun Nov 24 22:05:06 PST 2019
> On Nov 25, 2019, at 00:49, Dylan McKay via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> • I'm a big fan of automatic placement of const/RO variables in flash memory, but there hasn't been very much critical debate of it, which makes me hesitant to build it into LLVM proper. As far as my reasoning has gone, I think we should be able to add a pass to do this safely, but whether it should be on by default needs more debate IMO
As I recall, reading a byte from program memory requires an extra cycle. But maybe if you're cycle counting, you should just be programming in assembly.
More information about the llvm-dev