Lecture Introduction to Computer Programming - Lecture 5

In this chapter, the following content will be discussed: Assembly language programming - Moving up a level, an assembly language program, the assembly process, beyond the assembly of a single assembly language program. | CSC141 Introduction to Computer Programming Teacher: AHMED MUMTAZ MUSTEHSAN Lecture - 5 Test Program #include #include using namespace std; void main() { cout Program Development Editor produces Source File Preprocessor Modified Source Code not saved on disk Compiler produces Object . | CSC141 Introduction to Computer Programming Teacher: AHMED MUMTAZ MUSTEHSAN Lecture - 5 Test Program #include #include using namespace std; void main() { cout << "Hello World" << endl; getch(); } Copy this code CSC141 Introduction to Computer Programming Preprocessing directives Performed by a program called the preprocessor Modifies the source code (in RAM) according to preprocessor directives (preprocessor commands) embedded in the source code Strips comments and white space from the code. The source code as stored on disk is not modified. Examples: # include, macros #if CSC141 Introduction to Computer Programming Compilation Performed by a program called the compiler Translates the preprocessor-modified source code into object code (machine code) Checks for syntax errors and warnings Saves the object code to a disk file, if instructed to do so. If any compiler errors are received, no object code file will be generated. An object code file will be generated if .

Bấm vào đây để xem trước nội dung
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.