Learn C Programming

lesson ১ / ৮ · Preprocessor, header আর multi file build

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-এর আগে যা ঘটে এর ভেতরে কী আছে

  1. Compiler-এর আগের ধাপগুলো
  2. gcc -E দেখায় compiler আসলে কোন file পড়ে
  3. #include একটা পুরো file বসিয়ে দেয়
  4. Preprocessor-এর চোখে #define
  5. Conditional compilation: #if, #ifdef আর #ifndef
  6. Predefined macro: compiler নিজের পরিচয় দেয়
  7. assert আসলে এদের দিয়েই বানানো একটা macro
  8. #error আর #warning: build-কে বার্তা পাঠানো