Detailed Explanation of the C++ Object Model References

Detailed Explanation of the C++ Object Model References

I believe the references in this book are also worth considering, so I have listed them here for everyone’s reference.1. Design and Evolution of the C++ Language https://book.douban.com/subject/35198313/2. https://stackoverflow.com/questions/4993650/what-is-sizeofsomething-0 3. https://stackoverflow.com/questions/47352663/how-can-this-structure-have-sizeof-0/47352751#473527514. https://stackoverflow.com/questions/36577094/array-of-size-0-at-the-end-of-struct5. https://stackoverflow.com/questions/4178175/what-are-aggregates-and-trivial-types-pods-and-how-why-are-they-special/7189821#71898216. https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html#Zero-Length7. https://en.cppreference.com/w/cpp/types/is_standard_layout.html8. https://en.cppreference.com/w/cpp/types/is_trivially_copyable.html9. https://learn.microsoft.com/en-us/cpp/cpp/trivial-standard-layout-and-pod-types?view=msvc-17010. In-Depth Exploration of the C++ Object Model11. https://en.cppreference.com/w/cpp/language/unqualified_lookup.html12. https://en.cppreference.com/w/cpp/language/injected-class-name.html13. https://www.justsoftwaresolutions.co.uk/cplusplus/hidden-friends.html14. https://preshing.com/20210315/how-cpp-resolves-a-function-call/15. https://gcc.gnu.org/legacy-ml/gcc-patches/2000-01/msg00574.html16. https://en.cppreference.com/w/cpp/language/copy_elision.html17. https://devblogs.microsoft.com/cppblog/guaranteed-copy-elision-does-not-elide-copies/18. https://www.artima.com/articles/pure-virtual-function-called-an-explanation19 C++ Template Guide … Read more

Python: Special Attributes (Collection)

Python: Special Attributes (Collection)

In addition to a large number of “special methods” that control object behavior, Python also provides a series of special attributes that describe the meta-information of modules, functions, instances, and classes. These attributes typically appear in the form of __name__, __doc__, __dict__, etc., and are the foundation for introspection, debugging, reflection, and even framework design. … Read more

C++ Knowledge Architecture Diagram

C++ Knowledge Architecture Diagram

There is also a “C Language Knowledge Architecture Diagram” Download link for the dual high-definition images: http://down.51cto.com/data/2239071 Memory Alignment: http://11142019.blog.51cto.com/11132019/1846832 Diamond Inheritance: http://11142019.blog.51cto.com/11132019/1846836 C++ Object Model & Virtual Function Table: http://11142019.blog.51cto.com/11132019/1846838 Deep Copy and Shallow Copy: http://11142019.blog.51cto.com/11132019/1846840 String Implementation: http://11142019.blog.51cto.com/11132019/1846841 Copy on Write: http://11142019.blog.51cto.com/11132019/1846842 New/Delete and New[]/Delete[]: http://11142019.blog.51cto.com/11132019/1846844 Smart Pointers: http://11142019.blog.51cto.com/11132019/1846846 Circular References & Custom … Read more

QP/C: A Tailored, Compact, and Customizable Real-Time Operating System (RTOS) for Resource-Constrained MCUs

QP/C: A Tailored, Compact, and Customizable Real-Time Operating System (RTOS) for Resource-Constrained MCUs

Does embedded development often make you feel like you’re flying solo? With various interrupts, task scheduling, state machines… it can be overwhelming in a moment. Don’t worry, today I want to recommend a powerful tool—QP/C (Real-Time Event Framework), which will help your projects understand event-driven programming instantly, boosting efficiency. What is QP/C?QP/C, short for QP/C … Read more

QP/C: A Lightweight Open Source Real-Time Embedded Framework

QP/C: A Lightweight Open Source Real-Time Embedded Framework

QP/C, a lightweight and open source real-time embedded framework (RTEF), provides powerful tools for building modern embedded software. It is based on the active object (Actor) model and has won widespread acclaim in the embedded systems development field due to its efficiency, safety, and ease of use. This article will delve into the key features, … Read more