Please answer this question about compiler?
-
1)initially we dont have compiler installed in our system 2)we take an os and install it,...suppose i am assuming it,...it has a compiler which gets installed automatically so that it can understand the os programs let us concentrate on the compiler installed now how can this compiler be understood by the system...i mean we dont have anything to understand these compiler programs written in a specific language all answers are welcome :)
-
Answer:
You are talking about bootstrapping a system. There are a couple ways to do it. The old way was to hand code a machine language program that would serve as the BIOS and then more programs built up from that. It took quite a while to develop a new computer and get an operating system running on it. Everything had to either be hand coded in machine code or once an assembly language compiler was made, then the slightly easier assembly language programming would be used. Some of the older computers never had an assembly language compiler. It was all hand coded machine code. The entire idea behind C changed how computers were developed. C was designed as a development programming language to replace hand coding machine code and assembly language. It is small enough to write a basic compiler in a short time and speed up the bootstrap process. The more modern way would be to build a cross compiler using the various free compiler building tools that are available. It would run on a PC but the programs it made as it's output would be for the new wizbang computer. You could port the Linux operating system over to your new wizbang computer using the cross compiler as well as develop all or most of the hardware drivers. You would still need to do some of the basic work so that you could boot up a hard drive or use other unique hardware interfaces. Once you have the basics such as a C compiler and an operating system, then it is simple to add more programs. Many of the programs in C would simply need to be compiled for the new computer system. It would be similar to building Linux completely from scratch as that would be what you were doing. You would have the added trouble of dealing with hardware differences for the new computer. Shadow Wolf
Shadow Wolf at Yahoo! Answers Visit the source
Other answers
You are talking about bootstrapping a system. There are a couple ways to do it. The old way was to hand code a machine language program that would serve as the BIOS and then more programs built up from that. It took quite a while to develop a new computer and get an operating system running on it. Everything had to either be hand coded in machine code or once an assembly language compiler was made, then the slightly easier assembly language programming would be used. Some of the older computers never had an assembly language compiler. It was all hand coded machine code. The entire idea behind C changed how computers were developed. C was designed as a development programming language to replace hand coding machine code and assembly language. It is small enough to write a basic compiler in a short time and speed up the bootstrap process. The more modern way would be to build a cross compiler using the various free compiler building tools that are available. It would run on a PC but the programs it made as it's output would be for the new wizbang computer. You could port the Linux operating system over to your new wizbang computer using the cross compiler as well as develop all or most of the hardware drivers. You would still need to do some of the basic work so that you could boot up a hard drive or use other unique hardware interfaces. Once you have the basics such as a C compiler and an operating system, then it is simple to add more programs. Many of the programs in C would simply need to be compiled for the new computer system. It would be similar to building Linux completely from scratch as that would be what you were doing. You would have the added trouble of dealing with hardware differences for the new computer. Shadow Wolf
Shadow Wolf
The compiler translates the programming languages that people use into machine-readable code. The compiler itself was compiled into machine-readable code by another compiler. Once code is compiled, it can be read by the machine without the assistance of a compiler.
The compiler translates the programming languages that people use into machine-readable code. The compiler itself was compiled into machine-readable code by another compiler. Once code is compiled, it can be read by the machine without the assistance of a compiler.
Related Q & A:
- How do i change my display name when i answer a question?Best solution by Yahoo! Answers
- SOCIAL studies!!! Please answer this question?Best solution by Yahoo! Answers
- IF U ARE A DENTIST please answer?Best solution by Yahoo! Answers
- Can you please answer this physics question?Best solution by Yahoo! Answers
- How would you answer this question for a job interview: "What is your biggest weakness"?Best solution by wiki.answers.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.