LittleD icon indicating copy to clipboard operation
LittleD copied to clipboard

Need source code examples

Open pfalcon opened this issue 8 years ago • 3 comments

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!

pfalcon avatar Nov 22 '15 12:11 pfalcon

Thanks for the suggestion,

You are not wrong about example code. On device we are seeing approximately 60K all compiled in.

graemedouglas avatar Nov 23 '15 07:11 graemedouglas

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.

pfalcon avatar Nov 23 '15 17:11 pfalcon

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.

jaseg avatar Nov 24 '15 21:11 jaseg