Font Size: a A A

Extending Of Standard C To Surpport OOP

Posted on:2006-02-13Degree:MasterType:Thesis
Country:ChinaCandidate:W F ChenFull Text:PDF
GTID:2168360152970661Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
With the development of embedded hardware, on one hand, the scales of embedded software expand rapidly, with which the procedure-oriented program language couldn't come up; on the other hand, there are many obstacles to apply the available object-oriented program languages to the embedded system development. These obstacles result from the developers, the tools and the complexity of the object-oriented program language itself.With good efficiency, terseness and easy replanting, C is still a preferred program language in the embedded system development, and therefore a lot of embedded platforms surpport the C programing very well, such as cross debugging, variables inspection, and break debugging etc.To farthest keep the advantages of the C and make use of the original resources as well, this thesis at first analyses how to map the C programing semantic to 00 programing semantic, and then details how to use the C's macro to extend the C to become Object-C which can surpport OOP paradigm. Fianly, the thesis gives some instances to proof-test the abilitis of the Object-C in OOP paradigm.The thesis is divided into six chapters as following:Chapter 1 states the background and significance of the thesis and explains the main characteristics of the 00 itself and the OOP.Chapter 2 discusses how to map C programing semantic to OOP semantic based on reviewing the development of programing paradigm.Chapter 3 discusses the object model and the idea of metaclass to imprement it, and then details how to use the C's macros to extend the C to become the Object-C macro language which can surpport OOP paradigm.Chapter 4 discusses how to make the Object-C surpport type-safe, memory leak detecting characteristics etc., which facilitate the Object-C programing.Chapter 5 gives some test instances to proof-test the abilitis of the Object-C in OOP paradigm.Chapter 6 gives the Object-C development instance of embedded GUI and the conclusion.
Keywords/Search Tags:Embedded, OO, OOP, Programing Paradigm, Object Model
PDF Full Text Request
Related items