TAILIEUCHUNG - THE ASSEMBLY LANGUAGE LEVEL-7

THE ASSEMBLY LANGUAGE LEVEL | 7 THE ASSEMBLY LANGUAGE LEVEL 1 Programmer-years to produce the program Program execution time in seconds Assembly language 50 33 High-level language 10 100 Mixed approach before tuning Critical 10 1 90 Other 90 9 10 Total 10 100 Mixed approach after tuning Critical 10 6 30 Other 90 9 10 Total 15 40 Figure 7-1. Comparison of assembly language and high-level language programming with and without tuning. Label Opcod s Operands Comments FORMULA MOV EAX I register EAX I ADD EAX J register EAX I J MOV N EAX N I J I DW 3 reserve 4 bytes initialized to 3 J DW 4 reserve 4 bytes initialized to 4 N DW 0 a reserve 4 bytes initialized to 0 Label Opcode Operands Comments FORMULA I D0 register DO I J D0 register DO I J D0 N N I J I 3 reserve 4 bytes initialized to 3 J 4 reserve 4 bytes initialized to 4 N 0 b reserve 4 bytes initialized to 0 Label Opcode Operands Comments FORMULA SETHI HI I R1 R1 high-order bits of the address of I LD R1 LO I R1 R1 I SETHI HI J R2 R2 high-order bits of the address of J LD NOP R2 LO J R2 R2 J wait for J to arrive from memory ADD R1 R2 R2 R2 R1 R2 SETHI ST HI N R1 R2 R1 LO N R1 high-order bits of the address of N I .WORD 3 reserve 4 bytes initialized to 3 J .WORD 4 reserve 4 bytes initialized to 4 N .WORD 0 reserve 4 bytes initialized to 0 c Figure 7-2. Computation of N I J. a Pentium II. b Motorola 680x0. c .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.