Page 1 of 1

I was going to write a 64-bit os...but

Posted: Tue Oct 12, 2010 3:12 am
by prinzrainer
I was going to write a 64-bit os...but i can't find a gcc(that compiles 64 bit code..) that runs on windows...so i stick to 32 bit OS dev..btw does anyone has already compiled gcc(that compiles 64 bit code and it binutils) for windows?? i might go on to 64-bit development...

Re: I was going to write a 64-bit os...but

Posted: Tue Oct 12, 2010 4:33 am
by pcmattman
Create a cross-compiler in Cygwin that targets your 64-bit target. It can be done on a 32-bit-only system - the target for your compiler is only for output generation.

Re: I was going to write a 64-bit os...but

Posted: Tue Oct 12, 2010 5:40 am
by JamesM
Hi,

I've decided to take the unprecedented step of pasting in a post report, as I think it summarises exactly my sentiments.
Reported post wrote:I propose that posts like this just result in a warning. There's more than enough information in the Wiki about cross compiling, targeting, and everything, even for cygwin. The information is coherent, and easy to understand. It is all right there if you just search for "cross compiler". All the results just cascade right there in the search results page in the Wiki. Whatever you don't understand can EASILY be augmented with extra reading using google. If the OP had in any way tried to browse the forum looking for threads that had anything to do with the keyword "compiler", "target" or anything, even if he didn't know anything about the concept of a "cross compiler", since his problem is related to compilers, he would have met at least ONE (more like ten or twenty) topic with a compiler question which would have, within the first 5 posts, mentioned "cross compilers". From there, the natural thing is "What is a cross compiler, and why is everyone recommending it?". It is OBVIOUS that this person didn't look anywhere. Talk less of reading externally. This person obviously wants to be spoon-fed and waste everyone's time.
James

Re: I was going to write a 64-bit os...but

Posted: Tue Oct 12, 2010 2:17 pm
by Gaidheal
I have to agree. Cross-compilation is hardly unique to OS development and is actually a pretty basic topic (with masses of references all over the WWW, not to mention many textbooks). The Wiki is excellent on precisely how to set one up for our purposes, too.

Re: I was going to write a 64-bit os...but

Posted: Tue Oct 12, 2010 3:45 pm
by qw
Kind of funny though that James' rant exactly answers the OP's question.

Re: I was going to write a 64-bit os...but

Posted: Tue Oct 12, 2010 4:40 pm
by JamesM
Hobbes wrote:Kind of funny though that James' rant exactly answers the OP's question.
It was copy-pasted from a post report I received, from Gravaera. He deserves the credit!

Re: I was going to write a 64-bit os...but

Posted: Wed Oct 13, 2010 2:54 am
by qw
Ah, okay, didn't get that. Kudos to Gravaera for simultaneously reporting and answering the question.

Re: I was going to write a 64-bit os...but

Posted: Wed Oct 13, 2010 5:50 am
by Combuster
JamesM wrote:I've decided to take the unprecedented step of pasting in a post report
*cough*

Re: I was going to write a 64-bit os...but

Posted: Wed Oct 13, 2010 6:15 am
by AmA
JamesM wrote:
Hobbes wrote:Kind of funny though that James' rant exactly answers the OP's question.
It was copy-pasted from a post report I received, from Gravaera. He deserves the credit!
That is bad!
You should not make public PMs nor the people who are writing them.
I dont know what others thinks, but after reading this, my opinion about Gravaera changed a lot.

Re: I was going to write a 64-bit os...but

Posted: Wed Oct 13, 2010 6:37 am
by qw
I do not have an opinion about Gravaera but I do know that many forum members are annoyed by questions that could easily have been answered by a simple search. Rants about this usually do not contain an answer, Gravaera's does. Makes me wonder why he didn't post it here. I've seen worse. Anyway, if Gravaera objects, I'm sure there is a solution.

Just my two cents.

Re: I was going to write a 64-bit os...but

Posted: Wed Oct 13, 2010 11:04 am
by Gaidheal
At the risk of sounding awfully elitist... this is not a forum for people who are doing their high-school homework or those too lazy / inexperienced to know how to use search tools, download documentation, etc.

When the very first question posted is something along the lines of "I want to write my new LeetOS but I'm not sure how to set up my compiler on Windows..." I have to seriously consider that they're simply not up to the task, at least not yet.

Re: I was going to write a 64-bit os...but I got hijacked

Posted: Wed Oct 13, 2010 12:37 pm
by Combuster
OS development is in the top 3 of most difficult programming tasks. Of course there is the inevitable elite involved here (without numbers, mind you! :wink:)

Post Subject: I was going to write a 64-bit os...but
...the thread got hijacked. Lets move it to general ramblings. :)

Re: I was going to write a 64-bit os...but

Posted: Thu Oct 14, 2010 10:36 am
by JamesM
AmA wrote:
JamesM wrote:
Hobbes wrote:Kind of funny though that James' rant exactly answers the OP's question.
It was copy-pasted from a post report I received, from Gravaera. He deserves the credit!
That is bad!
You should not make public PMs nor the people who are writing them.
I dont know what others thinks, but after reading this, my opinion about Gravaera changed a lot.
You'll note that initially I didn't mention who made the report. I decided to disclose it after being asked later - mainly because I talk to Gravaera on IRC rather a lot and consider that he wouldn't mind.

Also, good catch Combuster!