How to make a .exe file with Turbo c that can be converted

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Locked
reallybeginner
Posts: 5
Joined: Wed Jul 04, 2012 8:32 am

How to make a .exe file with Turbo c that can be converted

Post by reallybeginner »

Hi!!!
I really new to OS Developmen, so please don't put down me.

I wrote a simple kernel in turbo c, and I compiled it. (I get an .exe file)
I tried to convert it to .bin with exe2bin command, but it says:'The file cannot be converted'

How can I convert an .exe file made with Turbo C to a .bin file?
reallybeginner
Posts: 5
Joined: Wed Jul 04, 2012 8:32 am

Re: How to make a .exe file with Turbo c that can be convert

Post by reallybeginner »

Here's the source: :lol:

Code: Select all

void main()
{
 int a;
 a=10;
 while(a==45);
}
User avatar
Griwes
Member
Member
Posts: 374
Joined: Sat Jul 30, 2011 10:07 am
Libera.chat IRC: Griwes
Location: Wrocław/Racibórz, Poland
Contact:

Re: How to make a .exe file with Turbo c that can be convert

Post by Griwes »

berkus wrote:1. ditch turbo c
2. get gcc
3. profit
1. ditch turbo c
2. get gcc
3. ???
4. profit!


Fix'd a bit.
Reaver Project :: Repository :: Ohloh project page
<klange> This is a horror story about what happens when you need a hammer and all you have is the skulls of the damned.
<drake1> as long as the lock is read and modified by atomic operations
reallybeginner
Posts: 5
Joined: Wed Jul 04, 2012 8:32 am

Re: How to make a .exe file with Turbo c that can be convert

Post by reallybeginner »

How I can download, install and setup GCC for OS dev?
User avatar
Griwes
Member
Member
Posts: 374
Joined: Sat Jul 30, 2011 10:07 am
Libera.chat IRC: Griwes
Location: Wrocław/Racibórz, Poland
Contact:

Re: How to make a .exe file with Turbo c that can be convert

Post by Griwes »

Start by clicking that big "The OSDev.org Wiki - Got a question? Search this first!" link on the top of the forum.

(You know, the link is quite self-descriptive, isn't it?)
Last edited by Griwes on Wed Jul 04, 2012 10:04 am, edited 1 time in total.
Reaver Project :: Repository :: Ohloh project page
<klange> This is a horror story about what happens when you need a hammer and all you have is the skulls of the damned.
<drake1> as long as the lock is read and modified by atomic operations
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Re: How to make a .exe file with Turbo c that can be convert

Post by bluemoon »

Spoon-feed is prohibited in this forum. There is a secret link on this page which tell you everything, I can only tell you so much.
Locked