يحدد مجلس التعاون الخليجي -D ماكرو ليستخدمه المعالج المسبق.
$ gcc -Dname [options] [source files] [-o output file]
$ gcc -Dname=definition [options] [source files] [-o output file]
اكتب ملف المصدر myfile.c :
// myfile.c
 #include <stdio.h/
  
 void main()
 {
     #ifdef DEBUG    
        printf("Debug run\n");
     #else
        printf("Release run\n");
     #endif
 }
قم ببناء myfile.c وتشغيله مع تعريف DEBUG:
$ gcc -D DEBUG myfile.c -o myfile
 $ ./myfile
 Debug run
 $
أو قم ببناء myfile.c وتشغيله بدون تعريف DEBUG:
$ gcc myfile.c -o myfile
 $ ./myfile
 Release run
 $