Skip to content · ⁨본문 바로가기⁩
English

What runs before the compiler

  • Before the compiler sees your code, the preprocessor handles every line that starts with #.
  • It pastes in headers, replaces macros, and removes comments — a simple text step.
  • You have used it already: #include <stdio.h> is a preprocessor command.

한국어

컴파일러 이전 단계

  • 컴파일러가 소스를 보기 전에, 전처리기(preprocessor) 는 #로 시작하는 모든 줄을 처리합니다.
  • 헤더 파일을 붙여넣고, 매크로를 대체하며, 주석을 제거합니다 — 단순한 텍스트 단계입니다.
  • 이미 사용해 보았습니다: #include <stdio.h>는 전처리 명령어입니다.

전처리기는 #include와 #define를 평범한 코드로 확장한 뒤, 컴파일러가 실행합니다

Handout · ⁨교재 자료⁩

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP