Actually it's the other way around. You require different compilers for different operating systems. The reason for this is that an operating system is basically an intermediate step for a person to be able to interact with the hardware on their system. Each OS has a different way to do this, and so compilers must be different for each one, even for the same language.
Language definitions (specifications) are independent of any Operating System. That is, neither the C nor C++ language specification has any dependence on a specific Operating System's features or the underlying hardware platform.However, when implementing a C or C++ compiler on a specific Operating System and hardware platform, a variety of choices must be made. The Compiler implements the C or C++ language specification. Those specifications often give the compiler a choice in how to allow a certain feature to behave.The most common choice is the default size of and Int and a Pointer. Neither the C++ nor C language require a certain specific size, and thus, compiler designers are free to chose.
Windows is an Operating System, it doesn't use compliers... you, on the other hand, can use many different compilers under Windows.
C and C++ are not directly supported by operating systems. You must use a compiler to convert a program written in C or C++ to a native executable that runs under a particular operating system. In other words, you can use C or C++ under any operating system for which a compiler exists for the desired language.
i came to know about that turbo c compiler is having 32 number of disadvantages........ i know about 10-12 disadvantages and i am sharing those wid u .... 1) Turbo c is a 16bit compiler ... means it can access about 16bits of data at a time... 2)Turbo c is based upon 8086 microprocessor... and it can run on x86family.... 3) Turbo c is derived from MS-DOS whereas GCC compiler which runs on linux..is a very good one as compared to Turbo C compiler..,.. 4)Also we cant do ODBC and Networking programming over the Turbo C comiler whereas we can do above programming in GCC compiler successfully by installing one ODBC library in it.... 5)we cant do graphics programming over here, rather we can do graphics programming. in GCC compiler using Glad Interface... 6) Turbo C compiler can access only 1mb of RAM, which is a demerit...whereas GCC compiler can access 4gb OF MEMORY.. 7) 7) Turbo C compiler is based upon MS DOS operating system.. which is a single process operating system..whereas GCC Compiler is based on 80386 processor(LINUX) and it is multiprocess operating system.....
It depends on the compiler installed and on the operating system. In unix, you would generally say... cc -o program program.c or make program
None. Operating system doesn't compile source programs.
Yes, all processors do require some type of operating system. If not a computerized operating system, then it's a humanly operated system.
Language definitions (specifications) are independent of any Operating System. That is, neither the C nor C++ language specification has any dependence on a specific Operating System's features or the underlying hardware platform.However, when implementing a C or C++ compiler on a specific Operating System and hardware platform, a variety of choices must be made. The Compiler implements the C or C++ language specification. Those specifications often give the compiler a choice in how to allow a certain feature to behave.The most common choice is the default size of and Int and a Pointer. Neither the C++ nor C language require a certain specific size, and thus, compiler designers are free to chose.
Windows is an Operating System, it doesn't use compliers... you, on the other hand, can use many different compilers under Windows.
explain the different components of operating system in details
Yacc is a computer program created for the Unix operating system. It is an acronym for "Yet Another Compiler ".
Programs that implement high level functionality of an operating system, i.e., things that aren't directly dependent on the hardware. May sometimes require special privileges to run (e.g., for delivering electronic mail), but often just commonly thought of as part of the system (e.g., a compiler).
C and C++ are not directly supported by operating systems. You must use a compiler to convert a program written in C or C++ to a native executable that runs under a particular operating system. In other words, you can use C or C++ under any operating system for which a compiler exists for the desired language.
Software has to be written to run on a particular operating system. While there are lots of programming languages that will run on many operating systems, a compiler or runtime engine has to interpret the programming language and translate it into commands that the operating system understands. The Operating System is the foundation of the building. Applications are the structure built on the foundation.
How is a memory-resident part of an operating system different from a nonresident part of an operating system?
compiler basically translator of one language to desired languages...ex-c language to m/c redable format and os is a system software which provides interfaces between applicaton programs and hardware....so os is a interface unit system software and compiler just a translator....
pcs