C++ to C

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

    C++ to C

    Are there any open source C++ compilers that will produce C code? I
    understand the first C++ compilers operated this way.



  • Jack Klein

    #2
    Re: C++ to C

    On Mon, 27 Oct 2003 23:07:19 GMT, "Bootstrap Bill"
    <wrcousert@yaho o.com> wrote in comp.lang.c:
    [color=blue]
    > Are there any open source C++ compilers that will produce C code? I
    > understand the first C++ compilers operated this way.[/color]

    C++ compilers are off-topic in comp.lang.c.

    --
    Jack Klein
    Home: http://JK-Technology.Com
    FAQs for
    comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
    comp.lang.c++ http://www.parashift.com/c++-faq-lite/
    alt.comp.lang.l earn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq

    Comment

    • Frank Schmitt

      #3
      Re: C++ to C

      "Bootstrap Bill" <wrcousert@yaho o.com> writes:
      [color=blue]
      > Are there any open source C++ compilers that will produce C code? I
      > understand the first C++ compilers operated this way.[/color]

      You might want to have a look at Comeau - it's not open source, but
      it's cheap, and AFAIK does exactly what you want
      (www.comeaucomputing.com)

      HTH & kind regards
      frank

      --
      Frank Schmitt
      4SC AG phone: +49 89 700763-0
      e-mail: frankNO DOT SPAMschmitt AT 4sc DOT com

      Comment

      • those who know me have no need of my name

        #4
        Re: C++ to C

        in comp.lang.c i read:[color=blue]
        >"Bootstrap Bill" <wrcousert@yaho o.com> writes:[/color]
        [color=blue][color=green]
        >> Are there any open source C++ compilers that will produce C code? I
        >> understand the first C++ compilers operated this way.[/color]
        >
        >You might want to have a look at Comeau - it's not open source, but
        >it's cheap, and AFAIK does exactly what you want[/color]

        but note that the code produced isn't intended for human consumption or
        later use, so it's not necessarily maintainable (at least not directly).

        --
        a signature

        Comment

        • Dan Pop

          #5
          Re: C++ to C

          In <m1oew163mq.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]
          >>"Bootstrap Bill" <wrcousert@yaho o.com> writes:[/color]
          >[color=green][color=darkred]
          >>> Are there any open source C++ compilers that will produce C code? I
          >>> understand the first C++ compilers operated this way.[/color]
          >>
          >>You might want to have a look at Comeau - it's not open source, but
          >>it's cheap, and AFAIK does exactly what you want[/color]
          >
          >but note that the code produced isn't intended for human consumption or
          >later use, so it's not necessarily maintainable (at least not directly).[/color]

          And it's not portable C code, either. It's code fit for the target C
          implementation( s) only.

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

          Comment

          • Greg Comeau

            #6
            Re: C++ to C

            In article <4cptghlmuo.fsf @scxw21.4sc>,
            Frank Schmitt <invalid@seesig nature.info> wrote:[color=blue]
            >"Bootstrap Bill" <wrcousert@yaho o.com> writes:
            >[color=green]
            >> Are there any open source C++ compilers that will produce C code? I
            >> understand the first C++ compilers operated this way.[/color]
            >
            >You might want to have a look at Comeau - it's not open source, but
            >it's cheap, and AFAIK does exactly what you want
            >(www.comeaucomputing.com)[/color]

            Well, Comeau C++ does produce C as an implementation detail.
            But that's not supposed to be a user concerns per se,
            so Bootstrap should probably elaborate upon his needs,
            and we can re-advise him from there. In other words,
            what it the underlying need for the request in the first place?
            --
            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

            • Sheldon Simms

              #7
              Re: C++ to C

              On Tue, 28 Oct 2003 09:59:29 -0500, Greg Comeau wrote:
              [color=blue]
              > In article <4cptghlmuo.fsf @scxw21.4sc>,
              > Frank Schmitt <invalid@seesig nature.info> wrote:[color=green]
              >>"Bootstrap Bill" <wrcousert@yaho o.com> writes:
              >>[color=darkred]
              >>> Are there any open source C++ compilers that will produce C code? I
              >>> understand the first C++ compilers operated this way.[/color]
              >>
              >>You might want to have a look at Comeau - it's not open source, but
              >>it's cheap, and AFAIK does exactly what you want
              >>(www.comeaucomputing.com)[/color]
              >
              > Well, Comeau C++ does produce C as an implementation detail.
              > But that's not supposed to be a user concerns per se,
              > so Bootstrap should probably elaborate upon his needs,
              > and we can re-advise him from there. In other words,
              > what it the underlying need for the request in the first place?[/color]

              The OP was also asking for C compiliers for the 6809,
              so I suspect he is looking for a why to compile C++
              code for one or more platforms for which no C++ compiler
              exists.

              -Sheldon

              Comment

              • Dan Pop

                #8
                Re: C++ to C

                In <pan.2003.10.28 .16.26.31.16971 @yahoo.com> Sheldon Simms <sheldonsimms@y ahoo.com> writes:
                [color=blue]
                >The OP was also asking for C compiliers for the 6809,
                >so I suspect he is looking for a why to compile C++
                >code for one or more platforms for which no C++ compiler
                >exists.[/color]

                Then, he is wasting his time. Apart from the portability of the generated
                C code issue, there is also the missing C++ library support issue.

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

                Comment

                • Tristan Miller

                  #9
                  Re: C++ to C

                  Greetings.

                  In article <Hyhnb.53907$ZH 4.38025@twister .socal.rr.com>, Bootstrap Bill
                  wrote:[color=blue]
                  > Are there any open source C++ compilers that will produce C code? I
                  > understand the first C++ compilers operated this way.[/color]

                  This is mostly answered in the FAQ, wherein one should generally look before
                  posting:



                  --
                  _
                  _V.-o Tristan Miller [en,(fr,de,ia)] >< Space is limited
                  / |`-' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-= <> In a haiku, so it's hard
                  (7_\\ http://www.nothingisreal.com/ >< To finish what you

                  Comment

                  • Bootstrap Bill

                    #10
                    Re: C++ to C


                    "Jack Klein" <jackklein@spam cop.net> wrote in message
                    news:17lrpvo5if 9qplap27mdcjprj jnb7qfsiv@4ax.c om...[color=blue]
                    > On Mon, 27 Oct 2003 23:07:19 GMT, "Bootstrap Bill"
                    > <wrcousert@yaho o.com> wrote in comp.lang.c:
                    >[color=green]
                    > > Are there any open source C++ compilers that will produce C code? I
                    > > understand the first C++ compilers operated this way.[/color]
                    >
                    > C++ compilers are off-topic in comp.lang.c.[/color]

                    I asked about converting to C, so this is on topic.



                    Comment

                    • Bootstrap Bill

                      #11
                      Re: C++ to C


                      "Sheldon Simms" <sheldonsimms@y ahoo.com> wrote in message
                      news:pan.2003.1 0.28.16.26.31.1 6971@yahoo.com. ..[color=blue]
                      > The OP was also asking for C compiliers for the 6809,
                      > so I suspect he is looking for a why to compile C++
                      > code for one or more platforms for which no C++ compiler
                      > exists.[/color]
                      Yes, that is exactly what I want to do..



                      Comment

                      • Bootstrap Bill

                        #12
                        Re: C++ to C


                        "Tristan Miller" <psychonaut@not hingisreal.com> wrote in message
                        news:2238734.fH ekL7YmAO@ID-187157.news.dfn cis.de...[color=blue]
                        > Greetings.
                        >
                        > In article <Hyhnb.53907$ZH 4.38025@twister .socal.rr.com>, Bootstrap Bill
                        > wrote:[color=green]
                        > > Are there any open source C++ compilers that will produce C code? I
                        > > understand the first C++ compilers operated this way.[/color]
                        >
                        > This is mostly answered in the FAQ, wherein one should generally look[/color]
                        before[color=blue]
                        > posting:
                        >
                        > http://www.eskimo.com/~scs/C-faq/q20.27.html
                        >[/color]
                        That faq entry didn't even come close to answering my question. I want to
                        convert C++ to C, not compile C with a C++ compiler.



                        Comment

                        • E. Robert Tisdale

                          #13
                          Re: C++ to C

                          Bootstrap Bill wrote:
                          [color=blue]
                          > Jack Klein wrote:
                          >[color=green]
                          >> Bootstrap Bill wrote:
                          >>[color=darkred]
                          >>> Are there any open source C++ compilers that will produce C code?
                          >>> I understand the first C++ compilers operated this way.[/color]
                          >>
                          >> C++ compilers are off-topic in comp.lang.c.[/color]
                          >
                          > I asked about converting to C, so this is on topic.[/color]

                          Please ignore Jack Klein. He gets cranky sometimes.
                          And is often short tempered with new subscribers.
                          But, when he feels like it, he can be one of the best contributors
                          to the comp.lang.c newsgroup. Just be patient.

                          Comment

                          • E. Robert Tisdale

                            #14
                            Re: C++ to C

                            Bootstrap Bill wrote:
                            [color=blue]
                            > Are there any open source C++ compilers that will produce C code?[/color]

                            No.
                            [color=blue]
                            > I understand the first C++ compilers operated this way.[/color]

                            You probably mean AT+T's cfront.

                            I used Google



                            to search for

                            +"C++" +"cfront" +"back end"

                            and I found lots of stuff including
                            The C++ Front End



                            I don't know whether any of these are "open source"
                            or whether any of them *emit* portable C code.

                            Comment

                            • Default User

                              #15
                              Re: C++ to C

                              "E. Robert Tisdale" wrote:
                              [color=blue]
                              > Please ignore Jack Klein.[/color]


                              Listen to Jack Klein. Ignore Trollsdale.



                              Brian Rodenborn

                              Comment

                              Working...