Page 1 of 1

about compiler?

Posted: Tue Nov 11, 2008 2:15 am
by teemsu
I'm interest OS Developement. But,I'm newbie.

I see old topic for ask about begining for newbie. Somebody tell us go to wiki geting start.

I'm try read getting start and try sample code. But,I cannot compile my assembly code.

I use Windows XP(32bit) for develope. I cannot run NASM for windows. It's not response when I run its.(double click)

What I want prepare tools for developing os?

Now, I have VMWare,NASM ,DJGPP,DevCPP and Visual C++.

What files include sample os(hello world)?

How to compile files for test on VMWare?

It's old question but somebody tell newbie go to getting start.

Sometime newbie see more document. We are not understand or boring. Because we are Newbie.

If newbie start from workshop or sample code, we can do its.

We will inspiration for read getting start or more document for change "hello world" to new os.

I want to somebody post new topic for tutorial step by step.

what use tools? > how to writting code? > how to compile? >how to test its?

Step by Step with images.

I think, I can start small programe. It's inspiration to me for big programe.

Most newbie ask same me but answer is getting start.

Re: about compiler?

Posted: Tue Nov 11, 2008 2:41 am
by Brendan
Hi,
teemsu wrote:I cannot run NASM for windows. It's not response when I run its.(double click)
Selected pieces from the OS Dev Wiki (the section on "Required Knowledge" in the "Getting Started" page):
wiki wrote:Your Toolchain: You must know the behavioral details of your compiler, assembler, linker, and make utility. Read the documentation of the tools you use. Rest assured that the people on the forum have possibly answered any possible beginner's question about GCC, GNU as, NASM, GNU ld, and GRUB twice over. Asking them again would be an invitation for trouble.
wiki wrote:Programming experience: Learning a language with OS development is considered a bad idea. You should know the language in which you will be developing inside out, which means you should have written quite a few programs in that language successfully.
wiki wrote:Assembly: You should have knowledge about the low-level language Assembly. Read a book. Take a course at school. At least read some tutorials, and write some code. You WILL need it, even if you plan to write most of your operating system in another language.
Now, considering that you think double clicking on "NASM.EXE" should actually do something useful, are you *sure* you have the required knowledge necessary to begin an OS project?

Also, did you read the documentation for the tools you're planning to use? Did you read this documentation *before* you posted?


Cheers,

Brendan

Re: about compiler?

Posted: Tue Nov 11, 2008 3:20 am
by JackScott
Also, having *all* the compilers for Windows isn't going to make things any easier (unless you have a very good reason for needing them all, and even then it's still going to be harder to manage). Pick one, and as Combuster said, learn how to use it very well. I recommend none of the toolkits you mentioned. For Windows and OSDev, Cygwin seems to be the best bet. It can be made to work on any of the ones you specified, but not all of them at once.

The other thing I'll mention is that a lot of people have already written tutorials. One is JamesM's UNIX-like OS tutorial, which is very good. Another is 'bkerndev', which is also very good, although it goes into less depth. Asking for somebody to write another one just for you (if I understand you correctly) is a bit arrogant.

Basically, everything you need and ask for (or links to everything you need and ask for) are in the OSDev wiki.

Good luck.

Re: about compiler?

Posted: Tue Nov 11, 2008 9:11 am
by sebihepp
NASM is a command-line assembler. This means you have to specify the options via parameters.
Mostly I do this with a batch file under windows, but you can also use the console.

You say compiler, I hope you know what an assembler is. Else you should learn something about
asm, because you need it if you are going to develope an operating system.

Re: about compiler?

Posted: Tue Nov 11, 2008 11:15 am
by Troy Martin
I'd love to input, but the other guys who posted would sue me for copying without a license :P