CN107463421A - A kind of compiling implement method and system of static procedural model - Google Patents

A kind of compiling implement method and system of static procedural model Download PDF

Info

Publication number
CN107463421A
CN107463421A CN201710573178.9A CN201710573178A CN107463421A CN 107463421 A CN107463421 A CN 107463421A CN 201710573178 A CN201710573178 A CN 201710573178A CN 107463421 A CN107463421 A CN 107463421A
Authority
CN
China
Prior art keywords
model
static
memory
procedural
source code
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
Application number
CN201710573178.9A
Other languages
Chinese (zh)
Other versions
CN107463421B (en
Inventor
闻立杰
***
倪伟渊
钱忱
王宇娇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tsinghua University
Huawei Technologies Co Ltd
Original Assignee
Tsinghua University
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tsinghua University, Huawei Technologies Co Ltd filed Critical Tsinghua University
Priority to CN201710573178.9A priority Critical patent/CN107463421B/en
Publication of CN107463421A publication Critical patent/CN107463421A/en
Application granted granted Critical
Publication of CN107463421B publication Critical patent/CN107463421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

The invention discloses a kind of compiling implement method and system of static procedural model.This method includes:Obtain static procedural model;The static defining of static procedural model is parsed, the static procedural model after being parsed;Static procedural model after parsing is stored in internal memory, is designated as memory model;Memory model is encoded and the code slots of Code Template are filled, obtains the source code file of memory model, preserves source code file;Source code in source code file is compiled, generates dynamic link library corresponding to source code, preserves dynamic link library;When needing to perform static procedural model, dynamic link library corresponding to static procedural model is loaded into internal memory, to realize the execution of the static procedural model.The compiling implement method and system of static procedural model provided by the invention can improve the efficiency for performing static procedural model, suitable for the operation of the flow instance of complexity.

Description

A kind of compiling implement method and system of static procedural model
Technical field
The present invention relates to computer realm, more particularly to a kind of compiling implement method and system of static procedural model.
Background technology
Computer can not directly receive and perform the source code using high level language, first translate into machine language Speech, it could be identified and performed by computer.
The technology that the execution of static procedural model performs often through explaining is realized, explains the efficiency of execution often due to needing Machine instruction is switched to according to every computer statement in real time, so that the execution efficiency of whole system is relatively low.Flow mould The once execution of type is referred to as example corresponding to the flow, and a static models, which perform, can repeatedly produce a plurality of example, every reality The active set that example performs is referred to as track corresponding to example.The execution each time of procedural model will according to every computer statement come Switch to machine instruction in real time, i.e., often performing will once translate once, occupy excessive computer resource, execution efficiency it is low, It is not suitable for the operation of the flow instance of complexity.
The content of the invention
It is an object of the invention to provide a kind of compiling implement method and system of static procedural model, it is possible to increase performs quiet The efficiency of state procedural model, suitable for the operation of the flow instance of complexity.
To achieve the above object, the invention provides following scheme:
A kind of compiling implement method of static procedural model, methods described include:
Obtain static procedural model;
The static defining of the static procedural model is parsed, the static procedural model after being parsed, the solution Static procedural model after analysis includes each member in the topological structure of the static procedural model, the static procedural model The global configuration of the parameter configuration of plain, each element and the static procedural model;
Static procedural model after parsing is stored in internal memory, is designated as memory model;
The memory model is encoded and the code slots of Code Template are filled, obtains the memory model Source code file, preserve the source code file;
Source code in the source code file is compiled, generates dynamic link library corresponding to the source code, is protected Deposit the dynamic link library;
When needing to perform the static procedural model, dynamic link library corresponding to the static procedural model is loaded in In depositing, to realize the execution of the static procedural model.
Optionally, it is described that the memory model is encoded, the source code file of the memory model is obtained, specific bag Include:
The parameter configuration of the memory model is extracted, the parameter configuration of the memory model is corresponding including the memory model The static procedural model title and version number;
According to the parameter configuration of the memory model, it whether there is source corresponding to the memory model in interrogation model warehouse Code file;
If it is, return to source code file corresponding to memory model present in the model repository;
If not, being encoded to memory model, source code file is formed.
Optionally, after the static defining to the static procedural model parses, it is described will parsing after Static procedural model be stored in internal memory before, in addition to:
Judge the static procedural model in controlling stream aspect and layer data stream face according to the static procedural model after parsing It is whether correct;
If it is, the static procedural model after parsing is stored in internal memory, memory model is designated as.
Optionally, each element in the static procedural model includes:The beginning event of the static procedural model, knot Beam event, intermediate event, common task, human task, script task, selection gateway, parallel gateway etc..
Optionally, the parameter configuration includes:Time started, end time, executor, operation jar bags path, operation letter Several, operational factor, the method for operation, Run Script, artificial information, acquiescence output stream etc..
Optionally, title of the global configuration including the static procedural model, founder, version number etc..
Present invention also offers a kind of Complied executing system of static procedural model, the system includes:
Model acquiring unit, for obtaining static procedural model;
Model analyzing unit, it is quiet after being parsed for being parsed to the static defining of the static procedural model State procedural model, the static procedural model after the parsing include topological structure, the passive flow of the static procedural model The parameter configuration of each element, each element and the global configuration of the static procedural model in journey model;
Memory cell, for the static procedural model after parsing to be stored in internal memory, it is designated as memory model;
Source code generation unit, for being encoded to the memory model and being filled out to the code slots of Code Template Fill, obtain the source code file of the memory model, preserve the source code file;
Compilation unit, for being compiled to the source code in the source code file, generate corresponding to the source code Dynamic link library, preserve the dynamic link library;
Load and execution unit, for when needing to perform the static procedural model, loading the static procedural model pair The dynamic link library answered is into internal memory, to realize the execution of the static procedural model.
Optionally, the source code generation unit, is specifically included:
Parameter configuration extracts subelement, for extracting the parameter configuration of the memory model, the parameter of the memory model Configuration includes the title of the static procedural model and version number corresponding to the memory model;
Subelement is inquired about, for the parameter configuration according to the memory model, whether there is in interrogation model warehouse described Source code file corresponding to memory model;
Subelement is returned to, for when source code file corresponding to the memory model in model repository be present, returning to institute State source code file corresponding to memory model present in model repository;
Coded sub-units, for when source code file corresponding to the memory model is not present in model repository, internally Deposit model to be encoded, form source code file.
Optionally, the system also includes:
Judging unit, for judging the static procedural model in controlling stream aspect according to the static procedural model after parsing It is whether correct with layer data stream face.
According to specific embodiment provided by the invention, the invention discloses following technique effect:The present invention is by by static state Procedural model is parsed, and the topological structure and parameter configuration of reading model, is then corresponding by static flow model conversation The program source code of logic, and compile source code into dynamic link library, and sequence source code and compilation of source code are preserved into dynamic State chained library, when static flow model instance needs operation, dynamic link library is into internal memory corresponding to loading, you can realizes quiet The execution of state procedural model example.Due to the present invention by static flow model conversation for the program source code of counterlogic and Dynamic link library, and it is preserved, when this to need to perform every time the static procedural model, only it need to load dynamic chain Connect storehouse can directly to be performed, refer to without the sentence in the source code of static procedural model is switched into machine sentence by sentence every time Order, and then computer performs again, avoids the waste to computer resource, improves execution efficiency.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to institute in embodiment The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the compiling implement method flow chart of static state procedural model of the embodiment of the present invention;
Fig. 2 is the execution Organization Chart of static state procedural model of the embodiment of the present invention;
Fig. 3 is that static state flow of embodiment of the present invention solution to model analyses flow chart;
Fig. 4 is the flow chart of source code generating process of the embodiment of the present invention;
Fig. 5 is the flow chart that the embodiment of the present invention loads dynamic link library;
Fig. 6 is the Complied executing system structure diagram of static state procedural model of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
It is an object of the invention to provide a kind of compiling implement method and system of static procedural model, it is possible to increase performs quiet The efficiency of state procedural model, suitable for the operation of the flow instance of complexity.
In order to facilitate the understanding of the purposes, features and advantages of the present invention, it is below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is further detailed explanation.
Fig. 1 is the compiling implement method flow chart of static state procedural model of the embodiment of the present invention, as shown in figure 1, the present invention is quiet The compiling implement method step of state procedural model is as follows:
Step 101:Obtain static procedural model;
Step 102:The static defining of the static procedural model is parsed, the static flow mould after being parsed Type, the static procedural model after the parsing are included in the topological structure of the static procedural model, the static procedural model Each element, the parameter configuration of each element and the global configuration of the static procedural model;
Step 103:Static procedural model after parsing is stored in internal memory, is designated as memory model;
Step 104:To being encoded to the memory model and the code slots of Code Template being filled, obtain described The source code file of memory model, preserve the source code file;
Step 105:Source code in the source code file is compiled, generates dynamic chain corresponding to the source code Storehouse is connect, preserves the dynamic link library;
Step 106:When needing to perform the static procedural model, dynamic chain corresponding to the static procedural model is loaded Storehouse is connect into internal memory, to realize the execution of the static procedural model.
Wherein, step 104 specifically includes:
The parameter configuration of the memory model is extracted, the parameter configuration of the memory model is corresponding including the memory model The static procedural model title and version number;
According to the parameter configuration of the memory model, it whether there is source corresponding to the memory model in interrogation model warehouse Code file;
If it is, return to source code file corresponding to memory model present in the model repository;
If not, being encoded to memory model, source code file is formed.
Preferably, the compiling implement method of the static procedural model also includes:
Parsed in the static defining to the static procedural model, after the static procedural model after being parsed, Judge whether the static procedural model is correct in controlling stream aspect and layer data stream face according to the static procedural model after parsing;
If it is, the static procedural model after parsing is stored in internal memory, memory model is designated as.
In above method step, each element in the static procedural model includes:The static procedural model Beginning event, End Event, intermediate event, common task, human task, script task, selection gateway, parallel gateway etc..
The parameter configuration includes:Time started, end time, executor, operation jar bags path, operation function name, fortune Row parameter, the method for operation, Run Script, artificial information, acquiescence output stream etc..
Title of the global configuration including the static procedural model, founder, version number etc..
As another embodiment of the present invention, static procedural model is that the formalization of determination process or graphicalization are retouched State, in order to improve the execution efficiency of static procedural model, it is necessary to establish model solution parser reading model topological structure and Parameter setting, then by code generator by the program source code that model conversation is counterlogic, and by compiler by source Code compilation is into dynamic link library, and when model instance needs operation, dynamic link library is into internal memory corresponding to loading, you can real The execution of existing model instance.The state switching of one flow instance of last scheduler schedules also needs to monitor simultaneously, passes through scheduling The multiple flow instances of algorithmic dispatching.
Fig. 2 is the execution Organization Chart of static state procedural model of the embodiment of the present invention, as shown in Fig. 2 model solution parser, model solution The major responsibility of parser is that the static defining of static procedural model is parsed, obtain static procedural model topological structure, Each element in static procedural model (such as starts event, End Event, intermediate event, common task, human task, pin This task, selection gateway, parallel gateway etc.) relevant parameter configuration (such as time started, end time, executor, operation Jar bags path, operation function name, operational factor, the method for operation, Run Script, artificial information, acquiescence output stream etc.) and it is whole The global configuration (such as model name, model creation person, model version number etc.) of individual static procedural model.
Fig. 3 is that static state flow of embodiment of the present invention solution to model analyses flow chart, as shown in figure 3, with static procedural model Static defining form be XML file configuration exemplified by, first pass through the parsing to computer language extract it is quiet corresponding to each label The global configuration and its topological structure of state procedural model, the correctness for checking the controlling stream aspect of static procedural model (are, for example, It is no containing beginning event and end time, with the presence or absence of isolated node, with the presence or absence of part for being unsatisfactory for element semantic etc.); In the case where ensureing the correctness of controlling stream aspect of static procedural model, the relevant parameter for extracting each model element is matched somebody with somebody Put, the inspection of correctness then is carried out (for example whether no initialization be present just is used as certain to the data flow aspect of static models The variable of activity input, if exist from beginning to end without variable used etc.);In the situation that layer data stream correctness ensures Under, whole static procedural model is stored in the model object in internal memory, turns into memory model.The topology knot of the memory model The parameter of structure, each element and whole model is obtained from XML definition file, and memory model has been obtained for next with this Step uses.Herein, the parameter of the topological structure of memory model, each element and whole model is opening up for static procedural model Flutter the parameter of structure, each element and whole model.
Code generator, the purpose of code generator are that logic corresponding to memory model is performed to the shape for being converted into code Formula.The problem of being brought in order to avoid the code building mode of " path formula " (such as code it is long, the feelings such as Mutiple Choice should not be handled Condition), we devise the code building mode of a kind of " process apperception ", and this design considerably reduces code length, and has There is stronger robustness.
Fig. 4 be source code generating process of the embodiment of the present invention flow chart, as shown in figure 4, code generator firstly the need of Input memory model and Code Template (Code Template be for various model elements semanteme carry out corresponding execution not with model The code content to change, the code slots in Code Template are filled content corresponding to "current" model are adapted to this, Code slots are the code content that is changed with model), extraction model parameter configuration (such as model name, the version in memory model This number etc.), these parameter configurations are filled in model parameter groove corresponding to Code Template;Then current model repository is inquired about In whether there is the corresponding file of memory model version, if in the presence of directly returning to the memory model version generated before Source code;If being not present, need by being encoded to memory model, the corresponding coding file of formation (such as XML, The files such as JSON), the coding file is that (such as memory object is encapsulated as Json formatted files by the coded system of prior art Or the technology such as XML format file) memory model is encoded, read source generation into coding file when performing memory model Code, so that the execution of source code is not the stiff mode of " path formula " but carried out according to the memory model of intermediate file storage Flexibly perform " sensing type ";Finally, source code file corresponding to the memory model is created, and by the Code Template after filling It is stored in as source code file.
Compiler, compiler is mainly by dynamic link corresponding to compilation of source code corresponding to static procedural model into it Storehouse.Dynamic link library is a kind of storehouse, when needing to load it in program operation, is just loaded into internal memory.
Because the execution of flow instance is to be performed to determine by the logic of corresponding static procedural model, so when flow is real During example operation, corresponding static procedural model is first called.But it is not often in advance that all static procedural models is direct It is loaded into internal memory, because can so cause internal memory greatly to waste.So procedural model will can be dynamically loaded into In depositing.
Dynamic load is a kind of operating mechanism loaded in storehouse or binary system to internal memory of computer program, retrieval dynamic The address of function and variable in storehouse is loaded, these functions is performed or accesses these variables, and dynamic link can be unloaded from internal memory Storehouse.Program never calls these dynamic link libraries when starting, and when finding to need to call the function in dynamic link library, then enters Row loading.Most of dynamic load is by operating system or I/O subsystem processes.In UNIX, Solaris, Linux, often Dynamic load library suffix name is that " the dynamic load library suffix name under * .so ", Windows systems is " * .dll ".There is also System does not support dynamic load, such as Plan 9.Most computer language both provides loads behaviour to the frame of dynamic link library Make, such as load dynamic link libraries, search the correlation technique that static flow model logic performs, processing is abnormal, unloads Dynamic link library Storehouse etc..
Fig. 5 is the flow chart that the embodiment of the present invention loads dynamic link library, as shown in figure 5, by static flow model source generation Code is compiled into dynamic link library, when static procedural model needs to be loaded, loads dynamic link library into internal memory, when flow is real During example operation, the correlation technique that static flow model logic performs is searched, it is detachable when the static procedural model need not be used Carry dynamic link library.
Scheduler, a flow instance, which typically has, to be created, and is activated, is hung up, and is terminated and is completed.Establishment refers to flow instance Just create.The state that flow instance normally performs is operation.When suspend this flow instance operation state cry hang-up, work as recovery When, flow state becomes state of activation.If flow instance operation goes wrong or abnormal state is termination.Order completes stream The execution of all tasks, is named completion in journey model.The switching of flow instance state is needed to be responsible for by scheduler, and scheduler is not only adjusted The operation of a flow instance is spent, state switching also needs to monitor simultaneously, dispatches multiple flow instances by dispatching algorithm.
The compiling implement method of static procedural model provided by the invention is read by the way that static procedural model is parsed The topological structure and parameter configuration of modulus type, then by the program source code that static flow model conversation is counterlogic, and will Compilation of source code preserves sequence source code and compilation of source code into dynamic link library into dynamic link library, when static flow mould When type example needs operation, dynamic link library is into internal memory corresponding to loading, you can realizes the execution of static flow model instance. Due to the present invention by static flow model conversation for the program source code and dynamic link library of counterlogic, and it is carried out Preserve, when this to need to perform every time the static procedural model, only need to load dynamic link library can and directly be held OK, without the sentence in the source code of static procedural model is switched into machine instruction sentence by sentence every time, and then computer performs again, The waste to computer resource is avoided, improves execution efficiency.
Present invention also offers a kind of Complied executing system of static procedural model, Fig. 6 is passive flow of the embodiment of the present invention The Complied executing system structure diagram of journey model, as shown in fig. 6, the system includes:
Model acquiring unit 601, for obtaining static procedural model;
Model analyzing unit 602, for being parsed to the static defining of the static procedural model, after being parsed Static procedural model, the static procedural model after the parsing include the topological structure of the static procedural model, the static state The parameter configuration of each element, each element and the global configuration of the static procedural model in procedural model;
Memory cell 603, for the static procedural model after parsing to be stored in internal memory, it is designated as memory model;
Source code generation unit 604, for being encoded to the memory model and being carried out to the code slots of Code Template Filling, obtains the source code file of the memory model, preserves the source code file;
Compilation unit 605, for being compiled to the source code in the source code file, it is corresponding to generate the source code Dynamic link library, preserve the dynamic link library;
Load and execution unit 606, for when needing to perform the static procedural model, loading the static procedural model Corresponding dynamic link library is into internal memory, to realize the execution of the static procedural model.
Wherein, the source code generation unit 604, is specifically included:
Parameter configuration extracts subelement, for extracting the parameter configuration of the memory model, the parameter of the memory model Configuration includes the title of the static procedural model and version number corresponding to the memory model;
Subelement is inquired about, for the parameter configuration according to the memory model, whether there is in interrogation model warehouse described Source code file corresponding to memory model;
Subelement is returned to, for when source code file corresponding to the memory model in model repository be present, returning to institute State the source code file in model repository;
Coded sub-units, for when source code file corresponding to the memory model is not present in model repository, internally Deposit model to be encoded, form source code file.
The system also includes:
Judging unit, for judging the static procedural model in controlling stream aspect according to the static procedural model after parsing It is whether correct with layer data stream face.
Each element in the static procedural model includes:The beginning event of the static procedural model, End Event, Intermediate event, common task, human task, script task, selection gateway, parallel gateway etc..
The parameter configuration includes:Time started, end time, executor, operation jar bags path, operation function name, fortune Row parameter, the method for operation, Run Script, artificial information, acquiescence output stream etc..
Title of the global configuration including the static procedural model, founder, version number etc..
The Complied executing system of static procedural model provided by the invention is read by the way that static procedural model is parsed The topological structure and parameter configuration of modulus type, then by the program source code that static flow model conversation is counterlogic, and will Compilation of source code preserves sequence source code and compilation of source code into dynamic link library into dynamic link library, when static flow mould When type example needs operation, dynamic link library is into internal memory corresponding to loading, you can realizes the execution of static flow model instance. Due to the present invention by static flow model conversation for the program source code and dynamic link library of counterlogic, and it is carried out Preserve, when this to need to perform every time the static procedural model, only need to load dynamic link library can and directly be held OK, without the sentence in the source code of static procedural model is switched into machine instruction sentence by sentence every time, and then computer performs again, The waste to computer resource is avoided, improves execution efficiency.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.For system disclosed in embodiment For, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is said referring to method part It is bright.
Specific case used herein is set forth to the principle and embodiment of the present invention, and above example is said It is bright to be only intended to help the method and its core concept for understanding the present invention;Meanwhile for those of ordinary skill in the art, foundation The thought of the present invention, in specific embodiments and applications there will be changes.In summary, this specification content is not It is interpreted as limitation of the present invention.

Claims (9)

1. a kind of compiling implement method of static procedural model, it is characterised in that methods described includes:
Obtain static procedural model;
The static defining of the static procedural model is parsed, the static procedural model after being parsed, after the parsing The topological structure of static procedural model including the static procedural model, each element in the static procedural model, each The global configuration of the parameter configuration of the element and the static procedural model;
Static procedural model after parsing is stored in internal memory, is designated as memory model;
The memory model is encoded and the code slots of Code Template are filled, obtains the source generation of the memory model Code file, preserves the source code file;
Source code in the source code file is compiled, generates dynamic link library corresponding to the source code, preserves institute State dynamic link library;
When needing to perform the static procedural model, dynamic link library corresponding to the static procedural model is loaded to internal memory In, to realize the execution of the static procedural model.
2. compiling implement method according to claim 1, it is characterised in that it is described that the memory model is encoded, The source code file of the memory model is obtained, is specifically included:
The parameter configuration of the memory model is extracted, the parameter configuration of the memory model includes institute corresponding to the memory model State title and the version number of static procedural model;
According to the parameter configuration of the memory model, it whether there is source code corresponding to the memory model in interrogation model warehouse File;
If it is, return to source code file corresponding to memory model present in the model repository;
If not, being encoded to memory model, source code file is formed.
3. compiling implement method according to claim 1, it is characterised in that described to the quiet of the static procedural model After state definition is parsed, before the static procedural model by after parsing is stored in internal memory, in addition to:
According to the static procedural model after parsing judge the static procedural model controlling stream aspect and layer data stream face whether Correctly;
If it is, the static procedural model after parsing is stored in internal memory, memory model is designated as.
4. compiling implement method according to claim 1, it is characterised in that each element in the static procedural model Including:The beginning event of the static procedural model, End Event, intermediate event, common task, human task, script task, Select gateway, parallel gateway.
5. compiling implement method according to claim 1, it is characterised in that the parameter configuration includes:Time started, knot Beam time, executor, operation jar bags path, operation function name, operational factor, the method for operation, Run Script, artificial information, write from memory Give up and stream.
6. compiling implement method according to claim 1, it is characterised in that the global configuration includes the static flow The title of model, founder, version number.
7. a kind of Complied executing system of static procedural model, it is characterised in that the system includes:
Model acquiring unit, for obtaining static procedural model;
Model analyzing unit, for being parsed to the static defining of the static procedural model, the passive flow after being parsed Journey model, the static procedural model after the parsing include topological structure, the static flow mould of the static procedural model The parameter configuration of each element, each element and the global configuration of the static procedural model in type;
Memory cell, for the static procedural model after parsing to be stored in internal memory, it is designated as memory model;
Source code generation unit, for being encoded to the memory model and the code slots of Code Template being filled, obtain To the source code file of the memory model, the source code file is preserved;
Compilation unit, for being compiled to the source code in the source code file, generate dynamic corresponding to the source code Chained library, preserve the dynamic link library;
Load and execution unit, for when needing to perform the static procedural model, loading corresponding to the static procedural model Dynamic link library is into internal memory, to realize the execution of the static procedural model.
8. Complied executing system according to claim 7, it is characterised in that the source code generation unit, specifically include:
Parameter configuration extracts subelement, for extracting the parameter configuration of the memory model, the parameter configuration of the memory model Including the title of the static procedural model and version number corresponding to the memory model;
Subelement is inquired about, for the parameter configuration according to the memory model, whether there is the internal memory in interrogation model warehouse Source code file corresponding to model;
Subelement is returned to, for when source code file corresponding to the memory model in model repository be present, returning to the mould Source code file corresponding to memory model present in type warehouse;
Coded sub-units, for when source code file corresponding to the memory model is not present in model repository, to internal memory mould Type is encoded, and forms source code file.
9. Complied executing system according to claim 7, it is characterised in that the system also includes:
Judging unit, for judging the static procedural model in controlling stream aspect sum according to the static procedural model after parsing It is whether correct according to fluid layer face.
CN201710573178.9A 2017-07-14 2017-07-14 Compiling and executing method and system of static flow model Active CN107463421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710573178.9A CN107463421B (en) 2017-07-14 2017-07-14 Compiling and executing method and system of static flow model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710573178.9A CN107463421B (en) 2017-07-14 2017-07-14 Compiling and executing method and system of static flow model

Publications (2)

Publication Number Publication Date
CN107463421A true CN107463421A (en) 2017-12-12
CN107463421B CN107463421B (en) 2020-03-31

Family

ID=60544140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710573178.9A Active CN107463421B (en) 2017-07-14 2017-07-14 Compiling and executing method and system of static flow model

Country Status (1)

Country Link
CN (1) CN107463421B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108304229A (en) * 2018-01-30 2018-07-20 北京市安全生产科学技术研究院 A kind of safety in production VR real trainings outpost of the tax office model dynamic load generation method and system
WO2020056937A1 (en) * 2018-09-19 2020-03-26 深圳大学 Syntax extension method based on c language, apparatus and terminal device
CN111596972A (en) * 2020-05-15 2020-08-28 北京小米松果电子有限公司 Neural network model storage method, loading method, device, equipment and storage medium
CN116795378A (en) * 2023-08-18 2023-09-22 宁波数益工联科技有限公司 Method and device for arranging and executing process based on code dynamic compiling

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004038225A (en) * 2002-06-28 2004-02-05 Fujitsu Ltd Compiler program and compiling method
CN1975669A (en) * 2006-12-15 2007-06-06 中兴通讯股份有限公司 Method for service logic mapping onto applied language discribed by XML language
CN101256492A (en) * 2008-03-31 2008-09-03 宋乃辉 Software development method and system for executing model drive structure
CN103135984A (en) * 2011-11-28 2013-06-05 软件股份公司 Method and system for automated deployment of processes to a distributed network environment
CN106484898A (en) * 2016-10-21 2017-03-08 用友网络科技股份有限公司 A kind of method and device of the dynamic generation Web system page
CN106649077A (en) * 2015-11-02 2017-05-10 中国船舶工业***工程研究院 Method for automatically generating TPS

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004038225A (en) * 2002-06-28 2004-02-05 Fujitsu Ltd Compiler program and compiling method
CN1975669A (en) * 2006-12-15 2007-06-06 中兴通讯股份有限公司 Method for service logic mapping onto applied language discribed by XML language
CN101256492A (en) * 2008-03-31 2008-09-03 宋乃辉 Software development method and system for executing model drive structure
CN103135984A (en) * 2011-11-28 2013-06-05 软件股份公司 Method and system for automated deployment of processes to a distributed network environment
CN106649077A (en) * 2015-11-02 2017-05-10 中国船舶工业***工程研究院 Method for automatically generating TPS
CN106484898A (en) * 2016-10-21 2017-03-08 用友网络科技股份有限公司 A kind of method and device of the dynamic generation Web system page

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108304229A (en) * 2018-01-30 2018-07-20 北京市安全生产科学技术研究院 A kind of safety in production VR real trainings outpost of the tax office model dynamic load generation method and system
CN108304229B (en) * 2018-01-30 2019-02-19 北京市安全生产科学技术研究院 A kind of safety in production VR real training outpost model dynamically load generation method and system
WO2020056937A1 (en) * 2018-09-19 2020-03-26 深圳大学 Syntax extension method based on c language, apparatus and terminal device
CN111596972A (en) * 2020-05-15 2020-08-28 北京小米松果电子有限公司 Neural network model storage method, loading method, device, equipment and storage medium
CN111596972B (en) * 2020-05-15 2023-09-26 北京小米松果电子有限公司 Neural network model storage method, loading method, device, equipment and storage medium
CN116795378A (en) * 2023-08-18 2023-09-22 宁波数益工联科技有限公司 Method and device for arranging and executing process based on code dynamic compiling
CN116795378B (en) * 2023-08-18 2023-11-21 宁波数益工联科技有限公司 Method and device for arranging and executing process based on code dynamic compiling

Also Published As

Publication number Publication date
CN107463421B (en) 2020-03-31

Similar Documents

Publication Publication Date Title
EP1582985B1 (en) Test case inheritance controlled via attributes
CN107463421A (en) A kind of compiling implement method and system of static procedural model
CN109189374B (en) Object structure code generation method and system based on object reference chain
CN110599183B (en) Intelligent contract calling method and device and storage medium
CN111752571A (en) Program upgrading method, device, equipment and storage medium
CN110069259B (en) ID L file-based parsing method and device, electronic equipment and storage medium
CN101937336A (en) Software asset bundling and consumption method and system
CN110673837B (en) Code repairing method and device, electronic equipment and computer readable storage medium
CN110109658B (en) ROS code generator based on formalized model and code generation method
Huszerl et al. Quantitative analysis of UML statechart models of dependable systems
Sanches et al. J-swfit: A java software fault injection tool
Mani et al. Test case generation for embedded system software using UML interaction diagram
US7340725B1 (en) Smart test attributes and test case scenario in object oriented programming environment
CN101980546B (en) Intelligent network platform, service execution method and method for analyzing service abnormality
CN112882751A (en) CUDA program migration method, device, electronic equipment and storage medium
CN112487092B (en) Intelligent contract calling method and device based on blockchain
CN111208991B (en) Program development method based on workflow, electronic equipment and storage medium
Terrier et al. Mde benefits for distributed, real time and embedded systems
Whittle et al. Scenario-based engineering of multi-agent systems
Soleimanifard et al. Procedure-modular specification and verification of temporal safety properties
Soleimanifard et al. ProMoVer: Modular verification of temporal safety properties
Ahrendt et al. A verification system for distributed objects with asynchronous method calls
KR100276086B1 (en) Method for generating a c++ code from lotos specitication
CN111324523B (en) Data processing method and device
de Amorim Fonseca Coping Modular Modeling with fUML

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