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

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
User avatar
prinzrainer
Posts: 13
Joined: Sun Nov 22, 2009 11:36 pm

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

Post 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...
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

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

Post 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.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

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

Post 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
Gaidheal
Member
Member
Posts: 51
Joined: Mon Oct 04, 2010 6:23 pm

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

Post 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.
User avatar
qw
Member
Member
Posts: 792
Joined: Mon Jan 26, 2009 2:48 am

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

Post by qw »

Kind of funny though that James' rant exactly answers the OP's question.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

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

Post 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!
User avatar
qw
Member
Member
Posts: 792
Joined: Mon Jan 26, 2009 2:48 am

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

Post by qw »

Ah, okay, didn't get that. Kudos to Gravaera for simultaneously reporting and answering the question.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

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

Post by Combuster »

JamesM wrote:I've decided to take the unprecedented step of pasting in a post report
*cough*
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
AmA
Posts: 23
Joined: Thu Oct 07, 2010 8:23 pm

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

Post 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.
User avatar
qw
Member
Member
Posts: 792
Joined: Mon Jan 26, 2009 2:48 am

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

Post 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.
Gaidheal
Member
Member
Posts: 51
Joined: Mon Oct 04, 2010 6:23 pm

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

Post 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.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

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

Post 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. :)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

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

Post 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!
Post Reply