Overview
Explore effective gcc/clang optimizations for embedded systems in this 45-minute conference talk by Khem Raj from Comcast. Gain powerful insights into code size and performance optimization techniques for programming embedded Linux systems. Learn about compiler toolchains and their impact on bootloaders, kernels, applications, and platform software. Discover command-line optimizations and coding practices that help compilers generate optimal code for specific algorithms. Delve into topics such as memory layout, map files, optimization levels, meta-optimization options, stack protector options, compiler support, processor world size, type systems, const function parameters, loops, attributes, baselines, portability, ternary operators, stack size, ncall optimization, and recursion optimization. Enhance your programming techniques by understanding how to leverage compiler capabilities for more effective code generation in embedded systems.
Syllabus
Introduction
Agenda
Tools Know Your Compiler
Memory Layout
Map Files
Optimization Levels
Meta Optimization Options
Stack Protector Options
Compiler Support
Processor World Size
Type Systems
Const
Function Parameters
Loops
Attributes
Baselines
Portability
ternary operator
stack size
ncall optimization
recursion optimization
summary
Taught by
Linux Foundation