List of types of C memory management from the book I'm reading
you are viewing a single comment - view all comments
  • Jesus weeps
    Lol.

    I'm reading about storage classes in C and before that, the author discusses about scope (block scope, function scope, function prototype scope, and block scope), linkage (no linkage, external linkage, and internal linkage), and storage duration (static storage duration, thread storage duration, automatic storage duration, and allocated storage duration). Then, C uses them in combination for different storage classes (automatic variables, register variables, static with external linkage, etc.). Quite the mouthful if you ask me.
    2
    reply
  • To think, the PROPER and SIMPLE method for managing this are makefiles.

    Have you seen a makefile? Even in the best of cases it's a confusing mess. Thankfully the C I ended up having to work with was limited to a single file, with the only libraries required being standard. Thank god.
    1
    reply
  • Makefiles can be wild. I've used them for simple stuff and even then they can be a sight to behold.

    BTW, does "Manual" refer to the dynamically-allocated memory in the image?
    2
    reply
  • yessir

    I actually ended up not even using malloc, or even pointers, in the C work I ended up doing, I way over prepared knowledge wise for what ended up being required lol
    1
    reply