Page 4 of 4

Posted: Sat 03 Jun, 2006 5:08 pm
by Jim e
CrunchyOS Manual wrote: Writeback for archived programs is implemented by creating and loading small patch files, and archiving those instead of the complete program. This takes up more memory, but the calc will perform garbage collects far less often.
If you read it carefully it does not run from the archive, it simply uses patch files, differential backups. Since we know the majority of the file will remain the same its possible to only save the difference from the original. Either by creating a file with offset, run, and data for every change or by performing a difference on all bytes then compressing the outcome (In a worse case scenario either of these could result in the patch being larger than the original, but that's not likely.)

This does not mean running from the archive. Which, excluding the programs that get attached to crunchyOS, isn't possible due to a hardware restriction. You can't execute an archived program. It must be copied to the ram.

Posted: Sat 03 Jun, 2006 6:08 pm
by Dwedit
Actually you could execute code directly from archive, if your code is designed to use no absolute addresses. The big problem with that is that there is no guarantee that the program won't cross flashrom pages, so your program might suddenly be split up over two rom pages.

Posted: Sat 03 Jun, 2006 7:31 pm
by Jim e
By hardware restriction I meant excution protection, only app pages and OS pages can execute code. Unless you want to go the hack way.
Port 5
Port 23