[try Beta version]
Not logged in

 
No Headers

May 19, 2009 at 2:52pm
Is it possible to create a program without any C/C++ Headers.
I had asked this question before also but got all answers like to look at linux source code.I don't know where to start in the source code.
Help would be appreciated.
May 19, 2009 at 3:06pm
http://www.cplusplus.com/forum/general/10226/

The answers you got then are the answers you'll get now. There are no easy ways to do it. Then again, no one said writing an OS was easy.
May 19, 2009 at 3:08pm
> Is it possible to create a program without any C/C++ Headers.

Yes, easily, but why on earth would you want to do that? Headers provide prototypes and interfaces to all the functions you need to compile your programs.

> but got all answers like to look at linux source code

Anyone who directs you to look at the linux source is not treating you nicely. A bootloader or OS core will not use standard headers, because they are not available at the time the program is executed. That is a very special case and you shouldn't need to emulate it.

Hope this helps.
May 19, 2009 at 3:18pm
Anyone who directs you to look at the linux source is not treating you nicely. A bootloader or OS core will not use standard headers, because they are not available at the time the program is executed. That is a very special case and you shouldn't need to emulate it.


Except his whole goal was to write a 'Hello world OS', ie emulating it is exactly what he's trying to do.
May 19, 2009 at 4:24pm
closed account (S6k9GNh0)
Would some assembly be required for this? And would that ASM be the core of this little app?
Last edited on May 19, 2009 at 4:24pm
May 19, 2009 at 4:42pm
I just said that I was making a Hello World OS so that someone could answer my question without asking much questions.
May 19, 2009 at 7:13pm
Is it possible to create a program without any C/C++ Headers.
I had asked this question before also but got all answers like to look at linux source code.I don't know where to start in the source code.
Help would be appreciated.
There is no mention of an OS in there.

http://www.cplusplus.com/forum/general/10226/

The answers you got then are the answers you'll get now. There are no easy ways to do it. Then again, no one said writing an OS was easy.
Well, I guess I should have read the link...

Why, may I ask, are you asking the question again given all the help you received there? Are our answers supposed to get any better?

It looks like you are trying to do something way over your head right now.
That OS FAQ that helios posted for you is the first place to start reading.

Good luck!
Writing an OS is hard.
May 22, 2009 at 4:18pm
Hi Ashishm1995,

I have idea to write own operation system. If we create a union it will be easy
May 22, 2009 at 4:20pm
closed account (S6k9GNh0)
good luck :/
May 22, 2009 at 4:51pm
They'll certainly need it.

Denis: If you really know what you're doing and understand just what it takes to write an OS, you'll do well to choose a different partner, because Ashishm1995 obviously doesn't know the difference between application and systems programming.
May 22, 2009 at 7:24pm
www.osdev.org
www.osdever.net
you will find enough info there.
May 25, 2009 at 5:48am
Thanks folks.
Topic archived. No new replies allowed.