Method for automatically abstracting software architecture from embedded software code

A technology of embedded software and software architecture, applied in the direction of program control design, instrumentation, electrical digital data processing, etc., can solve problems such as the inability to analyze the interactive connection relationship of legacy codes, reduce the reusability of legacy codes, and the difficulty of quantitative analysis of non-functional attributes, etc. , to achieve the effect of improving reusability

Inactive Publication Date: 2010-08-18
NORTHWESTERN POLYTECHNICAL UNIV
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, most of the existing legacy software only has software codes, without architecture description and interaction information between components in the architecture, it is difficult for software professionals to use AADL and its tools to analyze software attributes at the software architecture level , in the process of system maintenance and new system design, it is impossible to analyze the interaction between components in the legacy code, and the connection relationship between hardware and software. Therefore, it is difficult to quantitatively analyze the non-functional attributes of newly developed or maintained software, thus Reduces the reusability of legacy code and reduces the quality assurance capability of software systems

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for automatically abstracting software architecture from embedded software code
  • Method for automatically abstracting software architecture from embedded software code
  • Method for automatically abstracting software architecture from embedded software code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] Now in conjunction with embodiment, accompanying drawing, the present invention will be further described:

[0037] For example, abstract the structure of the source code segment under the VxWorks system as follows:

[0038] #include "vxWorks.h"

[0039] #include "msgQLib.h"

[0040] #define MAX_MSGS(10)

[0041] #define MAX_MSG_LEN(100)

[0042] #define MESSAGE “Greetings from Task 1”

[0043] MSG_Q_ID myMsgQId;

[0044] task1(void)

[0045] {

[0046] if((myMsgQId=msgQCreate(MAX_MSGS, MAX_MSG_LEN, MSG_Q_PRIORITY))==NULL)

[0047] return(ERROR);

[0048] if(msgQSend(myMsgQId, MESSAGE, sizeof(MESSAGE), WAIT_FOREVER, MSG_PRI_NORMAL)=

[0049] =ERROR)

[0050] return(ERROR);

[0051]}

[0052] task2(void)

[0053] {

[0054] char msgBuf[MAX_MSG_LEN];

[0055] if(msgQReceive(myMsgQId, msgBuf, MAX_MSG_LEN, WAIT_FOREVER)==ERROR)

[0056] return(ERROR);

[0057] printf("Message from task 1:\n%s\n", msgBuf);

[0058]}

[0059] According to step 1, start checki...

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

PUM

No PUM Login to view more

Abstract

The invention relates to a method for automatically abstracting software architecture from embedded software code. The method has the technical characteristics that: source code of embedded software system is automatically checked, the words in the source code are classified into data definition type, operational sign type, control statement type and function creation type. After check is finished, in the method, corresponding DTD document is defined according the characteristics of data definition type and function creation type, XML language is used for describing check result, and the described result is analyzed. According to the analyzed result, corresponding model construction member is obtained in AADL model space, AADL text is used for describing the model construction member, thus forming the architecture model of software source code. The invention solves the description of interaction relationship of architecture abstract and construction member of legacy code, is beneficial to analysis of system non-function attribute and improves reusage of legacy code and quality of software system.

Description

technical field [0001] The invention relates to a method for automatically abstracting software architecture from embedded software codes and a technology for abstracting software architecture in embedded software applications. Background technique [0002] With the development of computer software technology, in the process of designing and implementing new software systems, the reference function of legacy software is becoming more and more prominent, and software reuse technology is particularly important. For the role that legacy software can play, in addition to the data it retains, what is more important is its own architectural model. Because, based on the understanding of the legacy software architecture model, we can better expand or tailor the functions of the software and design a better maintenance solution. At the same time, by using a reasonable description method to describe the software system architecture, technicians in different fields can better understa...

Claims

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44G06F9/45
Inventor 董云卫覃杨森张凡周兴社王庚
Owner NORTHWESTERN POLYTECHNICAL UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products