By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,767 Members | 1,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,767 IT Pros & Developers. It's quick & easy.

.sh to .exe convert

P: 6
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
Mar 29 '08 #1
Share this Question
Share on Google+
8 Replies

ashitpro
Expert 100+
P: 542
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.
Mar 30 '08 #2

P: 6
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 ?
Mar 31 '08 #3

Expert 100+
P: 849
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.
Mar 31 '08 #4

ashitpro
Expert 100+
P: 542
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..and they get compiled on both OS with the just Makefile they provided.

Or else use 'cygwin'
Mar 31 '08 #5

micmast
100+
P: 144
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)
Mar 31 '08 #6

P: 6
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 ??
Mar 31 '08 #7

P: 6
shwild is a simple, platform-independent, library that implements shell-compatible wildcard pattern matching

Can I use this shwild???
Mar 31 '08 #8

ashitpro
Expert 100+
P: 542
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...
Apr 1 '08 #9

Post your reply

Sign in to post your reply or Sign up for a free account.