Menu

What is Amalgamation.

What is Amalgamation.


  • The official code distribution is known as the amalgamation. The amalgamation is a single C source file that contains the entire SQLite core. It is created by assembling the individual development files into a single C source file that is almost 4 megabytes in size and over 100,000 lines long.
  • The amalgamation has two main advantages. First, with everything in one file, it is extremely easy to integrate SQLite into a host application. Many projects simply copy the amalgamation files into their own source directories. It is also possible to compile the SQLite core into a library and simply link the library into your application.Second, the amalgamation also helps improve performance. Many compiler optimizations are limited to a single translation unit. In C, that’s a single source file. By putting the whole library into a single file, a good optimizer can process the whole package at once.
  • When working with the amalgamation, there are four important source files:
    1)sqlite3.c
    2)sqlite3.h
    3)sqlite3ext.h
    4)shell.c
  • sqlite3.c and sqlite3.h, are all that is needed to integrate SQLite into most applications.
  • The shell.c file contains the source code for the sqlite3 command-line shell. All of these files can be built on Linux, Mac OS X, or Windows, without any additional configuration files.

swamios
For More Information Please Visit

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...