Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need source code examples #6

Open
pfalcon opened this issue Nov 22, 2015 · 3 comments
Open

Need source code examples #6

pfalcon opened this issue Nov 22, 2015 · 3 comments

Comments

@pfalcon
Copy link

pfalcon commented Nov 22, 2015

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!

@graemedouglas
Copy link
Owner

Thanks for the suggestion,

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

@pfalcon
Copy link
Author

pfalcon commented Nov 23, 2015

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.

@jaseg
Copy link

jaseg commented Nov 24, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants