473,387 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

.sh to .exe convert

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
8 6085
ashitpro
542 Expert 512MB
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
kitak
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
Laharl
849 Expert 512MB
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
542 Expert 512MB
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
144 100+
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
kitak
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
kitak
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
542 Expert 512MB
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

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

Similar topics

19
by: Lauren Quantrell | last post by:
I have a stored procedure using Convert where the exact same Convert string works in the SELECT portion of the procedure but fails in the WHERE portion. The entire SP is listed below....
1
by: Logan X via .NET 247 | last post by:
It's official....Convert blows. I ran a number of tests converting a double to an integer usingboth Convert & CType. I *ASSUMED* that CType would piggy-back ontop of Convert, and that performance...
4
by: Eric Lilja | last post by:
Hello, I've made a templated class Option (a child of the abstract base class OptionBase) that stores an option name (in the form someoption=) and the value belonging to that option. The value is...
7
by: whatluo | last post by:
Hi, all I'm now working on a program which will convert dec number to hex and oct and bin respectively, I've checked the clc but with no luck, so can anybody give me a hit how to make this done...
3
by: Convert TextBox.Text to Int32 Problem | last post by:
Need a little help here. I saw some related posts, so here goes... I have some textboxes which are designed for the user to enter a integer value. In "old school C" we just used the atoi function...
7
by: patang | last post by:
I want to convert amount to words. Is there any funciton available? Example: $230.30 Two Hundred Thirty Dollars and 30/100
4
by: Edwin Knoppert | last post by:
In my code i use the text from a textbox and convert it to a double value. I was using Convert.ToDouble() but i'm used to convert comma to dot. This way i can assure the text is correct. However...
1
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in...
6
by: Ken Fine | last post by:
This is a basic question. What is the difference between casting and using the Convert.ToXXX methods, from the standpoint of the compiler, in terms of performance, and in other ways? e.g. ...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.