




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領
文檔簡介
1、the introduction of keil cthe keil software 8051 development tools listed below are programs you use to compile your c code, assemble your assembly source files, link and locate object modules and libraries, create hex files, and debug your target program.vision2 for windows is an integrated develop
2、ment environment that combines project management, source code editing, and program debugging in one single, powerful environment.the c51 ansi optimizing c cross compiler creates relocatable object modules from your c source code.the a51 macro assembler creates relocatable object modules from your 8
3、051 assembly source code.the bl51 linker/locator combines relocatable object modules created by the c51 compiler and the a51 assembler into absolute object modules.the lib51 library manager combines object modules into libraries that may be used by the linker.the oh51 object-hex converter creates in
4、tel hex files from absolute object modules.the rtx-51 real-time operating system simplifies the design of complex, time-critical software projects.software development cyclewhen you use the keil software tools, the project development cycle is roughly the same as it is for any other software develop
5、ment project. 1. create a project, select the target chip from the device database, and configure the tool settings.2. create source files in c or assembly.3. build your application with the project manager.4. correct errors in source files.5. test the linked application.vision2 idethe vision2 ide c
6、ombines project management, a rich-featured editor with interactive error correction, option setup, make facility, and on-line help. use vision2 to create your source files and organize them into a project that defines your target application. vision2 automatically compiles, assembles, and links you
7、r embedded application and provides a single focal point for your development efforts.lib51 library managerthe lib51 library manager allows you to create object library from the object files created by the compiler and assembler. libraries are specially formatted, ordered program collections of obje
8、ct modules that may be used by the linker at a later time. when the linker processes a library, only those object modules in the library that are necessary to create the program are used.bl51 linker/locatorthe bl51 linker creates an absolute object module using the object modules extracted from libr
9、aries and those created by the compiler and assembler. an absolute object file or module contains no relocatable code or data. all code and data reside at fixed memory locations. the absolute object file may be used:to program an eprom or other memory devices,with the vision2 debugger for simulation
10、 and target debugging,with an in-circuit emulator for the program testing.vision2 debuggerthe vision2 symbolic, source-level debugger is ideally suited for fast, reliable program debugging. the debugger includes a high-speed simulator that let you simulate an entire 8051 system including on-chip per
11、ipherals and external hardware. the attributes of the chip you use are automatically configured when you select the device from the device database.the vision2 debugger provides several ways for you to test your programs onreal target hardware:install the mon51 target monitor on your target system a
12、nd download your program using the monitor-51 interface built-in to the vision2 debugger.use the advanced gdi interface to attach use the vision2 debugger front end with your target system.monitor-51the vision2 debugger supports target debugging using monitor-51. the monitor program resides in the m
13、emory of your target hardware and communicates with the vision2 debugger using the serial port of the 8051 and a com port of your pc. with monitor-51, vision2 lets you perform source-level, symbolic debugging on your target hardware.rtx51 real-time operating systemthe rtx51 real-time operating syste
14、m is a multitasking kernel for the 8051 microcontroller family. the rtx51 real-time kernel simplifies the system design, programming, and debugging of complex applications where fast reaction to time critical events is essential. the kernel is fully integrated into the c51 compiler and is easy to us
15、e. task description tables and operating system consistency are automatically controlled by the bl51 linker/locator.c51 optimizing c cross compilerthe keil c51 cross compiler is an ansi c compiler that was writtenspecifically to generate fast, compact code for the 8051 microcontroller family.the c51
16、 compiler generates object code that matches the efficiency and speedof assembly programming.using a high-level language like c has many advantages over assembly languageprogramming:knowledge of the processor instruction set is not required. rudimentary knowledge of the memory structure of the 8051
17、cpu is desirable (but not necessary).details like register allocation and addressing of the various memory types and data types is managed by the compiler.programs get a formal structure (which is imposed by the c programming language) and can be divided into separate functions. this contributes to
18、source code reusability as well as better overall application structure.the ability to combine variable selection with specific operations improves program readability.keywords and operational functions that more nearly resemble the human thought process may be used.programming and program test time
19、 is drastically reduced.the c run-time library contains many standard routines such as: formatted output, numeric conversions, and floating-point arithmetic.existing program parts can be more easily included into new programs because of modular program construction techniques.the language c is a ver
20、y portable language (based on the ansi standard) that enjoys wide popular support and is easily obtained for most systems.existing program investments can be quickly adapted to other processors as needed.code optimizationsthe c51 compiler is an aggressive optimizing compiler that takes numerous step
21、s to ensure that the code generated and output to the object file is the most efficient (smallest and/or fastest) code possible. the compiler analyzes the generated code to produce the most efficient instruction sequences. this ensures that your c program runs as quickly and effectively as possible
22、in the least amount of code space. the c51 compiler provides nine different levels of optimizing. each increasing level includes the optimizations of levels below it. the following is a list of all optimizations currently performed by the c51 compiler.general optimizationsconstant folding: constant
23、values occurring in an expression or address calculation are combined as a single constant.jump optimizing: jumps are inverted or extended to the final target address when the program efficiency is thereby increased.dead code elimination: code that cannot be reached (dead code) is removed from the p
24、rogram. register variables: automatic variables and function arguments are located in registers whenever possible. no data memory space is reserved for these variables.parameter passing via registers: a maximum of three function argumentsmay be passed in registers.global common subexpression elimina
25、tion: identical subexpressions or address calculations that occur multiple times in a function are recognized and calculated only once whenever possible.common tail merging: common instruction blocks are merged together using jump instructions.re-use common entry code: common instruction sequences a
26、re moved in front of a function to reduce code size.common block subroutines: multiple instruction sequences are packed into subroutines. instructions are rearranged to maximize the block size. 中文譯文keil c 簡介keil software 的8051開發(fā)工具提供以下程序,你可以用它們來編譯你的c源碼,匯編你的匯編源程序,連接和重定位你的目標文件和庫文件,創(chuàng)建hex文件,調(diào)試你的目標程序。wind
27、ows應用程序uvision2是一個集成開發(fā)環(huán)境,它把項目管理,源代碼編輯,程序調(diào)試等集成到一個功能強大的環(huán)境中。c51美國標準優(yōu)化c交叉編譯器從你的c源代碼產(chǎn)生可重定位的目標文件。a51宏匯編器從你的8051匯編源代碼產(chǎn)生可重定位的目標文件。bl51連接/重定位器組合你的由c51和a51產(chǎn)生的可重定位的目標文件,生成絕對目標文件。lib51庫管理器組合你的目標文件,生成可以被連接器使用的庫文件。oh51目標文件到hex格式的轉(zhuǎn)換器從絕對目標文件創(chuàng)建intel hex 格式的文件。rtx-51實時操作系統(tǒng)簡化了復雜和對時間要求敏感的軟件項目。軟件開發(fā)流程當你使用keil software工具時
28、,你的項目開發(fā)流程和其它軟件開發(fā)項目的流程極其相似。1. 創(chuàng)建一個項目,從器件庫中選擇目標器件,配置工具設置。2. 用c語言或匯編語言創(chuàng)建源程序。3. 用項目管理器實現(xiàn)你的應用。4. 修改源程序中的錯誤。5. 測試,連接應用。uvision2 ideuvision2 集成開發(fā)環(huán)境集成了一個項目管理器,一個功能豐富、有錯誤提示的編輯器,以及設置選項,生成工具,在線幫助。利用uvision2創(chuàng)建你的源代碼并把它們組織到一個能確定你的目標應用的項目中去。uvision2自動編譯,匯編,連接你的嵌入式應用,并為你的開發(fā)提供一個單一的焦點。c51編譯器和a51匯編器源代碼由uvision2 ide創(chuàng)建,
29、并被c51編譯或a51匯編。編譯器和匯編器從源代碼生成可重定位的目標文件。keil c51編譯器完全遵照ansi c語言標準,支持c語言的所有標準特性。另外,直接支持8051結(jié)構(gòu)的幾個特性被添加到里面。keil a51宏匯編器支持8051及其派生系列的全部指令集。lib51 庫管理器lib51庫管理器允許你從由編譯器或匯編器生成的目標文件創(chuàng)建目標庫。庫是一種被特別地組織過并在以后可以被連接重用的對象模塊。當連接器處理一個庫時,僅僅那些被使用的目標模塊才被真正使用。bl51 連接器/定位器bl51 連接器/定位器利用從庫中提取的目標模塊和由編譯器或匯編器生成的目標模塊創(chuàng)建一個絕對地址的目標模塊。
30、一個絕對地址目標模塊或文件包含不可重定位的代碼和數(shù)據(jù)。所有的代碼和數(shù)據(jù)被安置在固定的存儲器單元中。此絕對地址目標文件可以用來:寫入eprom或其它存儲器件。由uvision2調(diào)試器使用來模擬和調(diào)試。由仿真器用來測試程序。uvision2 調(diào)試器uvision2源代碼級調(diào)試器是一個理想地快速,可靠的程序調(diào)試器。此調(diào)試器包含一個高速模擬器,能夠讓你模擬整個8051系統(tǒng),包括片上外圍器件和外部硬件。當你從器件庫中選擇器件時,這個器件的特性將自動配置。uvision2調(diào)試器為你在實際目標板上測試你的程序提供了幾種方法:安裝mon51目標監(jiān)控器到你的目標系統(tǒng)并且通過monitor-51接口下載你的程序。利用高級的gdi(agdi)接口,把uvision2調(diào)試器綁定到你的目標系統(tǒng)。monitor-51uvision2調(diào)試器支持用monitor-51進行目標板調(diào)試。此監(jiān)控程序駐留在你的目標板的 存儲器里,它利用串口和uvision2調(diào)試器進行通信。利用monitor-51,uvision2調(diào)試器 可以對你的目標硬件實行源代碼級的調(diào)試。rtx51實時操作系統(tǒng)rtx51實時操作系統(tǒng)是一個針對8051系列的多任務核。rtx51實時內(nèi)核從本質(zhì)上簡化了對實時事件反應速度要求高的復雜應用系統(tǒng)的設計,編程和調(diào)試。rtx51實時內(nèi)核是完全
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 全國粵教版信息技術(shù)八年級下冊第二單元第十五課《數(shù)碼顯示與無線通信的實現(xiàn)》教學設計
- 云南經(jīng)貿(mào)外事職業(yè)學院《社會問題與對策》2023-2024學年第二學期期末試卷
- 遼寧建筑職業(yè)學院《中學生物學課程標準與教材研究》2023-2024學年第二學期期末試卷
- 重慶移通學院《精細化工綜合實訓》2023-2024學年第二學期期末試卷
- 廣西體育高等專科學?!斗b美學》2023-2024學年第二學期期末試卷
- 南昌交通學院《電子科學與技術(shù)專業(yè)創(chuàng)新課程》2023-2024學年第二學期期末試卷
- 克拉瑪依職業(yè)技術(shù)學院《新能源汽車檢測與維修》2023-2024學年第二學期期末試卷
- 濱州學院《酒店電子商務》2023-2024學年第二學期期末試卷
- 重慶工程職業(yè)技術(shù)學院《現(xiàn)代傳感器技術(shù)及虛擬儀器》2023-2024學年第二學期期末試卷
- 福建農(nóng)業(yè)職業(yè)技術(shù)學院《會計學基礎》2023-2024學年第二學期期末試卷
- 初中語文九年級下冊閱讀理解50篇附答案解析
- 《陶瓷造型工藝》課程標準
- 火電廠各指標指標解析(最新版)
- 病毒性腦炎患者的護理查房ppt課件
- TPU材料項目可行性研究報告寫作參考范文
- 第二編 債權(quán)總論
- 試用期考核合格證明表
- 常見八種疾病
- 膠粘劑基礎知識及產(chǎn)品詳解(課堂PPT)
- 鐵路總公司近期處理的七起突出質(zhì)量問題的通報
- 常用洪水預報模型介紹
評論
0/150
提交評論