C++ sample source to test compiler compliancy

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • spipyeah

    C++ sample source to test compiler compliancy

    Is there a collection of C++ source files that can be used to test
    compiler compliancy by using really extreme language cases, making
    sure the standard library is complete, and other such things?
  • Attila Feher

    #2
    Re: C++ sample source to test compiler compliancy

    spipyeah wrote:[color=blue]
    > Is there a collection of C++ source files that can be used to test
    > compiler compliancy by using really extreme language cases, making
    > sure the standard library is complete, and other such things?[/color]

    If you want to know about a specific compiler then I think at Boost you can
    find out a lot.

    --
    Attila aka WW


    Comment

    • tom_usenet

      #3
      Re: C++ sample source to test compiler compliancy

      On 12 Sep 2003 01:00:53 -0700, spip_yeah@yahoo .com (spipyeah) wrote:
      [color=blue]
      >Is there a collection of C++ source files that can be used to test
      >compiler compliancy by using really extreme language cases, making
      >sure the standard library is complete, and other such things?[/color]



      http://www.dinkumware.com/cproofer.html (library only)

      also:
      Get an instant loan today with Sunny Loans and enjoy no fees or early repayment charges. Discover what instant loans involve & why one might work for you.


      I'm not aware of anything free that attempts to check conformance
      properly.

      Tom

      Comment

      • tom_usenet

        #4
        Re: C++ sample source to test compiler compliancy

        On Fri, 12 Sep 2003 12:08:03 +0300, "Attila Feher"
        <attila.feher@l mf.ericsson.se> wrote:
        [color=blue]
        >spipyeah wrote:[color=green]
        >> Is there a collection of C++ source files that can be used to test
        >> compiler compliancy by using really extreme language cases, making
        >> sure the standard library is complete, and other such things?[/color]
        >
        >If you want to know about a specific compiler then I think at Boost you can
        >find out a lot.[/color]

        The problem is that boost makes extensive use of workarounds to make
        code work for non-standard compilers. The percentage of passed boost
        regression tests is far more an indication of the amount of work that
        has been put into porting boost to that compiler than of the
        conformance of that compiler.

        e.g. g++ and Metroworks both score "better" than Comeau C++.

        Tom

        Comment

        • Attila Feher

          #5
          Re: C++ sample source to test compiler compliancy

          tom_usenet wrote:[color=blue]
          > On Fri, 12 Sep 2003 12:08:03 +0300, "Attila Feher"
          > <attila.feher@l mf.ericsson.se> wrote:
          >[color=green]
          >> spipyeah wrote:[color=darkred]
          >>> Is there a collection of C++ source files that can be used to test
          >>> compiler compliancy by using really extreme language cases, making
          >>> sure the standard library is complete, and other such things?[/color]
          >>
          >> If you want to know about a specific compiler then I think at Boost
          >> you can find out a lot.[/color]
          >
          > The problem is that boost makes extensive use of workarounds to make
          > code work for non-standard compilers. The percentage of passed boost
          > regression tests is far more an indication of the amount of work that
          > has been put into porting boost to that compiler than of the
          > conformance of that compiler.
          >
          > e.g. g++ and Metroworks both score "better" than Comeau C++.[/color]

          That is why I did not say: look at the Boost compatibility charts, but that
          "at Boost you can find out a lot." What I meant is that if he has a
          specific compiler in mind he can look at what workarounds are there for it
          in Boost, read (possibly ask) on the mailing list etc.

          --
          Attila aka WW


          Comment

          • Greg Comeau

            #6
            Re: C++ sample source to test compiler compliancy

            In article <bd73mvgobn9pel ntumacu3fen92kl jcojm@4ax.com>,
            tom_usenet <tom_usenet@hot mail.com> wrote:[color=blue]
            >On Fri, 12 Sep 2003 12:08:03 +0300, "Attila Feher"
            ><attila.feher@ lmf.ericsson.se > wrote:
            >[color=green]
            >>spipyeah wrote:[color=darkred]
            >>> Is there a collection of C++ source files that can be used to test
            >>> compiler compliancy by using really extreme language cases, making
            >>> sure the standard library is complete, and other such things?[/color]
            >>
            >>If you want to know about a specific compiler then I think at Boost you can
            >>find out a lot.[/color]
            >
            >The problem is that boost makes extensive use of workarounds to make
            >code work for non-standard compilers. The percentage of passed boost
            >regression tests is far more an indication of the amount of work that
            >has been put into porting boost to that compiler than of the
            >conformance of that compiler.
            >
            >e.g. g++ and Metroworks both score "better" than Comeau C++.[/color]

            Right, Boost does not provide a measure of compliance to
            Standard C++. I suspect the OP is looking for some test
            suites, though "extreme language cases" may be asking for more.
            --
            Greg Comeau/4.3.3:Full C++03 core language + more Windows backends
            Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout
            World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
            Comeau C/C++ with Dinkumware's Libraries... Have you tried it?

            Comment

            • Greg Comeau

              #7
              Re: C++ sample source to test compiler compliancy

              In article <5e43mvob6a6c73 hngqp9ppdg07d0j hoju2@4ax.com>,
              tom_usenet <tom_usenet@hot mail.com> wrote:[color=blue]
              >On 12 Sep 2003 01:00:53 -0700, spip_yeah@yahoo .com (spipyeah) wrote:
              >[color=green]
              >>Is there a collection of C++ source files that can be used to test
              >>compiler compliancy by using really extreme language cases, making
              >>sure the standard library is complete, and other such things?[/color]
              >
              >http://www.plumhall.com/suites.html
              >http://www.peren.com/pages/cppvs.htm
              >http://www.dinkumware.com/cproofer.html (library only)
              >
              >also:
              >http://www.cuj.com/documents/s=8027/...ter/sutter.htm
              >
              >I'm not aware of anything free that attempts to check conformance
              >properly.[/color]

              I don't know the critereas used, but I understand there
              is also an upcoming article in DDJ due shortly too.
              --
              Greg Comeau/4.3.3:Full C++03 core language + more Windows backends
              Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout
              World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
              Comeau C/C++ with Dinkumware's Libraries... Have you tried it?

              Comment

              • spipyeah

                #8
                Re: C++ sample source to test compiler compliancy

                Thank you all, I'll be checking all those resources, and keep an eye on DDJ too.

                Comment

                • spipyeah

                  #9
                  Re: C++ sample source to test compiler compliancy

                  Creg, if I may ask, in your experience, how does GNU g++ usually fare?

                  Comment

                  • David B. Held

                    #10
                    Re: C++ sample source to test compiler compliancy

                    "spipyeah" <spip_yeah@yaho o.com> wrote in message
                    news:882fe461.0 309151357.13d97 d31@posting.goo gle.com...[color=blue]
                    > Creg, if I may ask, in your experience, how does GNU g++
                    > usually fare?[/color]

                    In my opinion, gcc 3.3 is outstanding. It might have bugs, but
                    I haven't run across one yet!

                    Dave


                    Comment

                    • White Wolf

                      #11
                      Re: C++ sample source to test compiler compliancy

                      David B. Held wrote:[color=blue]
                      > "spipyeah" <spip_yeah@yaho o.com> wrote in message
                      > news:882fe461.0 309151357.13d97 d31@posting.goo gle.com...[color=green]
                      >> Creg, if I may ask, in your experience, how does GNU g++
                      >> usually fare?[/color]
                      >
                      > In my opinion, gcc 3.3 is outstanding. It might have bugs, but
                      > I haven't run across one yet![/color]

                      3.3 or 3.3.1?

                      And I guess you mean that at the features claimed to be supported. I guess
                      two phase name lookup is not there yet and ordering... but I could not find
                      their compliance statement.

                      --
                      WW aka Attila


                      Comment

                      • llewelly

                        #12
                        Re: C++ sample source to test compiler compliancy

                        "White Wolf" <wolof@freemail .hu> writes:
                        [color=blue]
                        > David B. Held wrote:[color=green]
                        > > "spipyeah" <spip_yeah@yaho o.com> wrote in message
                        > > news:882fe461.0 309151357.13d97 d31@posting.goo gle.com...[color=darkred]
                        > >> Creg, if I may ask, in your experience, how does GNU g++
                        > >> usually fare?[/color]
                        > >
                        > > In my opinion, gcc 3.3 is outstanding. It might have bugs, but
                        > > I haven't run across one yet![/color]
                        >
                        > 3.3 or 3.3.1?
                        >
                        > And I guess you mean that at the features claimed to be supported. I guess
                        > two phase name lookup is not there yet and ordering... but I could not find
                        > their compliance statement.[/color]

                        It is my impression that gcc 3.4 will have two-phase lookup. gcc
                        3.3.x does not. 3.3.1 is only a bugfix release on 3.3 .

                        Comment

                        Working...