Font Size: a A A

Improvement Of Embedded Systems In The Class Constructor

Posted on:2010-07-04Degree:MasterType:Thesis
Country:ChinaCandidate:Y S H OuFull Text:PDF
GTID:2208360275991870Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Embedded software footprint is usually restricted due to the limitation of DRAM and Flash. However, it is usually asked to support different HW configuration, different user interface or different protocols and standards with one code stack. Along with the software lifecycle, more and more features and modules are added, the complexity of system increases non-linearly, cost of development and maintenance increases dramatically also. It will enter into trouble if we can't decrease the coupling, increase reusability and the ability of customization, or even we have to rewrite all the code for the system.Based on many years of effort to resolve the predicament happened in projects, after analyzing memory allocation of the property and method of a class, we open out that the properties and method instance are allocated continuously in memory, this will lead to some requests in future not be supported well by the inherited classes. It will bring coupling or code redundancy. To solve this problem, this paper will raise a new method to construct class and construct derived classes. Properties and method instance will not be allocated in memory linearly, they will become a node of a list and exit in memory discretely. User will access property and method through querying names in list, all module API will be encapsulated by one unified function, AppDoCommand which using string as parameters.Some widgets are composed based on this idea and a development tool similar to VC was made and applied to author's company's product. After using this new solution, the number of property and method decreased to 1/N (N is the number of widgets type), many customers can be supported by one software code stack simultaneously, human resources needed for the project decreased by 71%.This paper is divided into seven chapters, the first chapter will introduce the background, related articles, architecture of the paper. The 2nd chapter will analyze the traditional inheritance and function calling mechanism. The 3rd chapter will introduce the new mechanism of declaring property and method with strings, declare function parameters with strings. The 4th chapter will make out a development tool similar to VC. The 5th chapter will analyze the performance and characters of the new program mechanism. The 6th chapter will discuss the further investigation direction. And make conclusion at last chapter.This paper brings up a new solution to construct a class through a list, and access property and method through names. Declare function parameters with strings, this is a new creative discussion on c programming, it will bring more in depth research in this area, also, hope such kind of investigation from the new point of view will do benefit to embedded software development.
Keywords/Search Tags:List, Class property, Class Method, String Parameters, Node, OO, Function Call
PDF Full Text Request
Related items