{"action":"opened","issue":{"number":19,"created_at":"2011-10-24T04:15:34Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"The Java byte code is stored in Flash, but when the VM starts it is copied into SRAM now, and executed from there. One of the reasons for this is that on the Atmega we can directly access SRAM, but we need to use special instructions to access the Flash memory, which takes more time. Of course the advantage of executing code from Flash is that we have a lot more of it. SRAM is a very limited resource.\r\nWe should have the option to choose between executing from SRAM or from Flash. Right now there seems to be an option to do this, but it doesn't work.\r\nThere is also an option to execute from EEPROM, but I don't think we will need this. This option can be removed, and the whole code should be refactored to be less confusing than it is now.\r\n\r\nAt the moment the source from which code is executed is decided at compile time using #define's. This is fine for now, but as a future optimization it would be nice to be able to do change this at run time, so we may use the faste SRAM option if we have enough space, or fall back to executing from Flash if we have insufficient SRAM.","comments":0,"title":"Execute code from Flash instead of SRAM","updated_at":"2011-10-24T04:15:34Z","url":"https://api.github.com/repos/nielsreijers/NanoKong/issues/19","id":2030149,"assignee":null,"milestone":{"number":2,"created_at":"2011-10-24T03:51:19Z","due_on":null,"title":"Future","creator":{"gravatar_id":"5eb6238b140c899b180fc90da9ba775a","avatar_url":"https://secure.gravatar.com/avatar/5eb6238b140c899b180fc90da9ba775a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/nielsreijers","id":1070367,"login":"nielsreijers"},"url":"https://api.github.com/repos/nielsreijers/NanoKong/milestones/2","open_issues":5,"closed_issues":0,"description":null,"state":"open"},"closed_at":null,"user":{"gravatar_id":"5eb6238b140c899b180fc90da9ba775a","avatar_url":"https://secure.gravatar.com/avatar/5eb6238b140c899b180fc90da9ba775a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/nielsreijers","id":1070367,"login":"nielsreijers"},"html_url":"https://github.com/nielsreijers/NanoKong/issues/19","labels":[],"state":"open"},"legacy":{"number":19,"action":"opened","issue":2030149}}