embeddedsystemsandlabsforarm v1 1 phần 5

Tất cả các thiết lập trong trang này sẽ được hiển thị trong cửa sổ "Lắp ráp Tùy chọn". Người sử dụng có thể tự chỉnh sửa "Lắp ráp Tùy chọn", nhưng cần phải thực hiện theo các quy tắc | Embedded Systems Development and Labs The English Edition . 0x0 .text .text .data .data .rodata .rodata .bss .bss Exercises 1 Improve the exercise ARM Assembly Instruction Lab 1 in . Define globe and local variables in the C file. Use the linker script file in compiling and linking. Use the Disassemble all in the Tools menu to generate objdump file. Watch the storage of code and variables in the target output file. 2 In the above C language files add embedded assembly language code. Implement read write memory using assembly code. Primarily master the usage of embedded assembly code. Assembly and C Language Mutual Calls Purpose Read Embest S3CEV40 boot code. Watch the boot process of the processor. Learn how to interpret the debug results using Embest IDE debug windows. Learn how to write compile and debug assembly and C language mutual call programs. Lab Equipment Hardware PC Software Embest IDE 2003 Windows 98 2000 NT XP. Content of the Lab Write a random number generation function using assembly language. Call this function from a C program to produce a series of random umbers and save them in the memory. Principles of the Lab 1. ARM procedure call -- ATPCS ARM ATPCS is a series of basic rules that are used in mutual calls between programs. These rules cover Support data stack limitation check. Support read only section position irrelevant ROPI . Support read write section position irrelevant RWPI . Support mixed usage of ARM program and Thumb program. Process float computing. When using the above rules the application program must follow the following rules 118 Embedded Systems Development and Labs The English Edition Programming must follow the ATPCS. Use registers and data stack to transfer variables. Assembler uses -apcs parameters. For the other ATPCS rules users can read the related ARM processor books or visit ARM website. Following the rules of ATPCS users can write programs using different languages. The main problem

Bấm vào đây để xem trước nội dung
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.