⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.ecos

📁 db.* (pronounced dee-be star) is an advanced, high performance, small footprint embedded database fo
💻 ECOS
字号:
Using db.* with eCos====================db.* supports eCos as a target environment. Due to eCos' single-processmodel, Lock Manager functionality is not ported yet, however it seems thatmost embedded applications could easily employ single-user access mode tothe database.Produce database definition in target independent way=====================================================A new db.* feature targeting embedded environments is the ability tosource-compile the database schema, so that it can be integrated intoyour application at compile time. This makes your applicationself-contained (you don't need to provide external .dbd file) andbyte-order independent (you can use little-endian host environmentand big-endian target). To use the source compilation supply -c flagto ddlp, compiling your .ddl file, link the produced .c file with yourapplication and use d_sopen() to open database.For example, suppose you have db.ddl file. Compile the database schema asfollows:	# ddlp -c db.ddlThis will produce db.c and db.h files.Now link db.c into your application and open the database in the following way:	#include "db.h"		int main()	{		...				/* prepare database to be used */		d_sopen(&db_dbd, "o", task);				/* we couldn't use initdb, so let's do it now */		d_initialize(task, CURR_DB);		...	}Install db.* on eCos====================db.* installation is done using a two step process: first build the eCospackage and then install it.1) Skip this step if you have dowloaded db.* eCos package. Build the eCospackage by changing the current directory to db.ecos and running make:	# (cd db.ecos; make)	this would produce db.ecos.epk.2) Install the package using the standard ecos installer:	# ecosadmin.tcl add db.ecos.epk	or using the supplied makefile target:	# make installNow you can configure your eCos target environment. Include the "db.eCosdatabase library" package in your configuration, and also include the Posixthread layer, stdio support, and wide char support.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -