Method for automatically abstracting software architecture from embedded software code
A technology of embedded software and software architecture, applied in program control design, instrumentation, electrical digital data processing, etc., can solve problems such as inability to analyze the interaction and connection relationship of heritage codes, deterioration of software system quality assurance capabilities, and reduction of heritage code reuse. , to achieve the effect of improving reusability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 