"Philip Potter" <> wrote in message
news:fs03b5$vkj$...
> I see nothing wrong with wanting to know about the internals and
> low-level jiggery-pokery for its own sake.
I concur.
> This is, I feel, a
> commendable attitude.
I concur.
> It's just that C doesn't specify the internals
False. ANSI or ISO C STANDARDS documents don't specify C internals. C
_did_ and _does_ specify internals. Various C internals are specified in
numerous papers:
"Portability of C Programs and the UNIX System" by Johnson and Ritchie:
http://cm.bell-labs.com/cm/cs/who/dmr/portpap.html
"The C Language Calling Sequence" by Johnson and Ritchie
http://cm.bell-labs.com/cm/cs/who/dmr/clcs.html
"The UNIX Time-Sharing System" by Ritchie and Thompson
http://cm.bell-labs.com/cm/cs/who/dmr/cacm.html
"UNIX Operating System Porting Experiences" by Bodenstab, Houghton, et. al.
http://cm.bell-labs.com/cm/cs/who/dm...orts/newp.html
> precisely because it is designed to run on top of a wide variety of
> architectures,
False. You're confusing cause and effect. C wasn't designed to run on top
of a wide variety of architectures. C was reworked to work from
architecture to architecture by the original creators. And then, they
started a UNIX portability project which forced them to create a
minimalistic C machine model. Read "Portability of C Programs and the UNIX
System" by Johnson and Ritchie:
http://cm.bell-labs.com/cm/cs/who/dmr/portpap.html
> and that portable C code can't depend on such internals,
Despite what others will say, you'll eventually learn that C really isn't
all that portable:
1) 30% of C is portable only because microprocessor design over the past
30 years hasn't changed
2) 40% of C is force to be functionally equivalent
3) 30% of C just isn't portable and it's not worth your time trying to
make it so
Even the most portable language, FORTH, leaves much to the implementor,
because so much varies from architecture to architecture.
> such internals are offtopic here.
According to whom? I don't read much or post much here, but they aren't to
me. Are you interested in a Toll bridge in NY? Are you sure? It's for
sale, comes cheap, and has a nice stream and a good revenue stream... This
is an unmoderated, unchartered, international NG.
Rod Pemberton