Re: Why C?



"Steve" <steve49152@xxxxxxxx> writes:
> Keith Thompson wrote:
[snip]
>> But the number of bits isn't always the most important aspect of a
>> type. If you want to count something, and you know there can't be
>> more than 32767 of them, just use int; if you want to measure the size
>> of something, use size_t.
>
> That's nice. What if I don't like the layer of abstraction chosen for
> the definitions of [numeric] data types?

Then define your own abstraction layer.

[snip]

>> I rarely care what the generated assembly code looks like. I care
>> that the code works the way I intend it to, in accordance with the
>> language specification. Much of the time, I wouldn't be able to read
>> the generated assembly language even if I bothered to examine it.
>
> Yeah, well that's true too. But you must turn off certain
> optimisations when you anticipate examining the assembly language.
> Heavy reliance on macros can also impede the understanding of generated
> code. This is by the by, however. On one level, I am simply of the
> opinion that certain things about the underlying architecture ought to
> be kept in mind while writing code, rather than allowing the
> architecture to impose itself upon the program after the code is
> written and running. Most HLLs seem to insulate the program from the
> world, and hence the programmer as well.

I tend to think of "the world" and the hardware as being at opposite
ends of the <handwaving>something-or-other</handwaving>, with the
programming language being a layer between them. I care about the
visible behavior of my code; I don't care so much about how the
compiler makes that happen.

Your mileage may vary, of course.

--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
.



Relevant Pages

  • Re: Dive tables
    ... When you call regular Rec.scubans liars, ... I don't really care what you believe. ... No car, no travel, no Orleans, no shit. ...
    (rec.scuba)
  • Re: Another Picture Of My Truck...
    ... My truck -delivers- trucks like yours, ... That Futile John doesn't care to see that is just a further reflection on ... there are lots of automatic weapons out there. ...
    (rec.scuba)
  • Re: G4 laptop, Tiger OS
    ... What about preventing disk corruption. ... > step-daughters step mother may have purchased the care when she got the ... There are a number of books on OS X. ...
    (comp.sys.mac.portables)
  • Re: Doesnt Pluto have an atmosphere?
    ... Do we want to include those 44 Plutos + 1 ... I don't really care what they call them. ... Uranus and Neptune are visible only as colored dots in an amateur class telescopes that I've used up to 12.5", and Pluto is a difficult enough object to find for the amateur astronomer, never mind Jonny Q.. ...
    (sci.astro.amateur)
  • Re: Quote from student, after teaching Pick
    ... do we really know or care whether the data ... frames are on a seperate disk/volume, ... High level design is for people who don't like to get their hands dirty. ...
    (comp.databases.pick)