aCoral可執(zhí)行文件加載與線程交互機制的研究與設(shè)計
本文關(guān)鍵詞:aCoral可執(zhí)行文件加載與線程交互機制的研究與設(shè)計 出處:《電子科技大學(xué)》2012年碩士論文 論文類型:學(xué)位論文
更多相關(guān)文章: 任務(wù)加載 任務(wù)交互 aCoral 嵌入式系統(tǒng) 系統(tǒng)調(diào)用
【摘要】:隨著嵌入式硬件技術(shù)的不斷進步,嵌入式系統(tǒng)也由單一功能的工控設(shè)備開始向集成多種功能的復(fù)合型設(shè)備發(fā)展。目前嵌入式系統(tǒng)中采用操作系統(tǒng)與應(yīng)用任務(wù)統(tǒng)一編譯方式不夠靈活的缺點日益顯現(xiàn)。鑒于此點,必須采用某種機制將嵌入式操作系統(tǒng)與應(yīng)用任務(wù)分別處理。這種機制即是嵌入式平臺下的任務(wù)加載機制。 本文在深入研究PC平臺任務(wù)加載機制的基礎(chǔ)上,研究和閱讀了多種可執(zhí)行文件的格式說明,通過總結(jié)設(shè)計出嵌入式平臺下的可執(zhí)行應(yīng)用任務(wù)格式,任務(wù)加載器,以及內(nèi)核系統(tǒng)調(diào)用。同時,深入研究了任務(wù)之間的交互機制,并針對存在任務(wù)加載機制下任務(wù)的特點,設(shè)計了自旋鎖、互斥鎖、信號量,消息、讀寫鎖等任務(wù)交互工具。在研究與設(shè)計的基礎(chǔ)上,本文最終在多核實時嵌入式操作系統(tǒng)aCoral對任務(wù)加載和任務(wù)交互工具進行了實現(xiàn)。 嵌入式平臺的任務(wù)加載機制包括可執(zhí)行任務(wù)格式、任務(wù)加載器、內(nèi)核系統(tǒng)調(diào)用三個部分。其中可執(zhí)行任務(wù)格式包括函數(shù)庫的設(shè)計與鏈接方式、可執(zhí)行任務(wù)文件生成兩個方面。內(nèi)核系統(tǒng)調(diào)用包括內(nèi)核中的系統(tǒng)調(diào)用響應(yīng)和系統(tǒng)調(diào)用庫的設(shè)計兩個方面。任務(wù)交互機制的設(shè)計主要是任務(wù)交互工具的設(shè)計,任務(wù)交互工具包括自旋鎖、互斥鎖、信號量,消息、讀寫鎖的設(shè)計。 本文先介紹了驗證平臺aCoral的框架,然后詳細介紹了任務(wù)加載機制與任務(wù)交互機制的設(shè)計與實現(xiàn)。最后,對這兩種機制進行了功能與性能測試,測試結(jié)果表明,,任務(wù)加載機制可以正常加載外部應(yīng)用任務(wù)至內(nèi)存中執(zhí)行,任務(wù)交互機制可以確保任務(wù)間互斥、同步、通信的正常進行。
[Abstract]:With the development of embedded hardware technology. The embedded system has also been developed from a single function industrial control device to a multifunctional composite device. At present, the shortcomings of the unified compilation method of operating system and application task in embedded system are becoming increasingly obvious. ... in view of this. We must adopt some mechanism to deal with the embedded operating system and the application task separately, this mechanism is the task loading mechanism under the embedded platform. On the basis of deeply studying the task loading mechanism of PC platform, this paper studies and reads the format instructions of various executable files, and designs the executable application task format under embedded platform by summing up and designing. Task loader and kernel system call. At the same time, the interaction mechanism between tasks is deeply studied, and the spin lock, mutex lock, semaphore and message are designed according to the characteristics of the task under the task loading mechanism. On the basis of research and design, this paper finally implements the task loading and task interaction tools based on the embedded operating system aCoral. The task loading mechanism of embedded platform includes executable task format, task loader and kernel system call. There are two aspects of executable task file generation. Kernel system call includes two aspects: system call response in kernel and system call library design. Task interaction mechanism is mainly the design of task interaction tools. Task interaction tools include spin lock, mutex lock, semaphore, message, read and write lock design. This paper first introduces the framework of verification platform aCoral, and then introduces the design and implementation of task loading mechanism and task interaction mechanism in detail. Finally, the function and performance of these two mechanisms are tested. The test results show that the task loading mechanism can normally load the external application task into memory and the task interaction mechanism can ensure the mutually exclusive synchronization and communication between the tasks.
【學(xué)位授予單位】:電子科技大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2012
【分類號】:TP368.1
【參考文獻】
相關(guān)期刊論文 前4條
1 楊偉,羅蕾;嵌入式系統(tǒng)中的模塊動態(tài)加載技術(shù)[J];單片機與嵌入式系統(tǒng)應(yīng)用;2005年11期
2 王婧怡;應(yīng)忍冬;周玲玲;;微內(nèi)核系統(tǒng)直接加載ELF文件機制的設(shè)計與研究[J];信息技術(shù);2009年10期
3 程步奇,尹寶林;可動態(tài)擴展的嵌入式操作系統(tǒng)[J];小型微型計算機系統(tǒng);2003年02期
4 章琛曦,陳耀武;基于計算機網(wǎng)絡(luò)的嵌入式系統(tǒng)監(jiān)控軟件遠程動態(tài)加載方法[J];儀器儀表學(xué)報;2001年S2期
相關(guān)碩士學(xué)位論文 前3條
1 申建晶;嵌入式多核實時操作系統(tǒng)研究及實現(xiàn)[D];電子科技大學(xué);2011年
2 王政霞;嵌入式環(huán)境下的動態(tài)加載機制的設(shè)計與實現(xiàn)[D];重慶大學(xué);2004年
3 祝平輝;MTK平臺終端軟件動態(tài)加載技術(shù)的研究與應(yīng)用[D];中南大學(xué);2010年
本文編號:1412358
本文鏈接:http://www.sikaile.net/kejilunwen/jisuanjikexuelunwen/1412358.html