c언어2 PreProcessing The Compliation Process PreProcessor는 source code 가 translator 에서 object code 로 translate 되기 전에 run 한다. tokens 문자에만 반응한다. ex # 코드들을 치환시킨다. Preprocessed output files 는 .i 파일로 나타난다. 파일을 보기위한 명령어는 Clang, gcc, Visual C++ 별로 command 가 다르다. File Inclusion #include 어떤 source file의 내용을 다른 source file 에 insert 할 수 있다. insert 하는 파일을 header file 이라 칭한다. #include 컴파일러 라이브러리 폴더 #include "foo.h" 현재 디렉토리 -> 파일.. 2022. 10. 17. Buffer 버퍼의 역할 ● 프로그램 지연 방지 Stream Buffering Buffering is the process of temporarily storing data in main memory that’s passing between a process and a device or file. Buffering improves the throughput of I/O operations, which often have high latencies. Similarly, when a program requests to write to block-oriented devices like disks, the driver can cache the data in memory until it has accumulated enoug.. 2022. 10. 11. 이전 1 다음