Advanced Topics in C: Managing Code Compilations Using Preprocessor Directives

C 17    |    Expert
  • 10 Videos | 1h 5m 54s
  • Includes Assessment
  • Earns a Badge
One of the key attractions of C is the low-level control it gives us over its compilation process. Indeed, the C language allows us to control the compilation of a program to a level unmatched by other languages such as Java. You will start this course by learning the compilation process of C which includes four main steps: preprocessing, compiling, assembling, and linking. Once you grasp the output of each step in the compilation process, move on to investigating preprocessor directives. Next, use conditional preprocessor directives including #if, #elseif and #endif. Finally, discover how to issue instructions to the compiler using pragmas, upgrade a warning to a regular error, and convert a warning to an extremely severe fatal error. After completing this course, you'll be able to list the steps for compiling a C program including creating macros with preprocessor directives, control conditional compilation, and use pragmas to alter compiler settings.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    outline the C compilation process
    recognize preprocessor directives
    identify the output of each step in the compilation process
    outline the process of creating macros and reviewing the preprocess output of code containing macros
  • create macros which perform operations
    use conditional pre-processor directives
    explore the #ifdef, #ifndef, and #undef preprocessor directives
    utilize pragmas to manage warnings
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 11s
    UP NEXT
  • Playable
    2. 
    How C Code Is Compiled
    6m 57s
  • Locked
    3. 
    Preprocessor Directives in C
    4m 48s
  • Locked
    4. 
    Understanding the Compiler Output
    9m 55s
  • Locked
    5. 
    Creating Macros
    7m 46s
  • Locked
    6. 
    Creating Function-like Macros
    9m 18s
  • Locked
    7. 
    Using #If, #Elif, and #Endif Preprocessor Directives
    6m 27s
  • Locked
    8. 
    Checking Whether Macros Are Defined
    8m 32s
  • Locked
    9. 
    Controlling Compiler Behavior Using Pragmas
    6m 36s
  • Locked
    10. 
    Course Summary
    3m 24s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.