const' qualifier for variables and function parameters
10
Const volatile variables
11
Global variables
12
Global Vs Local
13
Static Variable/Functions
14
Array subscript Vs Pointer Access
15
Loops (Increment Vs Decrement)
16
Loops (post Vs Pre Decrement)
17
Order of Function Parameters
18
Inline Assembly
19
Optimizing for DRAM
20
Help the compiler out!
21
Optimizing your code
Description:
Explore best practices for optimizing C code on microcontrollers in this 53-minute conference talk by Khem Raj from Comcast RDK. Discover tips and techniques for writing efficient C programs, using Zephyr as a case study to demonstrate size and performance optimizations. Learn about leveraging GCC for microcontrollers and RTOSes like Zephyr, covering topics such as compiler switches, linker scripts, data types, variable usage, loop optimization, and inline assembly. Gain insights into memory management, code organization, and compiler-friendly practices to squeeze the most out of your microcontroller projects.
Optimizing C for Microcontrollers - Best Practices