Re: Is compiler OS specific or Hardware specific....
From: angeles (jojo_at_jojo.com)
Date: 02/27/04
- Next message: Alf P. Steinbach: "Re: OOP"
- Previous message: Elliot Marks: "Re: Programming for 14 year old (was Programming for 13 year old)"
- In reply to: yogesh: "Is compiler OS specific or Hardware specific...."
- Next in thread: Scott Moore: "Re: Is compiler OS specific or Hardware specific...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 27 Feb 2004 22:40:27 GMT
> hi,
> i have following doubts.
> is compiler OS specific or Hardware specific i.e processor specific.??
> the confusion is because of the following (half ??)knowledge..
> if the compiler is OS specific then one must know the internals of the
> OS!!!
> but since the OS like windows are proprietary and don't reveal any
> source code then how the compiler is designed for such an OS??
> is it purely dependent on the processor architecture then???
> also how the JVM for windows was made despite sun not knowing any of
> windows details?? or do OS vendors distribute kernel apis???
> regds,
> yogesh
>
> ps. I post the same question in comp.compiler but my question was
> never published thereon..
Compilers are both OS and processor specific. You shouldn't need to know
the internals of the OS unless you are making calls to the OS, or if you're
using a language that was made for portability, like C or Java.
Although it is OS specific, most of this revolves around the executable
file format.
Windows code is proprietary, but you can still know how it works via the
API. Research more on "Win32 API."
JVM is a virtual machine. It is compiled code for a computer that doesn't
exist. Then, an emulator (called a virtual machine) for that non-existant
machine executes the code on any system that supports it, in the same way
that you can emulate a SNES or Genesis system.
- Next message: Alf P. Steinbach: "Re: OOP"
- Previous message: Elliot Marks: "Re: Programming for 14 year old (was Programming for 13 year old)"
- In reply to: yogesh: "Is compiler OS specific or Hardware specific...."
- Next in thread: Scott Moore: "Re: Is compiler OS specific or Hardware specific...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|