On 11/27/09 12:24 AM, Carl-Daniel Hailfinger wrote:
Well, with some careful changes, I think flashrom can get by with maybe 2 kB of RAM or CAR. I know what to change, but I can't make 100% correct RAM requirement estimates. And we'll need boatloads of const keywords. Patches welcome, especially for the const stuff. The biggest writable object is the flashchip array. We can make it const, but then we have to copy each chip to a temporary variable during probe. Not really ideal. Hm.
Why the copy?
Can't we instead have a writable struct flashchip_instance and let that contain a pointer to the current readonly struct flashchip member?
Stefan