PLEX86  x86- Virtual Machine (VM) Program
 CVS  |  Mailing List  |  Download  |  Newsgroups

Thou shalt have no other gods before the ANSI C standard 1406


Your Ad Here

Your Ad Here

Thou shalt have no other gods before the ANSI C standard 1408
David Wagner In C standardese, a byte is the addressable unit of storage from which all C data...

David Wagner

All right, lets think about it. The unaware byte = 8 bits, ints = 32 bits programmer may well do something like:

union foo { int intval; char bytes4; } convert;

Thou shalt have no other gods before the ANSI C standard 1407
David Wagner ... snip ... Most of the time the code shouldn't care about 9 vs 8 bit...

convert.intval = whatever;

contravening about 18 requirements, but lo, it works in this best of all possible worlds. (The programmers name is Candide). He also writes a receiving routine:

return convert.intval;

Oh frabjous joy. Everything flies. So Candide gets really chickeny and wraps those routines up in a couple of macros, uses them everywhere, and goes off with Dr. Pangloss to rescue Cunegonda from the seraglio.

Somewhere, some accountant type notices that machine B costs half what we are paying for machine A, runs faster, and has a C compiler available. So obviously we can shift over, all we have to do is recompile the code. The specs even look the same - 8 bit bytes, 32 bit ints. This is a technically knowledgeable accountant. Good, place an order, and cancel the orders for A. Nothing can go wrong.

Maybe you can detect the ending, and how Candide destroyed the firm. Cunegonda died.

-- "If you want to post a followup via groups.google.com, don't use the broken "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers." - Keith Thompson



Your Ad Here

List | Previous | Next

Thou shalt have no other gods before the ANSI C standard 1407

Alt Folklore Computers from Newsgroups

The #1 Usenet Provider on the Internet

Thou shalt have no other gods before the ANSI C standard 1405