What is the Linux kernel and what is the memory management subsystem? Chapter 7 – Small memory allocation (5)

Continuing from the previous article: What does the Linux kernel have and what does the memory management subsystem have? Chapter 6 – Small memory allocation (4) References to this article: linux process virtual address space “Interesting Talk about the Core Principles of Linux Operating System: Part 4 Memory Management–Liu Chao” 4.6 In-depth understanding of Linux […]

What does the Linux kernel have and what does the memory management subsystem have? Chapter 6 – Small memory allocation (4)

Continuing from the previous article: What does the Linux kernel have and what does the memory management subsystem have? Chapter 5 – Small memory allocation (3) References to this article: linux process virtual address space “Interesting Talk about the Core Principles of Linux Operating System: Part 4 Memory Management–Liu Chao” Thanks! 2. Small memory allocation […]

C++ custom STL container memory allocator (map, set, vector, string, unordered_map, unordered_set)

Notice: When using the C++ 11/14 standard, you should comment the following code and restore the above commented code, that is, set the compiler option standard to: -std=cxx1z, -std=cxx2a. // C++17…cxx1z //template <class _Iter> //constexpr void* _Voidify_iter(_Iter _It) noexcept { // if constexpr (std::is_pointer<_Iter>::value) { // return const_cast<void*>(static_cast<const volatile void*>(_It)); // } // else { […]

[Task Allocation] Implementing robot multi-task allocation and path planning based on Dubins algorithm with matlab code

?About the author: A Matlab simulation developer who loves scientific research. He cultivates his mind and improves his technology simultaneously. For code acquisition, paper reproduction and scientific research simulation cooperation, please send a private message. Personal homepage: Matlab Research Studio Personal credo: Investigate things to gain knowledge. For more complete Matlab code and simulation customization […]

The story behind GCC & address allocation of C program constant variables

Table of Contents 1. Use gcc to generate static libraries and dynamic libraries Example 1 1.Create a directory 2.gcc compiles and obtains the .o file 3. Create a static library 4. Use static libraries 5. Verify the usage characteristics of static libraries 6. Create a dynamic library 7. Use dynamic libraries 8. Comparison of static […]

The story behind GCC; allocation of constant variables in C programs

? 1. Learn and master the compilation and assembly process of executable programs. The learning tasks are as follows: read, understand and study the materials “Using gcc to generate static libraries and dynamic libraries.pdf” and “Generation and use of static library .a and .so library files.pdf”, please do so under the Linux system (Ubuntu) Copy […]

The story behind GCC & address allocation of C program constant variables

1) Read, understand and study the materials “Using gcc to generate static libraries and dynamic libraries.pdf” and “Generation and use of static library .a and .so library files.pdf”, please copy them faithfully under the Linux system (Ubuntu) Again. To learn the compilation and assembly process of executable programs, you can practice it under the Linux […]

Gcc related operating principles and program memory allocation issues under buntu and stm32

This article mainly introduces the program memory allocation problem under Ubuntu and stm32, as well as the address allocation problem of heap, stack, global, local and other variables. Table of Contents Preface 1. Task requirements 2. Experimental process 2.1 Learn and master the compilation and assembly process of executable programs 2.1.1gcc generates executable dynamic static […]

Kafka – 3.x partition allocation strategy and rebalancing incomplete guide

Article directory Production experience – partition allocation strategy and rebalancing Range and rebalancing of producer partition allocation Range partitioning strategy principle Range partition allocation strategy and rebalancing case RoundRobin strategy and rebalancing of producer partition allocation RoundRobin partition strategy principle RoundRobin partition allocation strategy and rebalancing case Sticky and rebalancing of producer partition allocation Sticky […]

[C Language] Dynamic allocation and release of memory

Personal homepage: Xiu Xiu Ye Column: C language Operating environment:Visual Studio 2022 ? Table of Contents What is dynamic allocation of memory? Memory dynamic allocation function malloc() calloc() realloc() Dynamic memory release function free() Common dynamic memory errors 1. Dereference operation of NULL pointer 2. Out-of-bounds access to dynamically opened space 3. Use free release […]