Morris Dovey (in
[email protected]) said:
| lovecreatesbeauty (in
| (e-mail address removed)) said:
|
|| Keith Thompson wrote:
|||| Tom St Denis wrote:
||||| I mean C lets you do manual computations easily. But so does
||||| any other language. So without a context listing possible
||||| "advantages" is a bit hard.
||||
|||| Do you have the book handy? Even John did not mention the
|||| contrary language(s).
|||
||| There are hundreds, probably thousands, of other programming
||| languages. C has advantages with respect to each of them, and
||| disadvantages with respect to most of them.
||
|| It means nothing, it's too abstract. Could you go to some specific
|| facts? Thanks for concern.
|
| C is a useful alternative to writing mountains of assembly code for
| system software development. It was not (originally) intended to be
| all things to all people.
This past weekend I was digging through an old BNF compiler program
and it occurred to me that there are probably an increasing number of
programmers who've never done any actual assembly language
programming. Just to provide the non-assembly folks with an historical
glimpse, I snipped out a tiny piece of code (output an 8-bit byte to a
disk buffer and write the buffer when full), expanded the tabs with
spaces, and saved it at the link below.
The environment was CP/M running on a Z80 microprocesor. The
commenting was so that I could pick up the code (even a quarter
century later!) and make sense of what I'd done. The function is
sufficiently common and straightforeward - and the comments are
sufficiently complete - that almost anyone should be able to follow
the logic.
To add a bit more perspective, the complete program listing was about
60 pages long. Portability would be a serious problem.