Carl-Daniel Hailfinger wrote:
On 29.10.2008 23:36, ron minnich wrote:
Just unshare. I am happy with patches that eliminate shared code entirely.
Unsharing just postpones the problem for another 6 months or so. After that, the new code will fail as well. Besides that, wasting the whole boot block is not exactly my idea of efficiency.
No, unsharing nicely solves the problem.
Anyone thinking of this should be aware that unsharing will be LOTS of fun, especially considering global variables, avoiding garbage on serial and so on.
We don't share in v2, and we have no garbage there.
We will need to compile code with different #ifdef sections based on where it lives and previously shared parts of the code will look more and more like old ROMCC code.
There be dragons.