about compiler?

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
teemsu
Posts: 8
Joined: Tue Jan 15, 2008 5:03 am
Location: Thailand
Contact:

about compiler?

Post 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.
Somebody teach me about os dev?
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: about compiler?

Post 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
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
User avatar
JackScott
Member
Member
Posts: 1036
Joined: Thu Dec 21, 2006 3:03 am
Location: Hobart, Australia
Mastodon: https://aus.social/@jackscottau
Matrix: @JackScottAU:matrix.org
GitHub: https://github.com/JackScottAU
Contact:

Re: about compiler?

Post 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.
sebihepp
Member
Member
Posts: 197
Joined: Tue Aug 26, 2008 11:24 am
GitHub: https://github.com/sebihepp

Re: about compiler?

Post 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.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: about compiler?

Post by Troy Martin »

I'd love to input, but the other guys who posted would sue me for copying without a license :P
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
Post Reply