Where could i find gcc

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.
Post Reply
codemastersnake

Where could i find gcc

Post by codemastersnake »

Hello everyone!

I have been developing my OS using turbo C++, Som one here told me that its 16bit compiler so I won't be able to develop protected mode code.....

Well can anyone link me to the site wehere I could download 32bit free compiler... I have tried searhing net but got only confusion i return...

since there are many OS devers here so they can give me the right stuff for me...

I will be using C++, C, and asm for os development...

plz help
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Where could i find gcc

Post by Solar »

Try Cygwin. That will give you not only GCC / binutils, but a plethora of other useful tools as well (like make, Perl...).
Every good solution is obvious once you've found it.
AR

Re:Where could i find gcc

Post by AR »

ftp://ftp.gnu.org/gnu/gcc (Latest 4.0.1)
ftp://ftp.gnu.org/gnu/binutils (Latest 2.16.1)

If you're on Linux then you should know what you're doing from here, if you're on Windows then you need a Cygwin Installation so that you can compile and run the packages.

A guide for building a cross compiler is in the Wiki
codemastersnake

Re:Where could i find gcc

Post by codemastersnake »

Thanks a lot for suggestions.... But, I would like to shift to DJGPP, 'cause of it's popularity, I am developing on WINDOWS... XP to be precise...
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Where could i find gcc

Post by Solar »

Codemaster Snake wrote: Thanks a lot for suggestions.... But, I would like to shift to DJGPP, 'cause of it's popularity, I am developing on WINDOWS... XP to be precise...
Cygwin is Windows. And as for popularity... well... Cygwin is the popular choice, at least on this board. ;)
Every good solution is obvious once you've found it.
GLneo

Re:Where could i find gcc

Post by GLneo »

http://www.delorie.com/djgpp/zip-picker.html = djgpp, i think it is easyer.
dosn't cygwin use a linix emulator DLL, so you could just the same start linux on bochs and use its gcc???
AR

Re:Where could i find gcc

Post by AR »

You could, if you could live with the slowness. Or you can pay for VMWare and use that. Cygwin is a distribution, the Cygwin project itself is the Cygwin compatibility library though, it is basically just a DLL that wraps existing Windows functionality to make it POSIX compliant so that programs like GCC can run natively.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Where could i find gcc

Post by Solar »

Our FAQ says that DJGPP must be considered obsolete. It also mentions compatibility problems with WinXP. Cygwin is well supported upstream, and is the development environment assumed in various parts of the FAQ.

And good luck running a Linux under Bochs. It would be slow as hell, and you would have to put up with installing and maintaining that Linux first.

Cygwin is, in a nutshell, a bash shell for Windows. It works at native speeds, and it's dead easy to install and maintain.

But it's of course everyone's individual choice to make.
Every good solution is obvious once you've found it.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Where could i find gcc

Post by Pype.Clicker »

GLneo wrote: so you could just the same start linux on bochs and use its gcc???
oh yeah ? and how would you give that linux-in-a-box the updated source file it needs ? and how would you retrieve the object files it generated ?

seriously, bochs is not an option for running modern linux versions unless you're on some non-x86 machine where no better alternative exists. And running a compiler in an emulated system is just ... insanity.

That's why people went to cross-compilers in first place.
codemastersnake

Re:Where could i find gcc

Post by codemastersnake »

seriously, bochs is not an option for running modern linux versions unless you're on some non-x86 machine where no better alternative exists. And running a compiler in an emulated system is just ... insanity.
I totally agree with you.... Running real OSes on BOCHS is real pain in a**. May be MS Virtual Machine could be a good option.... It comes with 45 day trial.... And every one knows what to do with that....
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Where could i find gcc

Post by Solar »

The point is that Cygwin doesn't require you to get familiar with the whole underpinnings of Linux. It's just another Windows app.
Every good solution is obvious once you've found it.
Post Reply