Instalación del compilador

I started to learn two computer languages two years ago. But there are many things that I am trying to understand. For example I would like to know if it is possible to install a compiler (for example a C compiler) on a computer without an operating system installed on it?

preguntado el 10 de marzo de 12 a las 01:03

It would be difficult and custom to your hardware, but I don't see why not. Have fun trying to find one, though... -

To add to Jon's answer, you'd have to pretty much embed a mini-OS into your compiler code so that the compiler would be able to do basic things like talk to the hard drive, the keyboard, the graphics card, etc. All the sorts of things an OS does for you. -

A mini-OS? If a computer has a cpu, can't you use the assembly language to make programs? -

3 Respuestas

Para obtener más información sobre el yodo, haga clic en Adelante - it is not normally compiled language, but can be used on hardware without OS.

respondido 10 mar '12, 01:03

If you don't have an operating system.. you don't have anywhere to install anything.

respondido 10 mar '12, 01:03

Have you ever heard of a hard drive? - anónimo

Are all operating systems written in assembly? - user1256053

No, they generally aren't anymore. However, the operating system source is compiled on an existing machine to get the binaries that are placed into the operating system installer. (And even when they were/are written in assembly, they haven't been hand-assembled in decades). - Mecánica cuántica

@user1256053 Not exactly... Modern operating systems aren't written in ser completados assembly. For example, Windows is written in C, C++ and Assembly language. - anónimo

Well what would be the practical use of doing this ? the only thing i can think of is if you are trying to embed it into some hardware. I think it is possible just a bit odd to try to do that. Beside a compiler is supposed to compile code.. so how will you input your code without OS ??

respondido 10 mar '12, 01:03

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.