{"action":"created","issue":{"url":"https://api.github.com/repos/SuperHouse/esp-open-rtos/issues/161","repository_url":"https://api.github.com/repos/SuperHouse/esp-open-rtos","labels_url":"https://api.github.com/repos/SuperHouse/esp-open-rtos/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/SuperHouse/esp-open-rtos/issues/161/comments","events_url":"https://api.github.com/repos/SuperHouse/esp-open-rtos/issues/161/events","html_url":"https://github.com/SuperHouse/esp-open-rtos/issues/161","id":164709030,"number":161,"title":"const data in RAM","user":{"login":"SaimenSays","id":10372066,"avatar_url":"https://avatars.githubusercontent.com/u/10372066?v=3","gravatar_id":"","url":"https://api.github.com/users/SaimenSays","html_url":"https://github.com/SaimenSays","followers_url":"https://api.github.com/users/SaimenSays/followers","following_url":"https://api.github.com/users/SaimenSays/following{/other_user}","gists_url":"https://api.github.com/users/SaimenSays/gists{/gist_id}","starred_url":"https://api.github.com/users/SaimenSays/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaimenSays/subscriptions","organizations_url":"https://api.github.com/users/SaimenSays/orgs","repos_url":"https://api.github.com/users/SaimenSays/repos","events_url":"https://api.github.com/users/SaimenSays/events{/privacy}","received_events_url":"https://api.github.com/users/SaimenSays/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-10T10:15:42Z","updated_at":"2016-07-10T23:32:15Z","closed_at":null,"body":"In my case I've discovered that all `const` data is located to RAM per default. Due to RAM limitations on ESP I think it is more usefull to leave them in FLASH. Also if you are using external external repos it is nearly impossible to add `ICACHE_RODATA_ATTR` to every struct or string.\r\n\r\nCopied to and unnecessary eating up RAM:\r\n`const char test[] = \"---test---\";`\r\n`printf(\"---test---\")`\r\n\r\nStayes in FLASH, not decreasing heap:\r\n`const char test[] ICACHE_RODATA_ATTR= \"---test---\";`\r\n\r\nWhy does a `const` is not residing in FLASH by default?\r\nIs there maybe anycompiler option to do so?"},"comment":{"url":"https://api.github.com/repos/SuperHouse/esp-open-rtos/issues/comments/231617561","html_url":"https://github.com/SuperHouse/esp-open-rtos/issues/161#issuecomment-231617561","issue_url":"https://api.github.com/repos/SuperHouse/esp-open-rtos/issues/161","id":231617561,"user":{"login":"projectgus","id":205573,"avatar_url":"https://avatars.githubusercontent.com/u/205573?v=3","gravatar_id":"","url":"https://api.github.com/users/projectgus","html_url":"https://github.com/projectgus","followers_url":"https://api.github.com/users/projectgus/followers","following_url":"https://api.github.com/users/projectgus/following{/other_user}","gists_url":"https://api.github.com/users/projectgus/gists{/gist_id}","starred_url":"https://api.github.com/users/projectgus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectgus/subscriptions","organizations_url":"https://api.github.com/users/projectgus/orgs","repos_url":"https://api.github.com/users/projectgus/repos","events_url":"https://api.github.com/users/projectgus/events{/privacy}","received_events_url":"https://api.github.com/users/projectgus/received_events","type":"User","site_admin":false},"created_at":"2016-07-10T23:32:15Z","updated_at":"2016-07-10T23:32:15Z","body":"Something I've meant to do for a while is document the differences between esp-open-rtos and the official SDK: https://github.com/SuperHouse/esp-open-rtos/wiki/ESP-SDK-Differences"}}
{"actor":{"display_login":"projectgus"}}