Tagged: Memory


Programming in C: Enumerations, Bit-Fields, and Unions

Enumerations allow us to specify identifiers for integer values without having to specify a long list of global variables or constants. We also covered unions, which are a bit more esoteric, but useful anyway. Sometimes we need to access an array of long ints as individual char bytes, with a union you can do that!  Lastly, we rounded-up with bit-fields: a C programming built-in that allows us to identify and work with specific bits by name.


Memory Map of an Imperative Program on Most Processors

This isn’t THEE only memory map of every program everywhere, but it is generally the memory map for most programs most average programmers create, being imperative.  In programming languages like assembly or C, you work with this map pretty directly, but in more abstract or higher-level languages such as Python or PHP, many of these memory issues and placements are taken care of for you by the interpreter or compiler.


Doing Stuff With Computers

The primary processor is the user, who is directing the computer and its activities, but the primary computational device is called the CPU (central processing unit) and is a chip on the motherboard of the computer.


Remembering Things With Computers

So we’ve learned about binary and boolean operations along with logic gates. None of these, particularly logic gates, can do the second most important thing necessary for computation.

That is the ability to remember.


Photomats In Technicolor

I have to remind myself that a game doesn’t have to fit in a certain style. It astounds me sometimes the types of interactive experiences people are satisfied with and even hail. There are ‘games’ that I wouldn’t even consider ‘games’ that do quite well.