Using strip solved the problem, object file size is down to 114KB. Thank you very much.
Károly > The sizes that I mentioned (315KB vs 205KB) are for the final .dll and > .so size. You might try linking your object files into a lib to see > how that affects size. You could also try running the "strip" > command on the object files to ensure all the debugging symbols are > removed. > > Any OMIT options you compile your application with must also be used > to compile the mkkeywordhash tool (used to generate keywordhash.h) and > passed to the lemon parser (used to generate parse.c). They must > also be passed to gcc to compile sqlite3.c. > > Note how the define for SQLITE_OMIT_LOAD_EXTENSION is used below: > > gcc -o mkkeywordhash.exe -DSQLITE_OMIT_LOAD_EXTENSION=1 mkkeywordhash.c > > ./lemon.exe -DSQLITE_OMIT_LOAD_EXTENSION=1 parse.y > > gcc -Os -DSQLITE_OS_WIN=1 -DNDEBUG -DSQLITE_OMIT_LOAD_EXTENSION=1 -c > sqlite3.c > > > Another thing to check is that NDEBUG is defined. SQLite makes > significant use of asserts for debugging and testing, and defining > NDEBUG will leave this code out. > > HTH. > -Shane _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users