CN109324838A - Execution method, executive device and the terminal of SCM program - Google Patents
Execution method, executive device and the terminal of SCM program Download PDFInfo
- Publication number
- CN109324838A CN109324838A CN201811012747.3A CN201811012747A CN109324838A CN 109324838 A CN109324838 A CN 109324838A CN 201811012747 A CN201811012747 A CN 201811012747A CN 109324838 A CN109324838 A CN 109324838A
- Authority
- CN
- China
- Prior art keywords
- target resource
- file
- resource object
- resource file
- absolute address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44573—Execute-in-place [XIP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4482—Procedural
- G06F9/4484—Executing subprograms
- G06F9/4486—Formation of subprogram jump address
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application is suitable for field of computer technology, provides execution method, executive device, terminal and the computer readable storage medium of a kind of SCM program, and the execution method includes: to obtain target resource object;The target resource object is arranged and generates target resource file;The absolute address of the target resource object is read from target resource file;It controls the SCM program and jumps to the absolute address, and execute operation corresponding with the target resource object.The application can be improved the execution efficiency of SCM program.
Description
Technical field
The application belongs to field of computer technology more particularly to a kind of execution method of SCM program, executive device, end
End and computer readable storage medium.
Background technique
One chip microcomputer (Single Chip Microcomputer) abbreviation single-chip microcontroller, refers to and is integrated in a core
The microcomputer of on piece, its various functional components (such as CPU, memory, interface circuit etc.) are all produced on one piece of collection
At on chip, a complete microcomputer is constituted.SCM program refers to that being used to indicate single-chip microcontroller completes a specific function
The instruction sequence of energy, the implementation procedure of SCM program may be related to the calling of multiple resource files.
However, being limited to volume, the limited storage space of single-chip microcontroller, relevant resource file, which generally requires, to be individually stored in
In External memory equipment, for example, storage is in TF card (Trans-flash Card).In SCM program implementation procedure, due to
It is time-consuming more to read external resource, may cause single-chip microcontroller Caton, even crash, cause the execution efficiency of SCM program not high.
Summary of the invention
In view of this, execution method, executive device, terminal and the computer this application provides a kind of SCM program can
Storage medium is read, the execution efficiency to solve the problems, such as SCM program in the prior art is not high.
The first aspect of the application provides a kind of execution method of SCM program, and the execution method includes:
Obtain target resource object;
The target resource object is arranged and generates target resource file, wherein includes institute in the target resource file
State the absolute address of target resource object;
The absolute address of the target resource object is read from the target resource file;
It controls the SCM program and jumps to the absolute address, and execute behaviour corresponding with the target resource object
Make.
Based in a first aspect, in the first possible implementation, described arrange the target resource object generates
Target resource file specifically includes:
Obtain the initial resource file in the target resource object, wherein the initial resource file for store with
The mark and store path of the associated resource object of SCM program;
The initial resource file is converted into target resource file, wherein the target resource file is used to indicate institute
The absolute address of target resource object is stated, the absolute address is based on the mark and the store path obtains.
It is described that the initial resource file is converted into mesh based in a first aspect, in the second possible implementation
Mark resource file, comprising:
Read the first data stored in the initial resource file, wherein first data include mark data and
Store path data;
First data are converted to the second data of specified format, generate the centre for saving second data
File;
Based on the intermediate file, target resource file is generated.
Based in a first aspect, in the third possible implementation, described to be based on the intermediate file, generation target provides
Source file, comprising:
The intermediate file is verified;
If verification passes through, it is based on the intermediate file, generates target resource file.
Based in a first aspect, in the fourth possible implementation, the initial resource file includes Excel format
File.
Based in a first aspect, in a fifth possible implementation, resource object in the target resource file it
Between be attached by chained list.
Based in a first aspect, in a sixth possible implementation, being jumped in the control SCM program described
Absolute address, and after execution operation corresponding with the target resource object, further includes:
It controls the SCM program and jumps to the next resource pair connecting with the target resource object by chained list
The absolute address of elephant, and execute operation corresponding with the next resource object.
The second aspect of the application provides a kind of executive device of SCM program, and the executive device includes:
Resource object acquiring unit, for obtaining target resource object;
Resource file generation unit, the target resource object for obtaining resource object acquiring unit, which arranges, generates target
Resource file, wherein include the absolute address of the target resource object in the target resource file;
Absolute address reading unit, for reading the mesh from the target resource file that resource file generation unit generates
Mark the absolute address of resource object;
Control unit jumps to the absolute address reading unit reading utterly for controlling the SCM program
Location, and execute operation corresponding with the target resource object.
In second aspect in the first possible implementation, the executive device further include:
Resource file acquiring unit, for obtaining the initial resource file in the target resource object, wherein described first
Beginning resource file is for storing and the mark and store path of the associated resource object of the SCM program.
Resource file converting unit, the initial resource file for obtaining the resource file acquiring unit are converted into mesh
Mark resource file, wherein the target resource file is used to indicate the absolute address of the target resource object, it is described utterly
Location is based on the mark and the store path obtains.
In second of second aspect possible implementation, the executive device further include:
Data-reading unit, for reading the first data stored in the initial resource file, wherein first number
According to including mark data and store path data.
Intermediate file generation unit, the first data for reading the data-reading unit are converted to specified format
Second data generate the intermediate file for saving second data.
The resource file converting unit is also used to, raw based on the intermediate file that the intermediate file generation unit generates
At target resource file.
In second aspect in the third possible implementation, the execution unit further include:
File verification unit, the intermediate file for generating to the intermediate file generation unit verify;
The resource file converting unit is also used to, raw based on the intermediate file that the file verification unit checks pass through
At target resource file.
In the 4th kind of possible implementation of second aspect, the initial resource file includes the file of Excel format.
In the 5th kind of possible implementation of second aspect, pass through between the resource object in the target resource file
Chained list is attached.
In the 6th kind of possible implementation of second aspect, described control unit is also used to: controlling the single-chip microcontroller
Programming jump controls the single-chip microcontroller to the absolute address, and after executing operation corresponding with the target resource object
The absolute address for next resource object that programming jump is extremely connect with the target resource object by chained list, and execution and institute
State the corresponding operation of next resource object.
The third aspect of the application provides a kind of terminal, including memory, processor and is stored in the memory
In and the computer program that can run on the processor, the processor realize when executing the computer program as any
The step of execution method of the item SCM program.
The fourth aspect of the application provides a kind of computer readable storage medium, and the computer readable storage medium is deposited
Computer program is contained, the execution side of the SCM program as described in any one is realized when the computer program is executed by processor
The step of method.
Existing beneficial effect is the application compared with prior art:
The application is arranged by the target resource object that obtains target resource object and will acquire and generates target resource file;
The absolute address of the target resource object is read from target resource file again;Control the SCM program jump to it is described
Absolute address, and execute operation corresponding with the target resource object;Solves the execution of SCM program in the prior art
Inefficient problem, that is, SCM program is in the process of implementation, when needing invocation target resource object, due to can be with
The absolute address to target resource object is directly read, from the target resource file of generation so as to reduce resource object
Lookup and read access time, improve the execution efficiency of SCM program.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of the execution method of SCM program provided by the embodiments of the present application;
Fig. 2 is an implementation flow chart of step 102 in embodiment illustrated in fig. 1 provided by the embodiments of the present application;
Fig. 3 is the structural schematic diagram of the executive device of SCM program provided by the embodiments of the present application;
Fig. 4 is the schematic diagram of terminal provided by the embodiments of the present application.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
The application program of SCM program namely single-chip microcontroller storage inside, single-chip microcontroller realize spy dependent on SCM program
Fixed function, and the implementation procedure of SCM program may relate to the calling of a large amount of resource object and jumping for program, therefore,
The framework of SCM program directly affects the execution efficiency of SCM program.The application is applied to single-chip microcontroller, provides a kind of list
The execution method of piece machine program, by being arranged to the resource object that SCM program is related to, to comb SCM program
Implementation procedure improves the execution of SCM program to reduce the time that SCM program carries out resource object reading and calling
Efficiency.
To keep the purposes, technical schemes and advantages of the application clearer, pass through specific embodiment below in conjunction with attached drawing
To be illustrated.
Referring to Fig. 1, it illustrates the implementation flow charts of the execution method of SCM program provided by the embodiments of the present application, in detail
It states as follows:
In a step 101, target resource object is obtained.
In the embodiment of the present application, the main program of single-chip microcontroller is first carried out, the main program of single-chip microcontroller can store in monolithic
In the flash memory (Flash Memory) of machine, main program has the central processing unit control of the single-chip microcontroller when running.Main program fortune
During row, the resource object being stored in External memory equipment can be called, for example, referring to when receiving triggering from the user
When order or other trigger events predetermined, in response to above-mentioned triggering command or trigger event, main program calling is stored in
It stores the menu data in the resource file in equipment TF card and executes corresponding operation.
In the embodiment of the present application, the target resource object indicates that the main program of single-chip microcontroller refers in response to the operation of user
Order or predefined trigger event, need to call is stored in the resource object of external memory space.The target resource object
It can be menu data or an application program that can be independently executed.Specifically, the available target resource object
Mark.
It should be noted that in the embodiment of the present application, the SCM program include single-chip microcontroller main program and
Function, application program and the other resource objects called in the main program operational process.
In a step 102, the target resource object is arranged and generates target resource file, wherein the target resource
It include the absolute address of the target resource object in file.
In the embodiment of the present application, the target resource object of acquisition is arranged, generates target resource file.Specifically
, target resource object can be ranked up according to the calling sequence of target resource object in main program;Mesh can also be obtained
The storage information of resource object is marked, and the absolute address of the target resource object is obtained based on the storage information.It ultimately generates
Target resource file is that can directly indicate the file of the absolute address of current desired target resource object by sequence.Absolutely
It is to be exactly file, resource in network or local absolute position to address;It is presented as target resource pair in the embodiment of the present application
As the absolute position in target resource file, i.e., corresponding target can be found in target resource file by the absolute position
Resource file.
In step 103, the absolute address of the target resource object is read from the target resource file.
In the embodiment of the present application, according to the target resource file of generation, it may be convenient to navigate to current desired mesh
Resource object is marked, main program reads the absolute address of the target resource object after navigating to the target resource object,
To jump directly to the absolute address, and continue to execute the operation of next step.
In the embodiment of the present application, the absolute address refers to the specific access unit address for being pointing directly at memory.
In a kind of application scenarios, target resource in target resource file can be accessed by defining absolutely macro mode
The absolute address of object, such as wherein define macro can be used with " #include<absacc.h>" to access absolute address.
In another application scenarios, can by reading absolute address plus _ at_const after data definition,
For example, " idata struct link list_at_0x40 " can specify chained list (list) structure since absolute address 40h.
At step 104, it controls the SCM program and jumps to the absolute address, and execute and the target resource
The corresponding operation of object.
In the embodiment of the present application, read from target resource file the corresponding absolute address of target resource object it
Afterwards, control single chip computer programming jump can directly obtain the information of the target resource object to the absolute address, and execute with
The corresponding operation of the target resource object.
In a kind of application scenarios, it is assumed that the function of SCM program is to carry out dynamic menu according to the operational order of user
It has been shown that, dynamic menu information are stored in external TF card, in response to the operational order of user after SCM program starting, are read
The absolute address of menu corresponding with the operational order in target resource file directly reads menu letter from the absolute address
It ceases and is shown.The read operation that menu is directly carried out by then passing through absolute address, avoids the sea from resource file
The process searched and addressed in amount data information, saves resource read access time, improve SCM program executes speed
Degree.
From the foregoing, it will be observed that the application is arranged by the target resource object that obtains target resource object and will acquire generates target
Resource file;The absolute address of the target resource object is read from target resource file again;Control the SCM program
The absolute address is jumped to, and executes operation corresponding with the target resource object;Solves single-chip microcontroller in the prior art
The not high problem of the execution efficiency of program is needing invocation target resource object that is, SCM program is in the process of implementation
When, since the absolute address to target resource object can be directly read from the target resource file of generation, so as to subtract
The lookup and read access time of few resource object, improve the execution efficiency of SCM program.
Fig. 2 shows an implementation flow charts of step 102 in embodiment illustrated in fig. 1 provided by the present application, and details are as follows:
In step 201, the initial resource file in target resource object is obtained.
In the embodiment of the present application, initial resource file, the initial resource text are previously provided in target resource object
Part is for storing and the mark and store path of the associated resource object of the SCM program;For the ease of modification, update or
Extension, the initial resource file can preassign content format, can also preassign file format, for example, passing through
Excel table records the mark and store path of resource object.
It it should be noted that the initial resource file can define its format according to actual needs, such as can be Word
Format, Excel format or other formats;In the present embodiment, in order to improve the convenience of reading, the initial resource file
Using the file of Excel format, such as xml document, a resource object, resource object place are recorded with every row in this document
Each parameter of the resource object, including function name, storage address are recorded in capable column content.This also have the advantage that programming personnels couple
Initial resource file is modified, updates or is extended.
In step 202, the initial resource file is converted into target resource file.
In the embodiment of the present application, the target resource file is used to indicate the absolute address of the target resource object,
The absolute address is based on the mark and the store path obtains.Initial resource file be for convenience developer into
Row modification is updated or is extended, therefore can be described and be recorded by readable preferable format or language;And this usual kind
Language is difficult to be directly read or identified by SCM program, therefore needing initial resource file being converted to SCM program can be direct
The file of identification is read, that is, needing the initial resource file being converted into target resource file.
Optionally, above-mentioned steps 202 can be accomplished by the following way:
Step 2021 reads the first data stored in the initial resource file, wherein first data include mark
Know data and store path data.
Step 2022, the second data that first data are converted to specified format are generated for saving described second
The intermediate file of data.
Step 2023 is based on the intermediate file, generates target resource file.
In the embodiment of the present application, it is recorded in order to which SCM program can be read directly in identification initial resource file
Resource object mark and store path, can be by the conversion program or compiler being pre-designed, will be described first
Data in beginning resource file be converted to SCM program can Direct Recognition and reading data, wherein for storing single-chip microcontroller
Program can Direct Recognition and reading data file, that is, target resource file.
In the present embodiment, in order to improve the accuracy of SCM program operation, the initial resource file is converted first
It is verified at intermediate file, and to the intermediate file, such as verifying intermediate file whether there is loss of data.In order to improve
Speed is verified, which can have fixed format, for example, identifying menu by double quotation marks, is used as and divides by comma
Every symbol to divide the different information contents.
It in the present embodiment, if verification passes through, indicates that initial resource file record is errorless, then can be passed through based on the verification
Intermediate file, the further target resource file that generates SCM program and can directly read.
Optionally, it is attached between the resource object in the target resource file by chained list.
In order to further increase the execution speed of SCM program, can by each resource object in target resource file into
Row sequence, and be attached by chained list, that is, can store next resource object in each resource object utterly
Location, SCM program can be directed toward according to the address of chained list after having executed this operation, continue to jump and execute down
One corresponding operation.
Optionally, the absolute address is jumped in the control SCM program, and executed and the target resource pair
After corresponding operation, further includes:
It controls the SCM program and jumps to the next resource pair connecting with the target resource object by chained list
The absolute address of elephant, and execute operation corresponding with the next resource object.
In the embodiment of the present application, due to being connected between each resource object in target resource file by chained list
It connects, SCM program can be jumped directly after current absolute address has executed operation corresponding with this resource object
The absolute address for the next resource object being directed toward into this resource object, to execute the corresponding behaviour of next resource object
Make.Certainly, the resource object in target resource file can also indicate that SCM program return executes master by way of chained list
The corresponding operation of program.
From the foregoing, it will be observed that the application is arranged by the target resource object that obtains target resource object and will acquire generates target
Resource file;The absolute address of the target resource object is read from target resource file again;Control the SCM program
The absolute address is jumped to, and executes operation corresponding with the target resource object;Solves single-chip microcontroller in the prior art
The not high problem of the execution efficiency of program is needing invocation target resource object that is, SCM program is in the process of implementation
When, since the absolute address to target resource object can be directly read from the target resource file of generation, so as to subtract
The lookup and read access time of few resource object, improve the execution efficiency of SCM program.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit
It is fixed.
The following are the Installation practices of the application can refer to above-mentioned corresponding the details of wherein not detailed description
Embodiment of the method.
Fig. 3 shows the structural schematic diagram of the executive device of SCM program provided by the embodiments of the present application, for the ease of
Illustrate, illustrate only part relevant to the embodiment of the present application, details are as follows:
As shown in figure 3, the executive device device 3 of SCM program includes: resource object acquiring unit 31, resource file is raw
At unit 32, absolute address reading unit 33 and control unit 34.
Resource object acquiring unit 31, for obtaining target resource object.
Resource file generation unit 32, the target resource object for obtaining resource object acquiring unit, which arranges, generates mesh
Mark resource file, wherein include the absolute address of the target resource object in the target resource file.
Absolute address reading unit 33, for reading target from the target resource file that resource file generation unit generates
The absolute address of resource object.
Control unit 34 jumps to the reading of absolute address reading unit 33 utterly for controlling the SCM program
Location, and execute operation corresponding with the target resource object.
Optionally, the executive device 3 of SCM program further include:
Resource file acquiring unit, for obtaining the initial resource file in the target resource object, wherein described first
Beginning resource file is for storing and the mark and store path of the associated resource object of the SCM program.
Resource file converting unit, the initial resource file for obtaining the resource file acquiring unit are converted into mesh
Mark resource file, wherein the target resource file is used to indicate the absolute address of the target resource object, it is described utterly
Location is based on the mark and the store path obtains.
Optionally, the executive device 3 of SCM program further include:
Data-reading unit, for reading the first data stored in the initial resource file, wherein first number
According to including mark data and store path data;
Intermediate file generation unit, the first data for reading the data-reading unit are converted to specified format
Second data generate the intermediate file for saving second data;
The resource file converting unit is also used to, raw based on the intermediate file that the intermediate file generation unit generates
At target resource file.
Optionally, the executive device device 3 of SCM program further include:
File verification unit, the intermediate file for generating to the intermediate file generation unit verify;
The resource file converting unit is also used to, raw based on the intermediate file that the file verification unit checks pass through
At target resource file.
Optionally, the initial resource file that the resource file acquiring unit obtains is the file of Excel format.
Optionally, pass through chained list between the resource object in target resource file that the resource file converting unit generates
It is attached.
Optionally, control unit 34 is also used to, and jumps to the absolute address controlling the SCM program, and execute
After operation corresponding with the target resource object, controls the SCM program and jump to and lead to the target resource object
The absolute address of next resource object of chained list connection is crossed, and executes operation corresponding with the next resource object.
From the foregoing, it will be observed that the application is arranged by the target resource object that obtains target resource object and will acquire generates target
Resource file;The absolute address of the target resource object is read from target resource file again;Control the SCM program
The absolute address is jumped to, and executes operation corresponding with the target resource object;Solves single-chip microcontroller in the prior art
The not high problem of the execution efficiency of program is needing invocation target resource object that is, SCM program is in the process of implementation
When, since the absolute address to target resource object can be directly read from the target resource file of generation, so as to subtract
The lookup and read access time of few resource object, improve the execution efficiency of SCM program.
Fig. 4 is the schematic diagram for the terminal that one embodiment of the application provides.As shown in figure 4, the terminal 4 of the embodiment includes:
Processor 40, memory 41 and it is stored in the computer program that can be run in the memory 41 and on the processor 40
42.The processor 40 is realized when executing the computer program 42 in the execution embodiment of the method for above-mentioned each SCM program
The step of, such as step 101 shown in FIG. 1 is to step 104.Alternatively, when the processor 40 executes the computer program 42
Realize the function of each module/unit in above-mentioned each Installation practice, such as the function of unit 31 to 34 shown in Fig. 3.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the application.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 42 in the terminal 4 is described.For example, the computer program 42 can be divided into
Resource object acquiring unit, resource file generation unit, absolute address reading unit and control unit, each unit concrete function is such as
Under:
Resource object acquiring unit, for obtaining target resource object;
Resource file generation unit, the target resource object for obtaining resource object acquiring unit, which arranges, generates target
Resource file, wherein include the absolute address of the target resource object in the target resource file;
Absolute address reading unit, for reading the mesh from the target resource file that resource file generation unit generates
Mark the absolute address of resource object;
Control unit jumps to the absolute address reading unit reading utterly for controlling the SCM program
Location, and execute operation corresponding with the target resource object.
The terminal 4 can be desktop PC, notebook, palm PC and cloud server etc. and calculate equipment.Institute
Stating terminal may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4 is only eventually
The example at end 4, the not restriction of structure paired terminal 4 may include than illustrating more or fewer components, or the certain portions of combination
Part or different components, such as the terminal can also include input-output equipment, network access equipment, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 41 can be the internal storage unit of the terminal 4, such as the hard disk or memory of terminal 4.It is described
Memory 41 is also possible to the External memory equipment of the terminal 4, such as the plug-in type hard disk being equipped in the terminal 4, intelligence
Storage card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card)
Deng.Further, the memory 41 can also both include the internal storage unit of the terminal 4 or set including external storage
It is standby.The memory 41 is for other programs and data needed for storing the computer program and the terminal.It is described to deposit
Reservoir 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal and method can pass through
Other modes are realized.For example, device/terminal embodiment described above is only schematical, for example, the module or
The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units
Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute
Display or the mutual coupling or direct-coupling or communication connection discussed can be through some interfaces, device or unit
INDIRECT COUPLING or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality
Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Comprising within the scope of protection of this application.
Claims (10)
1. a kind of execution method of SCM program, which is characterized in that the execution method includes:
Obtain target resource object;
The target resource object is arranged and generates target resource file, wherein includes the mesh in the target resource file
Mark the absolute address of resource object;
The absolute address of the target resource object is read from the target resource file;
It controls the SCM program and jumps to the absolute address, and execute operation corresponding with the target resource object.
2. the execution method of SCM program according to claim 1, which is characterized in that described by the target resource pair
Target resource file is generated as arranging, is specifically included:
Obtain the initial resource file in the target resource object, wherein the initial resource file for store with it is described
The mark and store path of the associated resource object of SCM program;
The initial resource file is converted into target resource file, wherein the target resource file is used to indicate the mesh
The absolute address of resource object is marked, the absolute address is based on the mark and the store path obtains.
3. the execution method of SCM program according to claim 2, which is characterized in that described by the initial resource text
Part is converted into target resource file, comprising:
Read the first data stored in the initial resource file, wherein first data include mark data and storage
Path data;
First data are converted to the second data of specified format, generate the intermediate text for saving second data
Part;
Based on the intermediate file, target resource file is generated.
4. the execution method of SCM program according to claim 3, which is characterized in that described based on the intermediate text
Part generates target resource file, comprising:
The intermediate file is verified;
If verification passes through, it is based on the intermediate file, generates target resource file.
5. according to the execution method of the described in any item SCM programs of claim 2 to 4, which is characterized in that the initial money
Source file includes the file of Excel format or Word format.
6. the execution method of SCM program according to claim 5, which is characterized in that in the target resource file
It is attached between resource object by chained list.
7. the execution method of SCM program according to claim 6, which is characterized in that controlling the SCM program
The absolute address is jumped to, and after execution operation corresponding with the target resource object, further includes:
It controls the SCM program and jumps to the next resource object connecting with the target resource object by chained list
Absolute address, and execute operation corresponding with the next resource object.
8. a kind of executive device of SCM program, which is characterized in that the executive device includes:
Resource object acquiring unit, for obtaining target resource object;
Resource file generation unit, the target resource object for obtaining resource object acquiring unit, which arranges, generates target resource
File, wherein include the absolute address of the target resource object in the target resource file;
Absolute address reading unit, for reading the target money from the target resource file that resource file generation unit generates
The absolute address of source object;
Control unit jumps to the absolute address that the absolute address reading unit is read for controlling the SCM program,
And execute operation corresponding with the target resource object.
9. a kind of terminal, including memory, processor and storage can be run in the memory and on the processor
Computer program, which is characterized in that the processor is realized when executing the computer program as claim 1 to 7 is any
The step of execution method of the item SCM program.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In the execution side of realization SCM program as described in any one of claim 1 to 7 when the computer program is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811012747.3A CN109324838B (en) | 2018-08-31 | 2018-08-31 | Execution method and execution device of single chip microcomputer program and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811012747.3A CN109324838B (en) | 2018-08-31 | 2018-08-31 | Execution method and execution device of single chip microcomputer program and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109324838A true CN109324838A (en) | 2019-02-12 |
CN109324838B CN109324838B (en) | 2022-05-10 |
Family
ID=65264193
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811012747.3A Active CN109324838B (en) | 2018-08-31 | 2018-08-31 | Execution method and execution device of single chip microcomputer program and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109324838B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111538488A (en) * | 2020-04-17 | 2020-08-14 | 荏原冷热系统(中国)有限公司 | Method and device for generating single-chip microcomputer driving program |
CN112882423A (en) * | 2021-01-26 | 2021-06-01 | 深圳市航顺芯片技术研发有限公司 | Singlechip, singlechip control method and device, intelligent terminal and storage medium |
Citations (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1222985A (en) * | 1996-05-03 | 1999-07-14 | 艾利森电话股份有限公司 | Method relating to handling of conditional jumps in multi-stage pipeline arrangement |
US20040236914A1 (en) * | 2003-05-22 | 2004-11-25 | International Business Machines Corporation | Method to provide atomic update primitives in an asymmetric heterogeneous multiprocessor environment |
US20060294326A1 (en) * | 2005-06-23 | 2006-12-28 | Jacobson Quinn A | Primitives to enhance thread-level speculation |
US20090113196A1 (en) * | 2007-10-27 | 2009-04-30 | Hsun-Yao Jan | Method and systems for advanced reprogrammable boot codes and in-application programming of embedded microprocessor systems |
CN101615128A (en) * | 2009-07-31 | 2009-12-30 | 北京华环电子股份有限公司 | A kind of method of single-chip microcomputer online upgrading and device |
CN101625643A (en) * | 2009-05-08 | 2010-01-13 | 和芯微电子(四川)有限公司 | Address mapping method of 8051 single chip |
CN101673214A (en) * | 2009-10-26 | 2010-03-17 | 上海交通大学 | Subdivision information collection system and collection method thereof |
CN101763273A (en) * | 2008-12-26 | 2010-06-30 | 上海闻泰电子科技有限公司 | Method for dynamically loading code into extended memory of embedded type system |
CN102354281A (en) * | 2011-07-11 | 2012-02-15 | 中国科学院深圳先进技术研究院 | Kernel device in wireless sensor network and implementation method thereof |
CN103077056A (en) * | 2012-12-31 | 2013-05-01 | 中国电子科技集团公司第十五研究所 | Method for implementing Bootloader by using small quantity of ROM (Read Only Memory) resources |
CN103744709A (en) * | 2014-01-23 | 2014-04-23 | 华为技术有限公司 | Patch loading method and device |
CN104035793A (en) * | 2014-05-22 | 2014-09-10 | 浙江大学 | In-application wireless programming method based on single-chip microcomputer |
CN104714846A (en) * | 2013-12-17 | 2015-06-17 | 华为技术有限公司 | Resource processing method, operating system and equipment |
US20150261535A1 (en) * | 2014-03-11 | 2015-09-17 | Cavium, Inc. | Method and apparatus for low latency exchange of data between a processor and coprocessor |
CN105224305A (en) * | 2014-07-01 | 2016-01-06 | 华为技术有限公司 | Function call path decoding method, Apparatus and system |
CN105224370A (en) * | 2015-10-21 | 2016-01-06 | 安一恒通(北京)科技有限公司 | A kind of method and apparatus of loading ELF document |
CN105259834A (en) * | 2015-10-28 | 2016-01-20 | 华中科技大学 | Mobile phone data collection controller and method with reconfigurable firmware |
CN105700427A (en) * | 2016-01-13 | 2016-06-22 | 武汉合康动力技术有限公司 | Correction method of single chip microcomputer program fleet |
CN106095416A (en) * | 2016-06-01 | 2016-11-09 | 腾讯科技(深圳)有限公司 | A kind of in the application redirect processing method, device and intelligent terminal |
CN106874054A (en) * | 2017-03-06 | 2017-06-20 | 四川天邑康和通信股份有限公司 | A kind of repeater inner module program on-line upgrading method and system |
CN107729352A (en) * | 2017-08-30 | 2018-02-23 | 上海壹账通金融科技有限公司 | page resource loading method and terminal device |
CN107729040A (en) * | 2017-09-28 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of IAP method and system of single-chip microcomputer |
CN107885540A (en) * | 2016-09-28 | 2018-04-06 | 腾讯科技(深圳)有限公司 | A kind of method, apparatus and terminal of loading application programs static resource |
CN107894920A (en) * | 2017-11-09 | 2018-04-10 | 广东欧珀移动通信有限公司 | Resource allocation method and Related product |
CN108108094A (en) * | 2017-12-12 | 2018-06-01 | 深圳和而泰数据资源与云技术有限公司 | A kind of information processing method, terminal and computer-readable medium |
CN108241516A (en) * | 2018-02-09 | 2018-07-03 | 深圳科立讯通信有限公司 | Embedded system program loading method, device, computer equipment and storage medium |
CN108268039A (en) * | 2018-01-19 | 2018-07-10 | 广东美的智能机器人有限公司 | The paths planning method and system of mobile robot |
CN108459885A (en) * | 2018-03-26 | 2018-08-28 | 深圳市元征科技股份有限公司 | A kind of method and its microcontroller of resource dispersion load |
-
2018
- 2018-08-31 CN CN201811012747.3A patent/CN109324838B/en active Active
Patent Citations (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1222985A (en) * | 1996-05-03 | 1999-07-14 | 艾利森电话股份有限公司 | Method relating to handling of conditional jumps in multi-stage pipeline arrangement |
US20040236914A1 (en) * | 2003-05-22 | 2004-11-25 | International Business Machines Corporation | Method to provide atomic update primitives in an asymmetric heterogeneous multiprocessor environment |
US20060294326A1 (en) * | 2005-06-23 | 2006-12-28 | Jacobson Quinn A | Primitives to enhance thread-level speculation |
US20090113196A1 (en) * | 2007-10-27 | 2009-04-30 | Hsun-Yao Jan | Method and systems for advanced reprogrammable boot codes and in-application programming of embedded microprocessor systems |
CN101763273A (en) * | 2008-12-26 | 2010-06-30 | 上海闻泰电子科技有限公司 | Method for dynamically loading code into extended memory of embedded type system |
CN101625643A (en) * | 2009-05-08 | 2010-01-13 | 和芯微电子(四川)有限公司 | Address mapping method of 8051 single chip |
CN101615128A (en) * | 2009-07-31 | 2009-12-30 | 北京华环电子股份有限公司 | A kind of method of single-chip microcomputer online upgrading and device |
CN101673214A (en) * | 2009-10-26 | 2010-03-17 | 上海交通大学 | Subdivision information collection system and collection method thereof |
CN102354281A (en) * | 2011-07-11 | 2012-02-15 | 中国科学院深圳先进技术研究院 | Kernel device in wireless sensor network and implementation method thereof |
CN103077056A (en) * | 2012-12-31 | 2013-05-01 | 中国电子科技集团公司第十五研究所 | Method for implementing Bootloader by using small quantity of ROM (Read Only Memory) resources |
CN104714846A (en) * | 2013-12-17 | 2015-06-17 | 华为技术有限公司 | Resource processing method, operating system and equipment |
CN103744709A (en) * | 2014-01-23 | 2014-04-23 | 华为技术有限公司 | Patch loading method and device |
US20150261535A1 (en) * | 2014-03-11 | 2015-09-17 | Cavium, Inc. | Method and apparatus for low latency exchange of data between a processor and coprocessor |
CN104035793A (en) * | 2014-05-22 | 2014-09-10 | 浙江大学 | In-application wireless programming method based on single-chip microcomputer |
CN105224305A (en) * | 2014-07-01 | 2016-01-06 | 华为技术有限公司 | Function call path decoding method, Apparatus and system |
CN105224370A (en) * | 2015-10-21 | 2016-01-06 | 安一恒通(北京)科技有限公司 | A kind of method and apparatus of loading ELF document |
CN105259834A (en) * | 2015-10-28 | 2016-01-20 | 华中科技大学 | Mobile phone data collection controller and method with reconfigurable firmware |
CN105700427A (en) * | 2016-01-13 | 2016-06-22 | 武汉合康动力技术有限公司 | Correction method of single chip microcomputer program fleet |
CN106095416A (en) * | 2016-06-01 | 2016-11-09 | 腾讯科技(深圳)有限公司 | A kind of in the application redirect processing method, device and intelligent terminal |
CN107885540A (en) * | 2016-09-28 | 2018-04-06 | 腾讯科技(深圳)有限公司 | A kind of method, apparatus and terminal of loading application programs static resource |
CN106874054A (en) * | 2017-03-06 | 2017-06-20 | 四川天邑康和通信股份有限公司 | A kind of repeater inner module program on-line upgrading method and system |
CN107729352A (en) * | 2017-08-30 | 2018-02-23 | 上海壹账通金融科技有限公司 | page resource loading method and terminal device |
CN107729040A (en) * | 2017-09-28 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of IAP method and system of single-chip microcomputer |
CN107894920A (en) * | 2017-11-09 | 2018-04-10 | 广东欧珀移动通信有限公司 | Resource allocation method and Related product |
CN108108094A (en) * | 2017-12-12 | 2018-06-01 | 深圳和而泰数据资源与云技术有限公司 | A kind of information processing method, terminal and computer-readable medium |
CN108268039A (en) * | 2018-01-19 | 2018-07-10 | 广东美的智能机器人有限公司 | The paths planning method and system of mobile robot |
CN108241516A (en) * | 2018-02-09 | 2018-07-03 | 深圳科立讯通信有限公司 | Embedded system program loading method, device, computer equipment and storage medium |
CN108459885A (en) * | 2018-03-26 | 2018-08-28 | 深圳市元征科技股份有限公司 | A kind of method and its microcontroller of resource dispersion load |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111538488A (en) * | 2020-04-17 | 2020-08-14 | 荏原冷热系统(中国)有限公司 | Method and device for generating single-chip microcomputer driving program |
CN111538488B (en) * | 2020-04-17 | 2023-05-02 | 荏原冷热系统(中国)有限公司 | Method and device for generating single-chip microcomputer driver |
CN112882423A (en) * | 2021-01-26 | 2021-06-01 | 深圳市航顺芯片技术研发有限公司 | Singlechip, singlechip control method and device, intelligent terminal and storage medium |
CN112882423B (en) * | 2021-01-26 | 2021-10-15 | 深圳市航顺芯片技术研发有限公司 | Singlechip, singlechip control method and device, intelligent terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109324838B (en) | 2022-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109976761B (en) | Software development kit generation method and device and terminal equipment | |
CN109324787A (en) | A kind of business software development approach, device and terminal device | |
US11023669B2 (en) | Rendering lambda functions in spreadsheet applications | |
CN102495797A (en) | Smart card testing device and method | |
CN111985055B (en) | Model packaging method and device and electronic equipment | |
CN112612523B (en) | Embedded equipment driving system and method | |
CN109271403A (en) | A kind of operating method of data query, device, medium and electronic equipment | |
US20170300305A1 (en) | Executable guidance experiences based on implicitly generated guidance models | |
CN108241720B (en) | Data processing method, device and computer readable storage medium | |
CN111475162A (en) | Page generation method, device, server and storage medium | |
CN106951254B (en) | Method and device for multiplexing similar service function modules in payment system | |
CN103905231A (en) | Method and device for unified management of device types | |
CN109783802A (en) | A kind of business rule processing method, server and computer readable storage medium | |
CN109324838A (en) | Execution method, executive device and the terminal of SCM program | |
Fauth | Beyond tool-specific machine descriptions | |
CN110135814A (en) | The correlating method of BIM and project data, system and terminal device | |
CN107391872B (en) | Method and device for using PDMS three-dimensional model in software | |
CN102612683A (en) | Maintaining data integrity across execution environments | |
CN112054741B (en) | Motor control method and device, terminal equipment and storage medium | |
CN115168205A (en) | Automatic testing method and device | |
CN114443042A (en) | Service arrangement execution method based on rule engine and related equipment | |
CN112181407B (en) | Service realization processing method, device, system, electronic equipment and storage medium | |
Corre et al. | Fast template-based heterogeneous mpsoc synthesis on fpga | |
CN115167833B (en) | Programming method, executable program execution method and device | |
CN107729056A (en) | The program store method and relevant apparatus of a kind of read-only storage |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |