APP下载

基于Nucleus的嵌入式系统数据库架构设计

2020-04-22李鼎张秀芳刘洲洲

微型电脑应用 2020年3期
关键词:数据库

李鼎 张秀芳 刘洲洲

摘 要:针对嵌入式系统数据库初始化过程复杂而影响整体系统进程的问题,将Nucleus数据库系统的索引表占用地址空间缩减,同时交换块不占地址空间,将其临时存放在数据库索引表的末尾节点,同时记录区占用剩余地址空间,重点处理索引表中的数据库记录ID,对其进行编码,使得可以区分数据库类型以及记录的类别且与文件系统以及注册表无关。系统测试结果表明该方法提高了数据库的存取速度且便于移植。

关键词:Nucleus; 嵌入式系统; 数据库; 架构

中图分类号: TP311.5

文献标志码: A

Abstract:In order to solve the problem that the initialization process of embedded system database is complex and then affects the whole system process, this paper reduces the address space occupied by the index table in the nucleus database system, at the same time, the exchange block does not occupy the address space, temporarily stores it at the end node of the database index table, at the same time, the record area occupies the remaining address space, and focuses on dealing with the database record ID in the index table, which makes it possible to distinguish between database types and record types and is independent of file system and registry. The test results show that this method improves the access speed of database and is easy to be transplanted.

Key words:Nucleus; Embedded system; Database; Architecture

0 引言

嵌入式系統诸如智能手机,智能手环,PAD等作为物联网设备已经广泛地应用在多种领域[1-4]。其中系统用户可以根据自身的软硬件环境的要求,选择合适的操作系统。其中数据库作为系统的关键模块,有至关重要的作用,由于记录索引表、交换区和数据记录区构成整个数据库系统,其中记录索引表占用一个地址空间且固定,而交换区不占地址空间,数据记录区占用其余的地址空间。在记录索引表中有每条数据库的地址、ID、类别、大小等信息。且每个记录ID唯一, ID号可以区分数据库以及记录的类别,本文提出一种ID号的编码规则,索引表以一个记录的形式保存到数据库里,并用记录类别加以区分,同时基于数据库设备,与文件系统以及注册表无关,可以有效提高嵌入式系统数据库存取速度且鲁棒性增强。

1 Nucleus嵌入式系统

Nucleus[5-7]是为实时嵌入式应用而设计的一个抢先式多任务操作系统。……

登录APP查看全文

猜你喜欢

数据库
数据库
数据库
数据库
数据库
数据库
数据库
数据库
数据库
数据库
数据库