standard reference manual

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • E. Robert Tisdale

    #1

    standard reference manual

    I am a long time subscriber to the comp.lang.c newsgroup.
    Recently (over the last few years), comp.lang.c subscribers
    have been citing and quoting ANSI/ISO C standards documents
    to support their interpretation of the standards.
    Evidently, they are using the standards documents
    as sort of a "programmer s' reference manual".
    Personally, I find that the standards documents
    are difficult to read, understand and interpret.
    I feel compelled to consult the comp.std.c newsgroup
    for their interpretation of the standards documents.

    Were the standards documents intended to be used
    as a reference manual by ordinary programmers?
    Or were they mainly intended for use by compiler developers?
    Is there any hope that the standards documents can be revised
    to make them more useful to ordinary C programmers?
    Are there other documents that C programmers should use
    as a reference besides or instead of the standards documents?

  • James Kuyper

    #2
    Re: standard reference manual

    "E. Robert Tisdale" wrote:
    ....[color=blue]
    > Were the standards documents intended to be used
    > as a reference manual by ordinary programmers?
    > Or were they mainly intended for use by compiler developers?[/color]

    They were intended for use both by developers interested in writing code
    that can be ported to any conforming implementation, and by implementors
    interested in writing conforming implementations . However, as is usually
    the case when trying to serve two different goals, it serves neither one
    as well as it would if the other goal could be ignored. I'd say it's
    biased in favor of giving implementors what they need, leaving
    developers to rely on third-party books for more readible descriptions
    of C. However, implementors might feel differently about that.

    Comment

    • lawrence.jones@ugsplm.com

      #3
      Re: standard reference manual

      In comp.std.c E. Robert Tisdale <E.Robert.Tisda le@jpl.nasa.gov > wrote:[color=blue]
      >
      > Were the standards documents intended to be used
      > as a reference manual by ordinary programmers?[/color]

      Yes. I don't recommend it as casual reading (the plot and character
      development leave a lot to be desired), but the committee tried very
      hard to ensure that it would be accessible to the average (professional)
      programmer.

      -Larry Jones

      I keep forgetting that rules are only for little nice people. -- Calvin

      Comment

      • Ben Pfaff

        #4
        Re: standard reference manual

        lawrence.jones@ ugsplm.com writes:
        [color=blue]
        > Yes. I don't recommend it as casual reading (the plot and character
        > development leave a lot to be desired), but the committee tried very
        > hard to ensure that it would be accessible to the average (professional)
        > programmer.[/color]

        I use the standard as my primary C reference manual, and I
        suspect that many others regulars in clc do so as well.
        --
        Ben Pfaff
        email: blp@cs.stanford .edu
        web: http://benpfaff.org

        Comment

        • Douglas A. Gwyn

          #5
          Re: standard reference manual

          E. Robert Tisdale wrote:[color=blue]
          > Were the standards documents intended to be used
          > as a reference manual by ordinary programmers?[/color]

          As a reference, yes, but as a tutorial, no.

          Comment

          • Richard Bos

            #6
            Re: standard reference manual

            lawrence.jones@ ugsplm.com wrote:
            [color=blue]
            > In comp.std.c E. Robert Tisdale <E.Robert.Tisda le@jpl.nasa.gov > wrote:[color=green]
            > >
            > > Were the standards documents intended to be used
            > > as a reference manual by ordinary programmers?[/color]
            >
            > Yes. I don't recommend it as casual reading (the plot and character
            > development leave a lot to be desired), but the committee tried very
            > hard to ensure that it would be accessible to the average (professional)
            > programmer.[/color]

            And for the greater part, it has succeeded, IMO.

            Richard

            Comment

            • Eric Smith

              #7
              Re: standard reference manual

              lawrence.jones@ ugsplm.com writes:[color=blue]
              > Yes. I don't recommend it as casual reading (the plot and character
              > development leave a lot to be desired),[/color]

              Some technical documents do have quite good character development, though.
              For instance, Volume E of Donald E. Knuth's _Computers & Typesetting_.

              Comment

              • Dan Pop

                #8
                Re: standard reference manual

                In <4075A94F.90707 @jpl.nasa.gov> "E. Robert Tisdale" <E.Robert.Tisda le@jpl.nasa.gov > writes:
                [color=blue]
                >Were the standards documents intended to be used
                >as a reference manual by ordinary programmers?
                >Or were they mainly intended for use by compiler developers?[/color]

                Footnote 1 provides the answers:

                1) This International Standard is designed to promote the
                portability of C programs among a variety of data-processing
                systems. It is intended for use by implementors and
                programmers.

                Dan
                --
                Dan Pop
                DESY Zeuthen, RZ group
                Email: Dan.Pop@ifh.de

                Comment

                • Dan Pop

                  #9
                  Re: standard reference manual

                  In <c5j1o1$c4t$1@z cars0v6.ca.nort el.com> "Xiangliang Meng" <xiangliang_men g@hotmail.com> writes:
                  [color=blue]
                  >In this case, I recommend the book<C: A Reference Manual, Fifth Edition>
                  >and the link http://www.careferencemanual.com/.
                  >
                  >In my private view, this book is very helpful for you to understand C99.[/color]

                  Provided that its authors managed to understand the C99 standard.
                  Previous editions provided enough evidence that they missed some of the
                  finer points of C89...

                  Dan
                  --
                  Dan Pop
                  DESY Zeuthen, RZ group
                  Email: Dan.Pop@ifh.de

                  Comment

                  • those who know me have no need of my name

                    #10
                    Re: standard reference manual

                    in comp.lang.c i read:[color=blue]
                    >In <c5j1o1$c4t$1@z cars0v6.ca.nort el.com> "Xiangliang Meng"
                    ><xiangliang_me ng@hotmail.com> writes:[/color]
                    [color=blue][color=green]
                    >>In this case, I recommend the book<C: A Reference Manual, Fifth Edition>
                    >>and the link http://www.careferencemanual.com/.
                    >>
                    >>In my private view, this book is very helpful for you to understand C99.[/color]
                    >
                    >Provided that its authors managed to understand the C99 standard.
                    >Previous editions provided enough evidence that they missed some of the
                    >finer points of C89...[/color]

                    they have an errata web page and accept public submissions.

                    --
                    a signature

                    Comment

                    • rohit

                      #11
                      Re: standard reference manual

                      > Provided that its authors managed to understand the C99 standard.[color=blue]
                      > Previous editions provided enough evidence that they missed some of the
                      > finer points of C89...[/color]
                      how can we know that our compiler is in conformance of C89 or any
                      other standard.Is there a option/flag(like gcc -v gives the compiler
                      version) that says to which standard the compiler conforms to.

                      regards
                      rohit

                      Comment

                      • Antoine Leca

                        #12
                        Re: standard reference manual

                        En 93d5c679.040419 2355.2a874f71@p osting.google.c om, rohit va escriure:[color=blue]
                        > how can we know that our compiler is in conformance of C89[/color]

                        If a compiler claims conformance to the C standard, one of its requisites is
                        to come accompanied by a documentation. Which will tell you this kind of
                        things (and much more).

                        So there is even less excuses to RTFM ;-).


                        Antoine

                        Comment

                        • Dan Pop

                          #13
                          Re: standard reference manual

                          In <m1u0zfofah.gnu s@usa.net> those who know me have no need of my name <not-a-real-address@usa.net > writes:
                          [color=blue]
                          >in comp.lang.c i read:[color=green]
                          >>In <c5j1o1$c4t$1@z cars0v6.ca.nort el.com> "Xiangliang Meng"
                          >><xiangliang_m eng@hotmail.com > writes:[/color]
                          >[color=green][color=darkred]
                          >>>In this case, I recommend the book<C: A Reference Manual, Fifth Edition>
                          >>>and the link http://www.careferencemanual.com/.
                          >>>
                          >>>In my private view, this book is very helpful for you to understand C99.[/color]
                          >>
                          >>Provided that its authors managed to understand the C99 standard.
                          >>Previous editions provided enough evidence that they missed some of the
                          >>finer points of C89...[/color]
                          >
                          >they have an errata web page and accept public submissions.[/color]

                          Which is of precious little help to the people willing to learn C99 from
                          their book: they're not supposed to be able to find the bugs in the book
                          and those who already know C99 are not supposed to read a less
                          authoritative book on the same topic.

                          Dan
                          --
                          Dan Pop
                          DESY Zeuthen, RZ group
                          Email: Dan.Pop@ifh.de

                          Comment

                          • James Kuyper

                            #14
                            Re: standard reference manual

                            prohit99@yahoo. com (rohit) wrote in message news:<93d5c679. 0404192355.2a87 4f71@posting.go ogle.com>...[color=blue][color=green]
                            > > Provided that its authors managed to understand the C99 standard.
                            > > Previous editions provided enough evidence that they missed some of the
                            > > finer points of C89...[/color]
                            > how can we know that our compiler is in conformance of C89 or any
                            > other standard.Is there a option/flag(like gcc -v gives the compiler
                            > version) that says to which standard the compiler conforms to.[/color]

                            It's possible to find out whether the implementors claim that a
                            compiler conforms, by checking the documentation. That documentation
                            should also tell you what options you need to invoke to put your
                            compiler into conforming mode; the default mode is almost never fully
                            conforming. The "-ansi" option puts many compilers into a mode that
                            conforms to C89, or at least comes close to conforming. There's less
                            agreement about how to put compilers into conformance with the C99
                            standard.

                            However, it's impossible to know for certain that a compiler actuall
                            does conform to C89 (or C99). It's possible to test for
                            non-conformance by using various test suites. However, passing those
                            tests does not confirm conformance; no finite number of test cases can
                            cover every possible way an implementation can be non-conforming.
                            Also, a key component of a conforming implmentation is the
                            implementations documentation of those things the standard requires
                            each implementation to define. That document will be in some natural
                            language; as a result, automated testing is impossible with current
                            technology. Basically, it must be read by a human expert, who will try
                            to judge whether the implementors have adequately defined everything
                            they're required to define. Inherently, that will be a judgement call.

                            In other words, there is no royal road to determining conformance. The
                            simplest approach is to hope that when implementors claim that their
                            implementations are conforming, they're telling the truth, and to
                            complain about non-conformance if and when we detect it.

                            Comment

                            • Xiangliang Meng

                              #15
                              Re: standard reference manual

                              Do you consider reading the C99 standard is the only way? Or would you like
                              to give more advice?

                              I guess there are many people want to master C across the world.

                              Thank you.

                              Regards,

                              Xiangliang Meng


                              "Dan Pop" <Dan.Pop@cern.c h> wrote in message
                              news:c60arg$p4b $1@sunnews.cern .ch...[color=blue]
                              > In <c5j1o1$c4t$1@z cars0v6.ca.nort el.com> "Xiangliang Meng"[/color]
                              <xiangliang_men g@hotmail.com> writes:[color=blue]
                              >[color=green]
                              > >In this case, I recommend the book<C: A Reference Manual, Fifth Edition>
                              > >and the link http://www.careferencemanual.com/.
                              > >
                              > >In my private view, this book is very helpful for you to understand C99.[/color]
                              >
                              > Provided that its authors managed to understand the C99 standard.
                              > Previous editions provided enough evidence that they missed some of the
                              > finer points of C89...
                              >
                              > Dan
                              > --
                              > Dan Pop
                              > DESY Zeuthen, RZ group
                              > Email: Dan.Pop@ifh.de[/color]


                              Comment

                              Working...