{"action":"created","issue":{"url":"https://api.github.com/repos/NETMF/llilum/issues/63","labels_url":"https://api.github.com/repos/NETMF/llilum/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/NETMF/llilum/issues/63/comments","events_url":"https://api.github.com/repos/NETMF/llilum/issues/63/events","html_url":"https://github.com/NETMF/llilum/issues/63","id":116649741,"number":63,"title":"How much heap memory is required?","user":{"login":"cw2","id":10730406,"avatar_url":"https://avatars.githubusercontent.com/u/10730406?v=3","gravatar_id":"","url":"https://api.github.com/users/cw2","html_url":"https://github.com/cw2","followers_url":"https://api.github.com/users/cw2/followers","following_url":"https://api.github.com/users/cw2/following{/other_user}","gists_url":"https://api.github.com/users/cw2/gists{/gist_id}","starred_url":"https://api.github.com/users/cw2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cw2/subscriptions","organizations_url":"https://api.github.com/users/cw2/orgs","repos_url":"https://api.github.com/users/cw2/repos","events_url":"https://api.github.com/users/cw2/events{/privacy}","received_events_url":"https://api.github.com/users/cw2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-12T21:56:36Z","updated_at":"2015-11-13T02:07:17Z","closed_at":null,"body":"Would it be possible to determine how much heap memory does the current runtime require? I am working on a BSP for STM32F103 that has 20 KB RAM (0x5000) and I am encountering some issues that could be explained by not having enough free memory (configured heap size to 0x4700, ~= 0x20005000 - __HeapLimit at 0x200008a0 in the .map file).\r\n\r\nBTW, I must say the level of managed to native translation is impressive :bow:"},"comment":{"url":"https://api.github.com/repos/NETMF/llilum/issues/comments/156296721","html_url":"https://github.com/NETMF/llilum/issues/63#issuecomment-156296721","issue_url":"https://api.github.com/repos/NETMF/llilum/issues/63","id":156296721,"user":{"login":"lt72","id":8418852,"avatar_url":"https://avatars.githubusercontent.com/u/8418852?v=3","gravatar_id":"","url":"https://api.github.com/users/lt72","html_url":"https://github.com/lt72","followers_url":"https://api.github.com/users/lt72/followers","following_url":"https://api.github.com/users/lt72/following{/other_user}","gists_url":"https://api.github.com/users/lt72/gists{/gist_id}","starred_url":"https://api.github.com/users/lt72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lt72/subscriptions","organizations_url":"https://api.github.com/users/lt72/orgs","repos_url":"https://api.github.com/users/lt72/repos","events_url":"https://api.github.com/users/lt72/events{/privacy}","received_events_url":"https://api.github.com/users/lt72/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T02:07:17Z","updated_at":"2015-11-13T02:07:17Z","body":"Hi cw2,\r\nall the memory goes to the threads stack, and since GC is still disabled, you can never get it back.\r\nWe are working to limit the number of threads to the bare minimum right now, and we think we can get away with\r\n- the main thread for the app => 256 bytes\r\n- an idle thread with a tiny stack =>  2KB\r\n- one thread to dispatch interrupts and timers => 2KB\r\n- any thread you create => 2KB each\r\n\r\n"}}