.sh to .exe convert

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kitak
    New Member
    • Mar 2008
    • 6

    .sh to .exe convert

    Hello,
    We are devoloping a compiler for windows [ C Compiler ] , implementing 2 C99 standards as our final yr project., But the thing is we are doin it by editting the open source GCC code.. It is in .sh format, to take it to windows, we need to converst it to .exe. Could anyone please tell me is there any software available or is there any commands for that!!
    Thanks in Advance
    Kartik
  • ashitpro
    Recognized Expert Contributor
    • Aug 2007
    • 542

    #2
    Originally posted by kitak
    Hello,
    We are devoloping a compiler for windows [ C Compiler ] , implementing 2 C99 standards as our final yr project., But the thing is we are doin it by editting the open source GCC code.. It is in .sh format, to take it to windows, we need to converst it to .exe. Could anyone please tell me is there any software available or is there any commands for that!!
    Thanks in Advance
    Kartik

    Well..
    First of all gcc is written in C.
    You are probably looking at some Makefile or Configure scripts.
    They have some precompiled versions for windows.

    Comment

    • kitak
      New Member
      • Mar 2008
      • 6

      #3
      yes sir, We edit the GCC's code in fedora itself, then the edited code is onfigured n installed. finally we get it done in fedora. but can I know how can I get those precompiled "makefile" scripts for windows? We thought we can use some commands to convert them? Is that possible? Can I use chmod to change the mode to executable. Will it be useful to convert it into .exe ?

      Comment

      • Laharl
        Recognized Expert Contributor
        • Sep 2007
        • 849

        #4
        Your changed gcc code might well be work if you install cygwin (Google it, it's a Unix-like environment for Windows) on the Windows computers first. You'd have to do the whole gcc reinstall/configuration again, but in theory you could do it this way. I have no idea how you'd actually make the .exe, though.

        Comment

        • ashitpro
          Recognized Expert Contributor
          • Aug 2007
          • 542

          #5
          Originally posted by kitak
          yes sir, We edit the GCC's code in fedora itself, then the edited code is onfigured n installed. finally we get it done in fedora. but can I know how can I get those precompiled "makefile" scripts for windows? We thought we can use some commands to convert them? Is that possible? Can I use chmod to change the mode to executable. Will it be useful to convert it into .exe ?

          I am not a Windows Developer..
          But still as per my knowledge. Lates Visual Studio (i.e 2008, I guess) has the ability to read the Makefile.
          Please have a look at it..and if needed change this makefile to their format..

          There are many opensource product which are platform independent..an d they get compiled on both OS with the just Makefile they provided.

          Or else use 'cygwin'

          Comment

          • micmast
            New Member
            • Mar 2008
            • 144

            #6
            maybe a weird remark/comment but don't you need the windows libraries to create a working .exe? And maybe as a solution I would try to create a program that convert Clike code into windows assembler. (isn't that how GCC does it)

            Comment

            • kitak
              New Member
              • Mar 2008
              • 6

              #7
              to ashitpro:
              That is cool to hear that Visual Studio can do, Will try it sir,
              But I searched for the open source product that gets compiled on both OS, Since I'm a beginner I'm not able to spot the software, Wud be a treasure if u could tell me the software name which can do the job.


              Developer C++ works in windows but it is actually GCC code bought into Windows, Is anyone familiar about the procedure they used to convert the linux ( .sh) to executables ??

              Comment

              • kitak
                New Member
                • Mar 2008
                • 6

                #8
                shwild is a simple, platform-independent, library that implements shell-compatible wildcard pattern matching

                Can I use this shwild???

                Comment

                • ashitpro
                  Recognized Expert Contributor
                  • Aug 2007
                  • 542

                  #9
                  Originally posted by kitak
                  shwild is a simple, platform-independent, library that implements shell-compatible wildcard pattern matching

                  Can I use this shwild???
                  That would be the great...
                  The utility that Visual C++ support is 'Nmake'.
                  I've downloaded the 'shwild' and checked the code.
                  just go to directory '/root/Desktop/shwild-0.9.12/build/'
                  where you can find builds for all platforms..
                  Inside you will get folders like..vc6,vc8 etc..these contains the makefile(Nmake specific) for respective visual C++.

                  Try to build your makefile accordingly..

                  Good Luck...

                  Comment

                  Working...