LittleD
LittleD copied to clipboard
Need source code examples
Currently it's rather unclear how to use library and what you get in results. Building testsuite produces executable of 500K. That's twice as much as sqlite, and leads to obvious question "why waste time on this?" There're lot of database engines, many of which are better documented/known than this. This one tries to promise high level of unbloatedness, so please make it easy for people to behold that (by executing "make example" or otherwise running simple command from README), and include code size figures for a well-known architecture to README (assuming you're interested in people using and contributing to your project, which is hopefully true if it's put on github). Thanks!
Thanks for the suggestion,
You are not wrong about example code. On device we are seeing approximately 60K all compiled in.
Well, I now see that https://github.com/graemedouglas/LittleD/blob/master/src/utils/gen_test_relations.c can be treated as such kind of example, it compiles to ~80K on x86_64. A dedicated, shorter, more commented example would be still better of course.
It actually compiles to about 5K, try this by replacing main() in that file with an empty function and comparing both outputs. The rest of the elf file is the lib itself and the stdlib.