<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello.<div class=""><br class=""></div><div class="">I was wondering if it is possible to implement placing RO variables within progmem sections. For now it is possible to just use [[gnu::progmem]] and read variables using assembly. My proposal is to:</div><div class=""><ul class="MailOutline"><li class="">Use those variables as any other, without creating assembly.</li><li class="">While reading them, compiler has all necessary knowledge where the variable is and can generate assembly</li></ul><div class=""><br class=""></div></div><div class="">Possible future improvements:</div><div class=""><ul class="MailOutline"><li class="">Automatic placement of variables in __flash sections.</li><li class="">Take care of reading across 64KB boundary</li><li class="">If a variable is const, it can be places automatically in some __flash section</li></ul><div class=""><br class=""></div></div><div class="">AVR devices are old, but still widely used. This feature could improve code quality even further. </div><div class=""><br class=""></div></body></html>