Skip to Content
Embedded C Programming
book

Embedded C Programming

by Mark Siegesmund
September 2014
Beginner to intermediate
424 pages
10h 4m
English
Newnes
Content preview from Embedded C Programming
Chapter 10

Memory and Pointers

Abstract

This chapter describes in detail how data is organized in memory and how to make use of data in C by address. The address-of operator and indirection operator are explained with detailed examples and diagrams.

Arrays and structures are revisited in this chapter to show how to use them with pointers. The special C rules concerning pointer arithmetic are described. Pointers to RAM, ROM, and to user-defined address spaces are all covered. The embedded C extension addressmod is included. This chapter also deals with pointers to functions.

Examples and exercises are for the popular PIC™ microcontroller manufactured by Microchip.

Keywords

Pointer

Address-of

Indirection

addressmod

Memory map

Function pointers ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical C Programming

Practical C Programming

B. M. Harwani

Publisher Resources

ISBN: 9780128013144