Advanced Embedded C Tips, Tricks, and Cautions

This class will help you take your C programming skills to the next level with concepts like header file inclusion, using typedefs for function pointers and structures, performing floating point math without hardware floating point units or firmware libraries, and initializing and clearing structures and unions. (June 2022)

rate limit

Code not recognized.

About this course

Even if you have a good base knowledge of more advanced C programming concepts, this class will challenge you on some things you may not know about programming in C and help to take your programming skills to new levels! There are so many things you can do with your C programming projects that will reduce your code size, improve execution time, and keep you out of trouble! We will look at some common mistakes that are made by even the best programmers, including comparison and value setting confusion, neglecting implicit conversions and sequence points, mixing variable types, misusing macros, and ignoring side effects. This course will also show you some nice concepts to help reduce your code size and make your projects easier to read. These concepts include header file inclusion, using typedefs for function pointers and structures, performing floating point math without hardware floating point units or firmware libraries, and initializing and clearing structures and unions. This material is presented with the assumption that you are already familiar with advanced C programming concepts.

Curriculum59 min

  • Introduction
  • Syllabus
  • Course Introduction 3 min
  • Tips and Tricks
  • "Goes To" Functionality 3 min
  • The ‘=‘ and ‘==‘ Mistake 2 min
  • Using Typedef’s for Function Pointers and Unions/Structures 5 min
  • Testing for Header File Inclusion 4 min
  • Floating Point Math Without An FPU 9 min
  • Programming Cautions
  • Implicit Promotion Risks 9 min
  • Sequence Point Updates and Side Effects 8 min
  • Mixing Variable Types 5 min
  • Initializing and Clearing Structures 3 min
  • Macro Cautions 8 min
  • Additional Resources
  • Additional Resources
  • Your Feedback
  • We need your feedback

About this course

Even if you have a good base knowledge of more advanced C programming concepts, this class will challenge you on some things you may not know about programming in C and help to take your programming skills to new levels! There are so many things you can do with your C programming projects that will reduce your code size, improve execution time, and keep you out of trouble! We will look at some common mistakes that are made by even the best programmers, including comparison and value setting confusion, neglecting implicit conversions and sequence points, mixing variable types, misusing macros, and ignoring side effects. This course will also show you some nice concepts to help reduce your code size and make your projects easier to read. These concepts include header file inclusion, using typedefs for function pointers and structures, performing floating point math without hardware floating point units or firmware libraries, and initializing and clearing structures and unions. This material is presented with the assumption that you are already familiar with advanced C programming concepts.

Curriculum59 min

  • Introduction
  • Syllabus
  • Course Introduction 3 min
  • Tips and Tricks
  • "Goes To" Functionality 3 min
  • The ‘=‘ and ‘==‘ Mistake 2 min
  • Using Typedef’s for Function Pointers and Unions/Structures 5 min
  • Testing for Header File Inclusion 4 min
  • Floating Point Math Without An FPU 9 min
  • Programming Cautions
  • Implicit Promotion Risks 9 min
  • Sequence Point Updates and Side Effects 8 min
  • Mixing Variable Types 5 min
  • Initializing and Clearing Structures 3 min
  • Macro Cautions 8 min
  • Additional Resources
  • Additional Resources
  • Your Feedback
  • We need your feedback