I am looking for a read-only SD/FAT library that produces the smallest possible code. I need read only and am able to sacrifice some features for code size such as single folder, etc...
Before I start on heavily modifying an existing library, I wondered what others may have stumbled on. Also, is there a configurable library where I can pick and choose features I need? Something like that would be a one-size fits all for me!
Another option is Fat16. It is a minimal read/write library. The read example takes about 8 KB total flash and includes Serial so the SD/FAT code is under 6 KB.
If your mods are to reduce code size, be sure to test that your mods actually work.
Many people rip things out of my libraries thinking their app will be smaller and then find little memory has been saved.
I try to implement libraries so only code for used features is linked.
The big problem is open(). Traditionally open is for read, write and file creation. This causes the minimal size for read to be large since a lot of the write functionality is required for file creation.
I considered a special openForRead() in SdFat but there have not been many requests for a small read only size.