answersLogoWhite

0

Yes. In fact both the C++ compiler and the linker are intrinsically command-driven; the IDE (if you have one) simply provides a graphical front-end to both. Consult your compiler/linker documentation to view the required command line syntax. In particular, consult the 'makefile' topic which should show you how to create a command file (or batch file) that can automate the entire process for a particular project.

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

Is jvm a compiler?

Basically they do the same: converting from one level of language into another. A compiler converts high level language (programming language like java) into machine-language. That is language a computer understands. An interpreter converts high level language into an intermediate level. When a program is exectuted, that intermediate level is reconverted to machine language.


What is the difference between ANSI C and C plus plus?

C is a programming language and ANSI is the standardization committee. The C language is under the auspices of the ANSI committee, which monitors the grammar and structure of the language in a standard way that compiler writers must adhere to. ANSI C means that it is a standardized version of the C language according to the rules of the committee and should work/compile the same way on any system that uses an ANSI C compliant compiler.


What is the meaning of code has no effect in function main in c language?

When the compiler says "code has no effect", it is saying that it does not matter if the code is executed or not - the end result will be the same. The compiler, if in optimizing mode, can and should delete the code. An example of code that has no effect is a = a;


What are the Various compilers of different language?

A program that translates source code into object code. The compiler derives its name from the way it works, looking at the entire piece of source code and collecting and reorganizing the instructions. Thus, a compiler differs from an interpreter, which analyzes and executes each line of source code in succession, without looking at the entire program. The advantage of interpreters is that they can execute a program immediately. Compilers require some time before an executable program emerges. However, programs produced by compilers run much faster than the same programs executed by an interpreter.Every high-level programming language (except strictly interpretive languages) comes with a compiler. In effect, the compiler is the language, because it defines which instructions are acceptable.Because compilers translate source code into object code, which is unique for each type of computer, many compilers are available for the same language. For example, there is a FORTRAN compiler for PCs and another for Apple Macintosh computers. In addition, the compiler industry is quite competitive, so there are actually many compilers for each language on each type of computer. More than a dozen companies develop and sell C compilers for the PC.


What is cross compiler?

A cross-platform compiler can compile applications for multiple platforms, such as Windows, Linux, and Mac. An open-source cross-platform compiler is GCC (the GNU C Compiler). A cross-platform compiler uses a language that can be compiled on to multiple targets, such as C, C++, or haxe. It is required to compile the same source code multiple times, one for each target platform; a program such as make can be used to reduce the number of commands the user actually executes to just a single command.

Related Questions

Why cant you can do all programs in one compiler?

Not all programs are written in the same programming language. Every compiler can translates only one type of language into object code.


How can you turn a C plus plus program into a dot exe to run on a PC without a compiler?

To make C++ code into an executable program, you need a compiler. Compilation of a program doesn't have to be on the same computer as the one it's intended to be used on.


Is jvm a compiler?

Basically they do the same: converting from one level of language into another. A compiler converts high level language (programming language like java) into machine-language. That is language a computer understands. An interpreter converts high level language into an intermediate level. When a program is exectuted, that intermediate level is reconverted to machine language.


What is the difference between ANSI C and C plus plus?

C is a programming language and ANSI is the standardization committee. The C language is under the auspices of the ANSI committee, which monitors the grammar and structure of the language in a standard way that compiler writers must adhere to. ANSI C means that it is a standardized version of the C language according to the rules of the committee and should work/compile the same way on any system that uses an ANSI C compliant compiler.


What is the meaning of code has no effect in function main in c language?

When the compiler says "code has no effect", it is saying that it does not matter if the code is executed or not - the end result will be the same. The compiler, if in optimizing mode, can and should delete the code. An example of code that has no effect is a = a;


3 plus 1 and 1 plus 3?

They both are the same. They both equal 4.


Are the Italian language and French language the same?

No, although they both have Latin origins.


What are the letters in the Canadian language?

Canada use both the English and French language, which both use the same letters.


Is filipino and English the same?

They are both different language's


Can the c plus plus language compiler also be used for the c language?

Yes, but you must tell the compiler that the code is C otherwise it will be treated as if it were C++, which could lead to subtle runtime errors where the languages contain "silent differences", or compilation errors where valid C code would be invalid in C++.Although you can mix C and C++ code in the same source, it makes sense to use separate translation units for each. Thus, when a header contains C code, you can include that header in a C++ program using the following construct:extern "C"{#include "c_header.h"}Everything between the opening and closing braces will be treated as C code and will be compiled as such.


How do you make 64 bit exe files in c plus plus?

Simple. Use a C++ compiler that allows the creation of 64-bit executables. Most modern compilers will cater for both 32-bit and 64-bit compilations via a command line switch. The only real difference between the two is whether a pointer is 32-bits long or 64-bits long and the same compiler can handle both. Integer types (int, short, long and long long) can also change length depending on whether we are compiling for 32-bit or 64-bit, which is one of the reasons we use the sizeof() operator when computing type lengths as it ensures our code is independent of the language implementation. Note that the sizeof() operator has no runtime cost as all type lengths are known to the compiler.


What are the Various compilers of different language?

A program that translates source code into object code. The compiler derives its name from the way it works, looking at the entire piece of source code and collecting and reorganizing the instructions. Thus, a compiler differs from an interpreter, which analyzes and executes each line of source code in succession, without looking at the entire program. The advantage of interpreters is that they can execute a program immediately. Compilers require some time before an executable program emerges. However, programs produced by compilers run much faster than the same programs executed by an interpreter.Every high-level programming language (except strictly interpretive languages) comes with a compiler. In effect, the compiler is the language, because it defines which instructions are acceptable.Because compilers translate source code into object code, which is unique for each type of computer, many compilers are available for the same language. For example, there is a FORTRAN compiler for PCs and another for Apple Macintosh computers. In addition, the compiler industry is quite competitive, so there are actually many compilers for each language on each type of computer. More than a dozen companies develop and sell C compilers for the PC.