Skip to content
Snippets Groups Projects
Commit 474d81be authored by LEESANGKYEONG's avatar LEESANGKYEONG
Browse files

update

parent 135fc234
No related branches found
No related tags found
No related merge requests found
......@@ -3,22 +3,22 @@
-- ex) #include <stdio.h> or "file.h"
- Conditional Complication
-- #if, #ifdef, #ifndef, #elif, #else, #endif
- #if, #ifdef, #ifndef, #elif, #else, #endif
# GCC compile option
-c: generate .o file
-g: for debeg
-O: optimization
- -c: generate .o file
- -g: for debeg
- -O: optimization
# GCC compile - for multiple file
- ex) func.h, func.c, main.c
--compile -gcc main.c func.c
- compile -gcc main.c func.c
###project HW2###
# project HW2
#GCC compile -- by using preprocessor
## GCC compile -- by using preprocessor
- #ifdef, #else, #endif
-- func.c에서 int func_name_or_id() 구현 (no using #define PRINT_ID)
-- difference between gcc -DPRINT_ID main.c func.c and gcc main.c func.c
-- gcc -DPRINT_ID는 PRINT_ID가 정의된 상태로 컴파일 되므로 #ifdef 실행
\ No newline at end of file
- func.c에서 int func_name_or_id() 구현 (no using #define PRINT_ID)
- difference between gcc -DPRINT_ID main.c func.c and gcc main.c func.c
- gcc -DPRINT_ID는 PRINT_ID가 정의된 상태로 컴파일 되므로 #ifdef 실행
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment