컴파일의 3단계

CODEDRAGON Development/Software Engineering

반응형


 

 

컴파일의 3단계

단계

설명

lexical-phase

·         어휘 분석 단계

·         괄호, semicolon 빠졌다는 등의 error 검출

syntactic-phase

·         구문 분석 단계

·         함수의 parameter 등의 error 검출

semantic-phase

·         의미 분석 단계

 

int n; 

int *p;

 

// 문법에 맞기 때문에 구문분석단계는 통과하지만 의미상의 오류를 검출

n = p;

 

 

 


반응형