Delivering the benefits of C++ encapsulation to your embedded design
By Colin Walls, Accelerated Technology, a division of Mentor Graphics
Dec 22 2005 (13:35 PM), Embedded.com
C++ can deliver real benefits specifically for the implementation of embedded software, particularly when the concept of “encapsulation of expertise” is used. By employing this technique to take advantage of the number of specialties an embedded software team has, many programming problems, both serious and trivial, can be resolved.
Given some understanding of potential C++ overheads and the benefits of the encapsulation of expertise, trade-offs may be made in order to achieve design goals efficiently. To illustrate its effectiveness let’s look at a number of case studies, including:
1. How the nvramchar class could completely insulate the applications programmer from knowledge of the internal workings of non-volatile RAM.
2. How the technique can be used to conceal the workings of a write-only port, making its use straightforward and intuitive.
3.How to encapsulation can be used with a real-time operating system hidden from the applications programmer, making possible future changes in the RTOS, but with no impact on the applications code.
![]() |
E-mail This Article | ![]() |
![]() |
Printer-Friendly Page |
Related Articles
- Discover new Tessent UltraSight-V from Siemens EDA, and accelerate your RISC-V development.
- Automating C test cases for embedded system verification
- Building Process For the C/C++ Program on Complex SoCs
- When Your Embedded Processor Runs Out of Steam, Try Parallelism
- Reaping the benefits of architectural modeling in embedded design
New Articles
- Discover new Tessent UltraSight-V from Siemens EDA, and accelerate your RISC-V development.
- The Critical Factors of a High-performance Audio Codec - What Chip Designers Need to Know
- Density Management in Analog Layout Design: Addressing Issues and Ensuring Consistency
- Nexus: A Lightweight and Scalable Multi-Agent Framework for Complex Tasks Automation
- How the Ability to Manage Register Specifications Helps You Create More Competitive Products
Most Popular
- System Verilog Assertions Simplified
- System Verilog Macro: A Powerful Feature for Design Verification Projects
- Synthesis Methodology & Netlist Qualification
- Discover new Tessent UltraSight-V from Siemens EDA, and accelerate your RISC-V development.
- Understanding Logic Equivalence Check (LEC) Flow and Its Challenges and Proposed Solution