Skip to content
Embedded Artistry

Embedded Artistry

Building Superior Embedded Systems

  • Welcome
  • Blog
  • Courses
  • Field Atlas
  • Memberships
  • Resources
    • Archive
    • Newsletter
    • What We’re Reading
    • For Beginners
    • Glossary
    • Libraries
    • Templates
    • YouTube Channel
  • Store
  • Consulting

Day: March 15, 2017

Posted on 15 March 201715 December 2021

C++ Casting, or: “Oh No, They Broke Malloc!”

The first time you try compiling your C code with a C++ compiler can be terrifying. One of the most troublesome offenders is malloc, and you will have your eyes opened to the number of implicit type conversions in your code. Table of Contents: malloc: C vs C++ C++ Casts static_cast reinterpret_cast const_cast const_cast and …

Continue reading "C++ Casting, or: “Oh No, They Broke Malloc!”"

No one is unaware of the fact that we should think well before doing anything. But we are daily guilty of not remembering, and the consequences are evil.Robert Greene
The 48 Laws of Power

Free Newsletter

Sign up and receive our free playbook for writing portable embedded software.

  • Login
  • RSS Feed
  • Embedded Systems Newsletter
  • Membership Information

Featured Courses

  • Fundamentals of Abstraction
    15 Lessons
  • Designing Embedded Software for Change
    67 Lessons
  • Heapless C++
    27 Lessons
  • My Account
  • Privacy Policy
  • Contact Us
  • GitHub
  • LinkedIn
  • Twitter

©2026 Embedded Artistry LLC. All rights reserved.
EMBEDDED ARTISTRY and the OWL logo are registered trademarks of Embedded Artistry LLC.

Privacy Policy Proudly powered by WordPress