3 ms·
Old school C programmer would make it into a calculus problem for clarity/proof of concept. Until accessed, a memory location & variable location can be expres
by sargstuff 3y ago
Old school C programmer would make it into a calculus problem for clarity/proof of concept.
Until accessed, a memory location & variable location can be expressed as an indefinate integral.
Memory location access request implies definate integral.
1) evaluation value indefinate of integrand variables: "A" less than/equal to "B" less than/equal to "C" less than/equal to "D". Variable a is start of sequence. Variable D is end of sequence.
2) integrand variables D & A define the continuous range of PC group of bits
3) integrand variables C & B define the cohntinous range of 8 bit char
4) Accessing bits outside the integrand limits implies math equivalent of computer segfault.
In order to not generate a segfault, only positive delta, and epsilon is 0 or 1. aka The "alignment request" implies that A MUST be equal to B; C less than or equal to D.
K&R C short hand for above is anonymous union.[0]
Physics / Mechanical Engineering center of gravity approach rotated 90 & implimented via punch card reader that doesn't skip cards much more interesting physical list processing visual than calculus number line (IMHO). Physical form bit to bulky to carry to/from class room. Fortunately, electrial engineering split the difference via 1/2 way point (45 degree angle). Computer scientests get the autonoma / semantic analysis difference. Software Engineers, by completing the circle with & with out a sigh of "e e e e e e ..."
[0] : http://www.catb.org/esr/structure-packing/ http://www.catb.org/esr/structure-packing/