Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for using resource file in embedded system and system thereof

A technology of resource files and files, applied in memory systems, program control design, instruments, etc., can solve problems such as loading failure, slow startup speed of embedded systems, abnormal application programs, etc., and achieve the effect of improving startup speed

Inactive Publication Date: 2015-09-23
PHICOMM (SHANGHAI) CO LTD
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This will cause the embedded system to start slower
In addition, when a resource file is lost or damaged, the loading will fail and the application will be abnormal.
It is also relatively complicated when the software is upgraded

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0011] In order to enable those skilled in the art to better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only the present invention. Some embodiments of the invention are not all of the embodiments.

[0012] The present invention provides a method for using resource files in an embedded system. The resource files are converted into a two-dimensional array and stored in a programming language file, and then compiled together into an application program; when the embedded system is started, the application program needs to use the resource file. It can be used directly without loading.

[0013] The method for using resource files embedded in the system of the present invention firstly opens the resource files in a binary mode, and then saves the re...

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 presents a method for using a resource file in an embedded system and system of using the resource file in the embedded system. The method comprises the steps as follows: converting a resource file into a two-dimensional array and storing to a file of programming language; establishing a structural body array for storing a corresponding relation between the resource file and the two-dimensional array; compiling the file of programming language and a code file of an application program to generate final application program. The method of the invention could convert the resource file into the two-dimensional array and store in the file of programming language, and then compile in the application program together, and the resource file can be used by directly calling because the resource file is stored in the two-dimensional array. Compared with prior art, the method of the invention does not need to load and worry the problem that the resource file is lost and damaged, thereby improving the starting speed of the embedded system.

Description

technical field [0001] The invention relates to a method for loading resource files by an application program embedded in a system. Background technique [0002] In an embedded system, applications may use various resource files, such as pages, js scripts, XML files, pictures, ringtones, music, fonts, wallpapers, and so on. Typically, these resource files are separate from the application. [0003] Since the resource files are separated from the application program, these resource files need to be loaded first when the application program uses these resource files. In this way, the startup speed of the embedded system will be slowed down. In addition, when a resource file is lost or damaged, the loading will fail and the application will be abnormal. In the software upgrade, it is relatively complicated. Contents of the invention [0004] The technical problem to be solved by the present invention is to provide a method for using resource files in an embedded system th...

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
IPC IPC(8): G06F9/45
Inventor 项志远
Owner PHICOMM (SHANGHAI) CO LTD