InterviewSolution
Saved Bookmarks
| 1. |
Solve : Compile C++ without programs - Is it possible??? |
|
Answer» Hi Everyone, Programming experience, preferably C or C++ - Since systems programming is harder than conventional programming, it's assumed that if you want to write an operating system, you have at least some programming experience. Hopefully, you know either C or C++ fairly WELL. You should know pointers, structs and the basic data types, control loops, and the preprocessor well, but don't worry about the standard libraries, ANSI or otherwise, since those are essentially irrelevent in systems programming (you'll most likely have to write these yourself in the later stages). Does that mean, if I did not use C++ to write my OS, all would be IMPOSSIBLE? I have VB 2008 Express, with the .NET Framework 3.5 BETA, but I don't want to download, uninstall, install again, just to find out that half my knowledge of VB programming would be useless. So how do I compile a C++ program without software? Running Windows XP Home Edition SP2. Until I find something, listening to anyone's ideas. Thank you.First, to compile source code you need a COMPILER. Period. (You also need a linker and some other things, but maybe we're getting a bit advanced now) It says "preferably" C or C++. You can write a kind of toy OS using other programming languages, even QBasic. You could hardly write an OS in Visual Basic, since it needs Windows to work. It also says, "systems programming is harder than conventional programming". That's a very great understatement. The bottom LINE is that if you are not a fairly complete master of C type languages you probably don't know enough to write an OS. You would also realistically need to be very advanced (that is, a wizard) at assembly language. "Programming languages" like VB, Delphi, etc, are designed to protect the programmer from the nasty scary realities of the OS. You get forms, classes, buttons, error trapping, etc, all ready made, and all you have to do is write a few lines to join it all together. Systems programming is not like writing "hello world / What is your name? Hello Biff" type programs in VB. The Linux OS is open source which means that you can study the source code. Doing that will give you a very good idea if you (a) have a feel for that kind of coding (not everybody does!) and (b) if your programming understanding is at a high enough level. The bottom, bottom, bottom line is that BUDDING OS writers don't generally write "how can i write an OS" type posts on beginner-level forums. But don't let me put you off. Read up on OS design, CPU operation, file systems, memory management, get stuck into Linux, and have a go! |
|