Very Small C Compiler which can generate DLL files?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • scholz.lothar@gmail.com

    Very Small C Compiler which can generate DLL files?

    I want to add some extension features to my program and this would
    require that i bundle a small c compiler with my program. On Unix it
    seems that tiny-c can do this, but i don't know about windows.
  • jacob navia

    #2
    Re: Very Small C Compiler which can generate DLL files?

    scholz.lothar@g mail.com wrote:
    I want to add some extension features to my program and this would
    require that i bundle a small c compiler with my program. On Unix it
    seems that tiny-c can do this, but i don't know about windows.
    lcc-win can be bundled with your application.
    You can contact me for prices and conditions.

    Mail address:
    jacob at jacob point remcomp point fr

    P.S. I do eiffel too :-)

    --
    jacob navia
    jacob at jacob point remcomp point fr
    logiciels/informatique

    Comment

    • Walter Roberson

      #3
      Re: Very Small C Compiler which can generate DLL files?

      In article <dd900d6f-af49-478a-b9a4-d1c45b4af381@x1 9g2000prg.googl egroups.com>,
      <scholz.lothar@ gmail.comwrote:
      >I want to add some extension features to my program and this would
      >require that i bundle a small c compiler with my program.
      Would it? Is there an external requirement that the extension language
      be C? If not, then you could make the extension language something
      comparatively simple to parse and build your own tiny compiler for it.
      --
      "We worked every day, Sunday included, until at least ten
      o'clock at night. I remember it was an event when we quit work
      on Christmas night at eight o'clock to attend a family reunion."
      -- Walter Davidson (of Harley-Davidson)

      Comment

      • Harald van =?UTF-8?b?RMSzaw==?=

        #4
        Re: Very Small C Compiler which can generate DLL files?

        On Mon, 26 May 2008 09:34:08 -0700, scholz.lothar wrote:
        I want to add some extension features to my program and this would
        require that i bundle a small c compiler with my program. On Unix it
        seems that tiny-c can do this, but i don't know about windows.
        I assume by tiny-c you mean tinycc. If so, it is also available for
        Windows.

        Comment

        • gavenkoa

          #5
          Re: Very Small C Compiler which can generate DLL files?

          On May 26, 7:34 pm, scholz.lot...@g mail.com wrote:
          I want to add some extension features to my program and this would
          require that i bundle a small c compiler with my program. On Unix it
          seems that tiny-c can do this, but i don't know about windows.
          May be to you enough use some scripting language such as `lua', which
          engine may be used at runtime from shared lib (about 400 KiB),
          available on many platform.

          Comment

          • Flash Gordon

            #6
            Re: Very Small C Compiler which can generate DLL files?

            Walter Roberson wrote, On 26/05/08 18:48:
            In article <dd900d6f-af49-478a-b9a4-d1c45b4af381@x1 9g2000prg.googl egroups.com>,
            <scholz.lothar@ gmail.comwrote:
            >I want to add some extension features to my program and this would
            >require that i bundle a small c compiler with my program.
            >
            Would it? Is there an external requirement that the extension language
            be C? If not, then you could make the extension language something
            comparatively simple to parse and build your own tiny compiler for it.
            Or the OP could use one of the almost-C interpreters which are
            embeddable. I have come across at least a couple.
            --
            Flash Gordon

            Comment

            • scholz.lothar@gmail.com

              #7
              Re: Very Small C Compiler which can generate DLL files?

              On 27 Mai, 02:29, gavenkoa <gaven...@gmail .comwrote:
              On May 26, 7:34 pm, scholz.lot...@g mail.com wrote:
              >
              I want to add some extension features to my program and this would
              require that i bundle a small c compiler with my program. On Unix it
              seems that tiny-c can do this, but i don't know about windows.
              >
              May be to you enough use some scripting language such as `lua', which
              engine may be used at runtime from shared lib (about 400 KiB),
              available on many platform.
              Thanks, i checked that tinycc is working on windows and can generate
              windows-dll's. Thats good. I'm already using lua for some more high
              level scripting but some parts are speed critical enough that they
              require the full power of compiled code and easy c string operations.

              I will check if tinycc works reliable for my use case otherwise i
              might
              check mingw or contact jacob. Or does anybody know about another small
              and free c compiler?

              Comment

              • thomas.mertes@gmx.at

                #8
                Re: Very Small C Compiler which can generate DLL files?

                On 27 Mai, 00:40, scholz.lot...@g mail.com wrote:
                On 27 Mai, 02:29, gavenkoa <gaven...@gmail .comwrote:
                >
                On May 26, 7:34 pm, scholz.lot...@g mail.com wrote:
                >
                I want to add some extension features to my program and this would
                require that i bundle a small c compiler with my program. On Unix it
                seems that tiny-c can do this, but i don't know about windows.
                >
                May be to you enough use some scripting language such as `lua', which
                engine may be used at runtime from shared lib (about 400 KiB),
                available on many platform.
                >
                Thanks, i checked that tinycc is working on windows and can generate
                windows-dll's. Thats good. I'm already using lua for some more high
                level scripting but some parts are speed critical enough that they
                require the full power of compiled code and easy c string operations.
                >
                I will check if tinycc works reliable for my use case otherwise i
                might
                check mingw or contact jacob. Or does anybody know about another small
                and free c compiler?
                MinGW is ok, but it has to be determined which files need
                to be added to the bundle. AFAIK MinGW needs more than one
                *.exe file. There are also such things as header files
                and libraries.

                Greetings Thomas Mertes

                Seed7 Homepage: http://seed7.sourceforge.net
                Seed7 - The extensible programming language: User defined statements
                and operators, abstract data types, templates without special
                syntax, OO with interfaces and multiple dispatch, statically typed,
                interpreted or compiled, portable, runs under linux/unix/windows.

                Comment

                • Bartc

                  #9
                  Re: Very Small C Compiler which can generate DLL files?

                  <thomas.mertes@ gmx.atwrote in message
                  news:8040497f-d0ad-4530-bab8-c70d03cd8ae0@e5 3g2000hsa.googl egroups.com...
                  On 27 Mai, 00:40, scholz.lot...@g mail.com wrote:
                  >On 27 Mai, 02:29, gavenkoa <gaven...@gmail .comwrote:
                  >>
                  On May 26, 7:34 pm, scholz.lot...@g mail.com wrote:
                  >>
                  I want to add some extension features to my program and this would
                  require that i bundle a small c compiler with my program. On Unix it
                  seems that tiny-c can do this, but i don't know about windows.
                  >>
                  May be to you enough use some scripting language such as `lua', which
                  engine may be used at runtime from shared lib (about 400 KiB),
                  available on many platform.
                  >>
                  >Thanks, i checked that tinycc is working on windows and can generate
                  >windows-dll's. Thats good. I'm already using lua for some more high
                  >level scripting but some parts are speed critical enough that they
                  >require the full power of compiled code and easy c string operations.
                  >>
                  >I will check if tinycc works reliable for my use case otherwise i
                  >might
                  >check mingw or contact jacob. Or does anybody know about another small
                  >and free c compiler?
                  MinGW is ok, but it has to be determined which files need
                  to be added to the bundle. AFAIK MinGW needs more than one
                  *.exe file. There are also such things as header files
                  and libraries.
                  My version of mingw comprises 55MB in some 700 files. I wouldn't exactly
                  call it small.

                  --
                  Bartc


                  Comment

                  • thomas.mertes@gmx.at

                    #10
                    Re: Very Small C Compiler which can generate DLL files?

                    On 27 Mai, 11:45, "Bartc" <b...@freeuk.co mwrote:
                    <thomas.mer...@ gmx.atwrote in message
                    >
                    news:8040497f-d0ad-4530-bab8-c70d03cd8ae0@e5 3g2000hsa.googl egroups.com...
                    >
                    >
                    >
                    On 27 Mai, 00:40, scholz.lot...@g mail.com wrote:
                    On 27 Mai, 02:29, gavenkoa <gaven...@gmail .comwrote:
                    >
                    On May 26, 7:34 pm, scholz.lot...@g mail.com wrote:
                    >
                    I want to add some extension features to my program and this would
                    require that i bundle a small c compiler with my program. On Unix it
                    seems that tiny-c can do this, but i don't know about windows.
                    >
                    May be to you enough use some scripting language such as `lua', which
                    engine may be used at runtime from shared lib (about 400 KiB),
                    available on many platform.
                    >
                    Thanks, i checked that tinycc is working on windows and can generate
                    windows-dll's. Thats good. I'm already using lua for some more high
                    level scripting but some parts are speed critical enough that they
                    require the full power of compiled code and easy c string operations.
                    >
                    I will check if tinycc works reliable for my use case otherwise i
                    might
                    check mingw or contact jacob. Or does anybody know about another small
                    and free c compiler?
                    MinGW is ok, but it has to be determined which files need
                    to be added to the bundle. AFAIK MinGW needs more than one
                    *.exe file. There are also such things as header files
                    and libraries.
                    >
                    My version of mingw comprises 55MB in some 700 files. I wouldn't exactly
                    call it small.
                    The question is:
                    How many of this 700 files are necessary to compile a given
                    bundle you want to release?

                    Greetings Thomas Mertes

                    Seed7 Homepage: http://seed7.sourceforge.net
                    Seed7 - The extensible programming language: User defined statements
                    and operators, abstract data types, templates without special
                    syntax, OO with interfaces and multiple dispatch, statically typed,
                    interpreted or compiled, portable, runs under linux/unix/windows.

                    Comment

                    • Bartc

                      #11
                      Re: Very Small C Compiler which can generate DLL files?


                      <thomas.mertes@ gmx.atwrote in message
                      news:d6ad6404-f82b-4e38-9288-6d28dcc2d8e5@f6 3g2000hsf.googl egroups.com...
                      On 27 Mai, 11:45, "Bartc" <b...@freeuk.co mwrote:
                      ><thomas.mer... @gmx.atwrote in message
                      >>
                      >news:8040497 f-d0ad-4530-bab8-c70d03cd8ae0@e5 3g2000hsa.googl egroups.com...
                      >>
                      >>
                      >>
                      On 27 Mai, 00:40, scholz.lot...@g mail.com wrote:
                      >On 27 Mai, 02:29, gavenkoa <gaven...@gmail .comwrote:
                      >>
                      On May 26, 7:34 pm, scholz.lot...@g mail.com wrote:
                      >>
                      I want to add some extension features to my program and this would
                      require that i bundle a small c compiler with my program. On Unix
                      it
                      seems that tiny-c can do this, but i don't know about windows.
                      >>
                      May be to you enough use some scripting language such as `lua',
                      which
                      engine may be used at runtime from shared lib (about 400 KiB),
                      available on many platform.
                      >>
                      >Thanks, i checked that tinycc is working on windows and can generate
                      >windows-dll's. Thats good. I'm already using lua for some more high
                      >level scripting but some parts are speed critical enough that they
                      >require the full power of compiled code and easy c string operations.
                      >>
                      >I will check if tinycc works reliable for my use case otherwise i
                      >might
                      >check mingw or contact jacob. Or does anybody know about another small
                      >and free c compiler?
                      MinGW is ok, but it has to be determined which files need
                      to be added to the bundle. AFAIK MinGW needs more than one
                      *.exe file. There are also such things as header files
                      and libraries.
                      >>
                      >My version of mingw comprises 55MB in some 700 files. I wouldn't exactly
                      >call it small.
                      The question is:
                      How many of this 700 files are necessary to compile a given
                      bundle you want to release?
                      I've no idea. Maybe somewhere in that a lot is an utility to determine the
                      minimalistic mingw distribution needed to compile a given application,
                      ignoring the possibility of the extensions requiring something extra.

                      Otherwise trawling through the 690 files and 89 directories of mingw might
                      take a while. (Apparently the 'min' of mingw means minimalistic; I wonder
                      how big the full version is!)

                      --
                      bartc



                      Comment

                      • jacob navia

                        #12
                        Re: Very Small C Compiler which can generate DLL files?

                        Bartc wrote:
                        <thomas.mertes@ gmx.atwrote in message
                        news:d6ad6404-f82b-4e38-9288-6d28dcc2d8e5@f6 3g2000hsf.googl egroups.com...
                        >On 27 Mai, 11:45, "Bartc" <b...@freeuk.co mwrote:
                        >
                        I've no idea. Maybe somewhere in that a lot is an utility to determine the
                        minimalistic mingw distribution needed to compile a given application,
                        ignoring the possibility of the extensions requiring something extra.
                        >
                        Otherwise trawling through the 690 files and 89 directories of mingw might
                        take a while. (Apparently the 'min' of mingw means minimalistic; I wonder
                        how big the full version is!)
                        >
                        lcc-win is a 5MB download (compressed). It has the same functionality of
                        mingw (excluding the C++ support of course). In that 5MB there is

                        o a full IDE with windowed debugger
                        o Project management!make
                        o linker, assembler,compi ler
                        o librarian, resource editor
                        o resource compiler
                        o grep/diff/software metrics
                        o object file cross reference
                        o all header files of windows
                        o Counted string library, statistics
                        library, extended precision floats,
                        extended special functions math library,

                        That is because the philosophy of lcc-win is to produce
                        small but powerful programs.


                        --
                        jacob navia
                        jacob at jacob point remcomp point fr
                        logiciels/informatique

                        Comment

                        • ca1

                          #13
                          Re: Very Small C Compiler which can generate DLL files?

                          what about some small lisp dialect. or even wrote one (it's
                          comp.lang.c)! it would surely be very enlightening.
                          Abuse has been, for example, written in C and scripting was done
                          with lisp(-like) language.
                          source code is available somewhere.
                          i haven't wrote one myself yet. but it seem you only have to take
                          care of evaluation ...

                          Comment

                          • thomas.mertes@gmx.at

                            #14
                            Re: Very Small C Compiler which can generate DLL files?

                            On 28 Mai, 00:43, jacob navia <ja...@nospam.c omwrote:
                            Bartc wrote:
                            <thomas.mer...@ gmx.atwrote in message
                            news:d6ad6404-f82b-4e38-9288-6d28dcc2d8e5@f6 3g2000hsf.googl egroups.com...
                            On 27 Mai, 11:45, "Bartc" <b...@freeuk.co mwrote:
                            >
                            I've no idea. Maybe somewhere in that a lot is an utility to determine the
                            minimalistic mingw distribution needed to compile a given application,
                            ignoring the possibility of the extensions requiring something extra.
                            >
                            Otherwise trawling through the 690 files and 89 directories of mingw might
                            take a while. (Apparently the 'min' of mingw means minimalistic; I wonder
                            how big the full version is!)
                            >
                            lcc-win is a 5MB download (compressed). It has the same functionality of
                            mingw (excluding the C++ support of course). In that 5MB there is
                            [snip]
                            AFAICS lcc-win is "free for non-commercial use" which means
                            that it is not under the GPL. Is this correct?

                            For Seed7 I use the GPL (and the LGPL for the libraries).
                            Therefore I would not use anything which is not under the
                            GPL or annother open source license. Sorry but anything
                            which contains a phrase like "free for non-commercial use"
                            is not free enough for me.

                            Greetings Thomas Mertes

                            Seed7 Homepage: http://seed7.sourceforge.net
                            Seed7 - The extensible programming language: User defined statements
                            and operators, abstract data types, templates without special
                            syntax, OO with interfaces and multiple dispatch, statically typed,
                            interpreted or compiled, portable, runs under linux/unix/windows.

                            Comment

                            • thomas.mertes@gmx.at

                              #15
                              Re: Very Small C Compiler which can generate DLL files?

                              On 27 Mai, 23:58, "Bartc" <b...@freeuk.co mwrote:
                              <thomas.mer...@ gmx.atwrote in message
                              >
                              news:d6ad6404-f82b-4e38-9288-6d28dcc2d8e5@f6 3g2000hsf.googl egroups.com...
                              >
                              >
                              >
                              On 27 Mai, 11:45, "Bartc" <b...@freeuk.co mwrote:
                              <thomas.mer...@ gmx.atwrote in message
                              >
                              >news:8040497 f-d0ad-4530-bab8-c70d03cd8ae0@e5 3g2000hsa.googl egroups.com...
                              >
                              On 27 Mai, 00:40, scholz.lot...@g mail.com wrote:
                              On 27 Mai, 02:29, gavenkoa <gaven...@gmail .comwrote:
                              >
                              On May 26, 7:34 pm, scholz.lot...@g mail.com wrote:
                              >
                              I want to add some extension features to my program and this would
                              require that i bundle a small c compiler with my program. On Unix
                              it
                              seems that tiny-c can do this, but i don't know about windows.
                              >
                              May be to you enough use some scripting language such as `lua',
                              which
                              engine may be used at runtime from shared lib (about 400 KiB),
                              available on many platform.
                              >
                              Thanks, i checked that tinycc is working on windows and can generate
                              windows-dll's. Thats good. I'm already using lua for some more high
                              level scripting but some parts are speed critical enough that they
                              require the full power of compiled code and easy c string operations.
                              >
                              I will check if tinycc works reliable for my use case otherwise i
                              might
                              check mingw or contact jacob. Or does anybody know about another small
                              and free c compiler?
                              MinGW is ok, but it has to be determined which files need
                              to be added to the bundle. AFAIK MinGW needs more than one
                              *.exe file. There are also such things as header files
                              and libraries.
                              >
                              My version of mingw comprises 55MB in some 700 files. I wouldn't exactly
                              call it small.
                              The question is:
                              How many of this 700 files are necessary to compile a given
                              bundle you want to release?
                              >
                              I've no idea. Maybe somewhere in that a lot is an utility to determine the
                              minimalistic mingw distribution needed to compile a given application,
                              ignoring the possibility of the extensions requiring something extra.
                              >
                              Otherwise trawling through the 690 files and 89 directories of mingw might
                              take a while.
                              Maybe it is possible to start just with the binary of
                              gcc (the driver program) and add librarys, include files
                              and other programs step by step...
                              (Apparently the 'min' of mingw means minimalistic; I wonder
                              how big the full version is!)
                              The full version is gcc + gnu utilities.

                              From time to time I have requests to release a binary
                              version of Seed7 for Windows. In such a release the
                              interpreter (hi) would work without problems, but
                              the Seed7 compiler (comp) produces C and therefor a
                              C compiler would be needed also.

                              For that reason I would prefer a "binary" release which
                              contains the normal source release + a C compiler (for
                              windows) in binary form (To avoid any license problems
                              that C compiler should be under the GPL). A binary make
                              utility would also be needed.

                              Greetings Thomas Mertes

                              Seed7 Homepage: http://seed7.sourceforge.net
                              Seed7 - The extensible programming language: User defined statements
                              and operators, abstract data types, templates without special
                              syntax, OO with interfaces and multiple dispatch, statically typed,
                              interpreted or compiled, portable, runs under linux/unix/windows.

                              Comment

                              Working...