HELP HELP HELP How to compile a program in my new OS??

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
atmb4u
Posts: 12
Joined: Tue Oct 16, 2007 7:17 am
Location: ""CEC""

HELP HELP HELP How to compile a program in my new OS??

Post by atmb4u »

:oops: :oops: :oops: I think this is a wierd topic....
What should I have to do to have a program "compiled" on my system????
[a:t:m]
WHILE WALKING THROUGH A STORM,WALK WITH YOUR HEADS RIGHT UP,THEN YOU WILL NEVER WALK ALONE
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Post by Solar »

1) Don't post in "design & theory", but the "OS Development" thread.

2) Focus on asking a smart question, not a colorful one. (Besides, I hate cyan.)

3) You ask what you need to have a program compiled on your system. Let me make sure I got the question right:

3a) "How do I compile a program?" - If you have to ask that, try a generic programming tutorial instead of anything OS-related.

3b) "How do I compile a program for my OS?" - You need a working kernel including executable loader, library, and runtime environment for userspace code, and a cross-compiler (which you most likely have used already to compile your kernel). Simply compile the program with the OS-specific stuff ("freestanding", "no-stdlib" etc. etc.) taken out, and link it with your OS' runtime.

3c) "How do I compile a program on my OS?" - You need to compile your compiler into an executable for your OS as described in 3b).

Excuse me if the answers are a bit generic. Ask a better question to get a better answer.
Every good solution is obvious once you've found it.
atmb4u
Posts: 12
Joined: Tue Oct 16, 2007 7:17 am
Location: ""CEC""

thnx a lot

Post by atmb4u »

Sorry being weak in my communication skills.... :cry: :cry: :cry:

"""3c) "How do I compile a program on my OS?" - You need to compile your compiler into an executable for your OS as described in 3b). """
this is what I asked for thnx a lot.It is as I expected.

Also one thing,u r a genius. U understood what I meant.
[a:t:m]
WHILE WALKING THROUGH A STORM,WALK WITH YOUR HEADS RIGHT UP,THEN YOU WILL NEVER WALK ALONE
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

/me shudders violently and marvels at Solar's patience.
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:

Post by Combuster »

"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 ]
atmb4u
Posts: 12
Joined: Tue Oct 16, 2007 7:17 am
Location: ""CEC""

Post by atmb4u »

Sorry for the mess.
I will try to make my foolish questions better
Sorry to all..............
You all will have to consider that i am a first year engineering student
:cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:
SORRY
I asked u all bcoz I dont know abt tht
[a:t:m]
WHILE WALKING THROUGH A STORM,WALK WITH YOUR HEADS RIGHT UP,THEN YOU WILL NEVER WALK ALONE
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:

Post by Combuster »

/me has left for the local pub to get drunk and forget about what he just read
"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:

Post by JamesM »

writing text in cyan with a shedload of emoticons is not a good idea.

The question itself was without detail but that was a secondary matter to me.

EDIT: edited after reading Solar's comment.
Last edited by JamesM on Tue Oct 30, 2007 9:48 am, edited 2 times in total.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Post by Solar »

Be easy on him. 8)

@ atmb4u:

Form follows function. :wink:
Every good solution is obvious once you've found it.
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Post by inflater »

atmb4u wrote:I asked u all bcoz I dont know abt tht
Please refrain from using your weird teen slang in this forum. Somebody isn't understanding you right. ;)
You've managed partial self hosting in your OS and you even do not know to write a hello world program? :lol:
JamesM wrote:/me shudders violently
@Candy: *bleep*bleep* ***death threat detected*** *bloop*bloop*
:twisted:
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

inflater wrote:
JamesM wrote:/me shudders violently
@Candy: *bleep*bleep* ***death threat detected*** *bloop*bloop*
:twisted:
Death threat? :?

http://dictionary.reference.com/browse/shudders

Interesting.... :wink:
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Post by inflater »

Angry FreeVista wrote:**** you
Brynet-Inc wrote:spammers should be jailed.. or shot..
One topic title reads wrote:Some people should just be shot...
me... wrote:FreeVista should be shot in the face :twisted:
...following Candy wrote:Death threats are also a pretty good reason for a ban
Ain't that fun? :lol:
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

What brynet-inc was commenting on was that in no way could my reply be construed as a death threat. "Violent shuddering" is a convulsive shivering caused by reading or seeing something of dislike. Draw your own conclusions 8)
User avatar
os64dev
Member
Member
Posts: 553
Joined: Sat Jan 27, 2007 3:21 pm
Location: Best, Netherlands

Post by os64dev »

atmb4u wrote: 1) Sorry for the mess.
2) I will try to make my foolish questions better
3) Sorry to all..............
4) You all will have to consider that i am a first year engineering student
5) :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:
6) SORRY
7) I asked u all bcoz I dont know abt tht
Well lets put in some etiquette comments:
ad 1) This line is ok, it seems genuine.
ad 2) It seems that the remarks have worked, you intend todo better in the future.
ad 3) see ad 1.
ad 4) A sudden slide in the wrong direction. The use of bold and a remark that we have to take your mistakes into account because of a wierd reason.
ad 5) Sliding further way to many emoticons.
ad 6) Sliding even more because of the shouting.
ad 7) Hitting rock bottom, because of the stupid bcoz, abt, tht. Most of the people here speak english instead of the child speak. Use because, about and that in the future.

Summarizing: It started of well, but became hopeless in the end.

So try again i would say.
Author of COBOS
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Post by Solar »

I think we bashed him enough. Give him some time, I have a feeling he's one of those who will adapt. :wink:
Every good solution is obvious once you've found it.
Post Reply