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
- 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
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com