Device and method for performing lossless compression on embedded program

An embedded and embedded file technology, applied in the computer field, can solve the problems of access data error, software readability and maintenance inconvenience, inconsistency, etc., to achieve the effect of improving the loading speed

Active Publication Date: 2014-03-12
ADTECH SHENZHEN TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to the differences in the organization of various files, the API interface adopted by the application program to call the files stored in the file system of different formats is not consistent, and the error mechanism is also different, so in terms of software readability and maintainability very inconvenient
[0004] 2. The data integrity guarantee of the embedded file system varies with different storage hardware. In order to speed up the access speed, there is no complete verification like a PC, so there may be a risk of accessing data errors, and the file storage and reading cannot be guaranteed. correctness

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Device and method for performing lossless compression on embedded program
  • Device and method for performing lossless compression on embedded program
  • Device and method for performing lossless compression on embedded program

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment

[0026] Specific embodiment: use C language to describe its steps as follows: use the self-defined search function to carry out level-by-level search downwards according to the root directory provided by the entry function, and record the path and size of the file at the same time, and record the total number of files at the end . When the search is over, file suppression is performed. Use the custom suppression function to create the suppression file internally, record the file header information, and record the corresponding file content under each file path provided by the search function. This function can realize static loading and dynamic loading functions at the same time. Users can choose the loading type according to the memory size and loading time requirements of their embedded devices. In this suppression function, CRC checks are also performed in stages to ensure that the file header information is written, loaded, and recorded file content is accurate before bein...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a device and a method for performing lossless compression on an embedded program and is a file organization mode which is applicable to an embedded system. The device comprises a file retrieval unit, a file compression unit, a file check unit and a file decompression and restoration unit, wherein the file retrieval unit is used for searching files which are included in a file root directory step by step, recording information such as the path, name and size of the file which meets requirements and acquiring the information of the total amount of all files by retrieval; and the file decompression and restoration unit is used for downloading or burning the file which is generated by compression to the embedded file system and decompressing and restoring the compressed file in the embedded system. The method comprises the following steps of: retrieving, compressing, checking, decompressing and restoring the embedded program. The invention has the advantages that: the loading speed of embedded files is improved; program access application program interfaces (API) are unified; data can be accurately accessed; and various kinds of loading modes are provided.

Description

technical field [0001] The invention relates to the field of computer technology, more specifically, a file organization method applied to embedded systems, and a device and method for nondestructively compressing embedded programs. Background technique [0002] With the rapid development of modern electronic technology, embedded products can be seen everywhere, and in order to shorten the difference in processing capabilities between embedded systems and PCs, various technologies specially developed for embedded systems have emerged, and embedded file systems are embedded The interface of the format storage part is especially important. Now the embedded system has the following problems: [0003] 1. The embedded file systems include FAT, YAFFS, and JFFS, and there are also direct operation methods for directly reading and writing storage blocks. Due to the differences in the organization of various files, the API interface adopted by the application program to call the fi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
Inventor 杨基鹏江小玲曾逸
Owner ADTECH SHENZHEN TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products