Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Tài liệu HOT
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
0
Trang chủ
Công Nghệ Thông Tin
Hệ điều hành
Lecture Introduction to computing systems (2/e): Chapter 15 - Yale N. Patt, Sanjay J. Patel
TAILIEUCHUNG - Lecture Introduction to computing systems (2/e): Chapter 15 - Yale N. Patt, Sanjay J. Patel
Chapter 15 - Debugging. This chapter presents the following content: Debugging with high level languages, types of errors, syntactic errors, semantic errors, algorithmic errors, source-level debugger, source-level debugging techniques. | Chapter 15 Debugging Debugging with High Level Languages Same goals as low-level debugging Examine and set values in memory Execute portions of program Stop execution when (and where) desired Want debugging tools to operate on high-level language constructs Examine and set variables, not memory locations Trace and set breakpoints on statements and function calls, not instructions .but also want access to low-level tools when needed 15- Types of Errors Syntactic Errors Input code is not legal Caught by compiler (or other translation mechanism) Semantic Errors Legal code, but not what programmer intended Not caught by compiler, because syntax is correct Algorithmic Errors Problem with the logic of the program Program does what programmer intended, but it doesn't solve the right problem 15- Syntactic Errors Common errors: missing semicolon or brace mis-spelled type in declaration One mistake can cause an avalanche of errors because compiler can't recover and gets confused main () { int i int j; for (i = 0; i 15- Semantic Errors Common Errors Missing braces to group statements together Confusing assignment with equality Wrong assumptions about operator precedence, associativity Wrong limits on for-loop counter Uninitialized variables h main () { int i int j; for (i = 0; i 15- Algorithmic Errors Design is wrong, so program does not solve the correct problem Difficult to find Program does what we intended Problem might not show up until many runs of program Maybe difficult to fix Have to redesign, may have large impact on program code Classic example: Y2K bug only allow 2 digits for year, assuming 19__ 15- Debugging Techniques Ad-Hoc Insert printf statements to track control flow and values Code explicitly checks for values out of expected range, etc. Advantage: No
Thái Hà
52
10
ppt
Báo lỗi
Trùng lắp nội dung
Văn hóa đồi trụy
Phản động
Bản quyền
File lỗi
Khác
Upload
Tải xuống
đang nạp các trang xem trước
Bấm vào đây để xem trước nội dung
Tải xuống
TÀI LIỆU LIÊN QUAN
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 1 - Yale N. Patt, Sanjay J. Patel
13
84
2
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 2 - Yale N. Patt, Sanjay J. Patel
17
72
3
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 3 - Yale N. Patt, Sanjay J. Patel
33
105
3
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 4 - Yale N. Patt, Sanjay J. Patel
14
88
2
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 5 - Yale N. Patt, Sanjay J. Patel
36
84
2
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 7 - Yale N. Patt, Sanjay J. Patel
11
93
0
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 8 - Yale N. Patt, Sanjay J. Patel
13
73
0
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 9 - Yale N. Patt, Sanjay J. Patel
15
78
0
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 10 - Yale N. Patt, Sanjay J. Patel
10
66
0
Lecture Introduction to computing systems: Chapter 1 - Yale N. Patt, Sanjay J. Patel
16
92
0
TÀI LIỆU XEM NHIỀU
Một Case Về Hematology (1)
8
461846
55
Giới thiệu :Lập trình mã nguồn mở
14
22508
57
Tiểu luận: Tư tưởng Hồ Chí Minh về xây dựng nhà nước trong sạch vững mạnh
13
10861
529
Câu hỏi và đáp án bài tập tình huống Quản trị học
14
10024
445
Phân tích và làm rõ ý kiến sau: “Bài thơ Tự tình II vừa nói lên bi kịch duyên phận vừa cho thấy khát vọng sống, khát vọng hạnh phúc của Hồ Xuân Hương”
3
9488
104
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8241
1124
Tiểu luận: Nội dung tư tưởng Hồ Chí Minh về đạo đức
16
8199
423
Mẫu đơn thông tin ứng viên ngân hàng VIB
8
7859
2219
Đề tài: Dự án kinh doanh thời trang quần áo nữ
17
6642
253
Vật lý hạt cơ bản (1)
29
5754
85
TỪ KHÓA LIÊN QUAN
Hệ điều hành
Computing systems
Introduction to computing systems
Computing machines
Computer organization
Debugging techniques
Syntactic errors
General purpose computers
Data types
Decimal numbers
Digital logic structures
Electronic ones
The von Neumann Model
Instruction cycle
Operate instructions
Data movement instructions
LC 2 assembly language
Assembly language instructions
Device registers
I O basics
TRAP routines
Privileged instructions
Stack data structure
Interrupt I O
LC 3 instruction set architecture
LC 3 data path
Problem solving
Structured programming
Machine architecture
Unsigned integers
Von Neumann machine
Instruction set architecture
TÀI LIỆU MỚI ĐĂNG
extremetech Hacking BlackBerry phần 9
31
239
0
19-04-2024
beginning Ubuntu Linux phần 1
34
211
1
19-04-2024
extremetech Hacking Firefox phần 7
46
185
0
19-04-2024
TƯƠNG QUAN GIỮA MÔ HỌC, GIẢI PHẪU VÀ HÌNH ẢNH CỦA CÁC KHỐI U PHẦN PHỤ
3
167
0
19-04-2024
Báo cáo nghiên cứu khoa học " KẾT QUẢ NGHIÊN CỨU BƯỚC ĐẦU VỀ THIÊN ĐỊCH CHÂN KHỚP TRÊN CÂY THANH TRÀ Ở THỪA THIÊN HUẾ "
7
173
0
19-04-2024
BÀI GIẢNG VỀ - MẠCH ĐIỆN II - Chương I: Phân tích mạch trong miền thời gian
38
140
0
19-04-2024
MÔN HỌC VẬT LIỆU VÀ CÔNG NGHỆ KIM LOẠI - PHẦN I: KIM LOẠI HỌC
32
175
2
19-04-2024
B2B Content Marketing: 2012 Benchmarks, Budgets & Trends
17
137
0
19-04-2024
HƯỚNG DẪN SỬ DỤNG PHẦN MỀM CAITA part 9
18
126
0
19-04-2024
Data Structures and Algorithms - Chapter 8: Heaps
41
115
0
19-04-2024
TÀI LIỆU HOT
Mẫu đơn thông tin ứng viên ngân hàng VIB
8
7859
2219
Giáo trình Tư tưởng Hồ Chí Minh - Mạch Quang Thắng (Dành cho bậc ĐH - Không chuyên ngành Lý luận chính trị)
152
5591
1326
Ebook Chào con ba mẹ đã sẵn sàng
112
3749
1228
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8241
1124
Ebook Tuyển tập đề bài và bài văn nghị luận xã hội: Phần 1
62
5246
1124
Giáo trình Văn hóa kinh doanh - PGS.TS. Dương Thị Liễu
561
3471
641
Tiểu luận: Tư tưởng Hồ Chí Minh về xây dựng nhà nước trong sạch vững mạnh
13
10861
529
Giáo trình Sinh lí học trẻ em: Phần 1 - TS Lê Thanh Vân
122
3668
524
Giáo trình Pháp luật đại cương: Phần 1 - NXB ĐH Sư Phạm
274
4023
513
Bài tập nhóm quản lý dự án: Dự án xây dựng quán cafe
35
4098
478
Đã 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.