Module ১৫ · Preprocessor, header আর multi file build
Preprocessor: compiler-এর আগে যা ঘটে
Proপড়া
Maria-র tax program মাত্র 12 লাইনের। ও একটা সোজা প্রশ্ন করে: compiler আসলে দেখে কী?
Pro lesson
এটা আরও গভীরে যায়
এই track এ আর Learn Pro তে এটা পাওয়া যায়। Skill Test এর প্রতিটা প্রশ্নের উত্তর free lesson থেকেই দেওয়া যায়, তাই এটা গভীরতা, certificate এর পথে বাধা না।
Preprocessor: compiler-এর আগে যা ঘটে এর ভেতরে কী আছে
- Compiler-এর আগের ধাপগুলো
- gcc -E দেখায় compiler আসলে কোন file পড়ে
- #include একটা পুরো file বসিয়ে দেয়
- Preprocessor-এর চোখে #define
- Conditional compilation: #if, #ifdef আর #ifndef
- Predefined macro: compiler নিজের পরিচয় দেয়
- assert আসলে এদের দিয়েই বানানো একটা macro
- #error আর #warning: build-কে বার্তা পাঠানো