Master inner master
I have always thought as a C programmer working under Linux. If you have a deep understanding of memory, it is not only higher, but it is more stable, and the programming speed will be faster. There is also an opposite effect, sometimes some memory mistakes make you can't touch the mind, not only greatly reduce the development speed, but also developed software stability is also worthy of doubt.
In order to improve the level of programming, I have developed a series of training programs last year and is responsible for some important courses, of which the basic class has a courses about memory. At that time, the speech was written, and the new colleague said that I didn't understand, I decided to reinite it, put it in Blog, I hope to help the novice.
As for the title of the article, it is basically for funny. Recently, the star classic "large internal microscale zero zero" is one of the originals of the article as a title of the article. Also, it can be understood that the internal refers to memory, as a large word, the modified memory refers to its capacity, and the modified memory master has high levels, both understand.
These include the following articles:
Dali master - memory model
Single-threaded model
Multi-threaded model
2. Big Master - Stack / Pile
Realization of BackTrace
Realization of Alloca
Implementation of variable parameters.
Introduction to Malloc / Free Series Function
New / delete series operator introduction
3. Dali Master - Global Memory
.bss description
.DATA instructions
.RODATA instructions
Violatile keyword description
Static keyword description
Const keyword description
4. Large masters - memory allocation algorithm
Standard C (GLIBC) allocation algorithm
STL (stlport) allocation algorithm
OS internal distribution algorithm (partner / SLAB)
5. Master - aigenic method
Quote count
Pre-assigned
Memory pool
Session pool
...
6. Dagin Master - Shared Memory and Thread Local Storage
7. Large master - automatic memory recycling mechanism
8. Dagin master - common memory error
9. Dagin master - common debugging tool