what is the difference between flash and EEPROM?
EEPROM is an evolution of the older UV-erasable EPROMs. EEPROM’s “EE” stands for “Electrically Eraseable”.However, despite it being an improvement to its old pal, today’s EEPROM’s way of holding information is the exact same of the flash memory.
The ONLY major difference between the two is Continue reading
1. No volatile when it’s needed
Let’s look at a specific example. Suppose we’re developing software for an AVR 8-bit embedded processor. Since multiplies are going to happen in software, we’re probably interested in seeing how slow they are, Continue reading
What does a C program mean?
The C standard defines the meaning of a C program in terms of an “abstract machine” that you can think of as a simple, non-optimizing interpreter for C. The behavior of any given C implementation (a compiler plus target machine) must produce the same side effects as the abstract machine, but Continue reading
Have you experienced staying up checking your code for hours or maybe for days for something wrong, but you can’t figure out where the problem is.
Calm down, most of us have been through this many times. And in this article and the upcoming articles we will introduce the most known and harmful C language pitfalls that we can take care of them and avoid their effect.
Function Pointers provide some extremely interesting, efficient and elegant programming techniques. You can use them to replace switch/if-statements, to implement callbacks. probably due to their complicated syntax – beginners find it hard to understand them. In fact, they are less error causing than normal pointers cause you will never Continue reading
Who should read this
This article is about a technique for reducing the memory footprint of C programs -manually repacking C structure declarations for reduced size. To read it, you will require basic knowledge of the C programming language.
You need to know this technique if you intend to write code for memory-constrained embedded systems, or operating-system kernels Continue reading