What is a compiled program?
A compiler takes the source code and generates an executable (the compiled program) that your device can run.
A compiled program is source code that is translated to either machine code (native code) or byte code. Native machine code requires no further translation and can be executed as-is, but byte code must be interpreted in order to produce the required machine code. Java is an example of a language that compiles to byte code that is suitable for interpretation by the Java virtual machine. C++, on the other hand, compiles to native machine code. Interpretation is much slower than executing native machine code program, however it is more efficient to interpret compiled byte code than it is to interpret high-level source code. Moreover, byte code is generally portable whereas native machine code is always machine-dependent.
2 people found this useful
In Linux you can use the gcc [Gross C Compiler] compiler for compiling a C program. The file will be compiled and if no errors object file will be created, which can be executed by giving typing ' ./a.out ' in the current path. You can also specify a name to the output file. If you specify a name,… after compilation a new file will be generated in the name you have specified, with a ' .o ' extention For more information on gcc, type ' man gcc ' or ' gcc --help ' in the shell prompt. Answer In Windows, you will need a compiler/builder like Microsoft Visual C++ Express or Dev-C++, both of which can be downloaded free of charge on the internet. Once you have this set up, open the project in the appropriate program (for help on this see the program's help files), and choose the Build option (or similar) from the menus at the top of the program's window. The Windows executable file (with file extension .exe) will most likely be in the same folder as the project provided there were no errors. Double click it in Windows Explorer, and it will execute. If it's a command line program, the output may dissappear too quickly to be visible. In this case, press Windows+R to bring up the Run dialog. Type in 'cmd' (no quotes), and the Command Prompt should appear. navigate to the correct directory using 'CD ..' to go up a directory and 'CD [directoryname]' to go into a directory. From there, type the executable file's filename and hit Enter. The program should run. (MORE)
The javac command is used to invoke Java's compiler and compile a Java source file. A typical invocation of the javac command would look like below: javac [options] [source files] Both the [options] and the [source files] are optional parts of the command, and both allow multiple entries. Th…e following are both legal javac commands: javac -help javac ClassName.java OneMoreClassName.java The first invocation doesn't compile any files, but prints a summary of valid options. The second invocation passes the compiler two .java files to compile (ClassName.java and OneMoreClassName.java). Whenever you specify multiple options and/or files they should be separated by spaces. This command would create the .class files that would be require to run the java progam. (MORE)
The java interpreter or JVM (Java Virtual Machine) is not able toexecute the java source code for a program. The java source codefirst needs to be compiled into bytecode that can be processed byJVM. Producing bytecode make the program platform independent as eachplatform has its own JVM. It is also …possible to directly writebytecode, bypassing the need to compile, but that would be tediousjob and also not good for security purpose as the compiler checksfor various errors in a program. (MORE)
When you compile a Java source file (.java) you get a Java bytecode file (.class). The bytecode in these .class files can be executed by the Java Virtual Machine.
Just read the book about computer concepts and you will know the answer to your question. By anabella solon, Joseph anas, Christy Pedroza and III-ssc Mendeleev...
Every higher level programming language uses a compiler. A compileris needed to translate the written instructions into a type ofinstruction that the computer will recognize.
1. Create the source into a file with any text editor, for example: myprog.c 2. Compile it: gcc -Wall -W -pedantic -g -o myprog myprog.c 3. Run it: ./myprog .
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to onl…y ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). SUNIL PATIDAR MISCOS BHOPAL INDIA. (MORE)
The compiler takes the file that you have written and produces another file from it. In the case of Pascal programs, for instance, you might write a program called myProg.pas and the Pascal compiler would translate it into the file myProg.exe which you could then run. If you tried to examine the con…tents of myProg.exe using, say, a text editor, then it would just appear as gobbledy-gook. The compiler has another task apart from translating your program. It also checks it to make sure that it is grammatically correct. Only when it is sure that there are no grammatical errors does it do the translation. Any errors that the compiler detects are called compile-time errors or syntax errors. If it finds so much as one syntax error, it stops compiling and reports the error to you. While the above is true, more simply put, a compiler translates source code to a language the computer understands. A computer does not operate in the language used for source code programming. Basic C code is based on discrete mathematics. The computer operates on what is called Assembly Language or Machine Code, which a computer understands, and contains the specific instructions for the computer to perform the source code's design. (MORE)
Basically, you can't. It would be like trying to take a baked cake and turn it back into its ingredients. It is maybe not that severe, but nevertheless very difficult to break a program and find some of its original components. That is why we keep the programs themselves in the form of source code. … But for some technologies it is possible. For example .Net programs can be decompiled. And there are special tools which allow to do that - .net decompilers. For an example look at the one at the related link below. (MORE)
Once the program is written we must insist machine to exicute it. so to type the c-program you need some platform that is called "Editor". After writting the program the program should be converted to machine lavel language mean '0' and '1' before that has exicuted. To do these thing we need a progr…am called compiler.the basic vompiler vendors provide an "integrated development environment"(IDE) which consists od both editior and a compiler. this is how program gets compile. (MORE)
when you compile your program , it is sequentially checking your coding and check whether there is an error. thats the simple thing happening. if there is no error, then it will create an executable file for your coding which is run when you ask to run the program after compiling. if your coding hav…e an error, then you have to correct those errors. REMEMBER that it is compulsory to compile the program after you correct the errors. otherwise, it will not make an executable file with your corrections. (MORE)
For Windows and Dos: 1. Install the Java Development Kit (JDK) fromthe Java or Oracleweb site into C:\ drive. 2. Set path by giving following command path =%path%;c:\jdk1.3\bin;c:\jdk1.3\lib with your proper version ofJDK(i.e. jdk1.2.2 or jdk1.2 etc). 3. Write simple program in Edit of Dos or Not…epad with"class_name.java". Here class_name is the name of file you used inyour program with the keyword class. Remember that Java is casesensitive. 4. Compile the program with the command "javac class_name.java". Ifthere are compile errors, fix the source and repeat this step againuntil it works. 5. Run this command "java class_name". If the program does not workcorrectly , review the code, fix the errors and repeat step 4above. (MORE)
Very few programs are compiled specifically for the Pentium 4. This is because it makes the code unable to run, or perform worse, on other processors, such as a Pentium III, Athlon 64 X2, or Core Duo. Also, there have been several iterations of the Pentium 4, each adding new features, like SSE2 and …HyperThreading. One example of a program compiled with some Pentium 4-specific optimizations is Swiftfox, a recompile of Firefox on Linux. (MORE)
There are many C compilers. In modern usage, the most common ones are Microsoft Visual C++ (which can also compile C programs) and GCC (GNU Compiler Collecttion, originally GNU C Compiler).
A compiler is a program. More specifically, a compiler is anexecutable. You use a compiler to translate high-level source codeinto object code which can then be linked with other object code toproduce other executables. Compilers are usually written in ahigh-level language, which means you need a co…mpiler to create acompiler. Although this sounds like a paradox, it is not. Once youhave a compiler, you can use it to create newer, better compilers.However, there was a time when there were no compilers at all andthese had to be entirely written using low-level assembly language. (MORE)
we write as: C:\java\bin>javac TestApplet.java then we do C:\java\bin>edit Test.html then we write in html C:\java\bin>appletViewer Test.html then we get output of program here TestApplet is name of class
Easy. If your program is in file mycode.c, then type: cc mycode.c -o mycode ./mycode
There are 6 steps Pre-processor - which replaces macros Code will be separated from comments syntax error will be given - types of parsing compilation - will convert high level language to assembly assembler - will convert assembly to machine language linker - will generate final executabl…e. (MORE)
When a program contains a compiler error, the compiler will detect it, preventing the program from compiling. Compiler errors must be fixed before a program will compile successfully.
Compiling means converting it to the for which machine can understand. Infinity.. C++, COBOL, Pascal, BASIC, and other programming languages are English-like; a computer is an electro-magnetic machine that doesn't directly understand either English or English-like programming languages. In orde…r for a computer to "execute" or "run" a program, the program must be translated into the electro-magnetic switches that the computer "understands." There are several ways of doing this, including assembling, interpreting, and compiling. Assembly languages are formed by one English-like code for every instruction of the machine's native language, "machine code." Translation of a program written in an assembly language into machine code is called "assembling" the program. Because assembly language instructions map (via assembling) directly to machine instructions, the resulting machine code is likely to be extremely efficient -- runs fast and conserves memory. These are the primary advantages of assembly- language programming. Disadvantages: it tends to be hard to work with, and, since every model of computer has its own version of assembly language, programs aren't "portable" -- they must be rewritten in order to run on other models of computers. For example, a program written in IBM PC assembly language should run on all IBM PC-compatible computers, but not on Macintoshes. "High-level languages" such as C++, COBOL, etc., tend to be easier for programmers to work with than assembly languages since an instruction in a high-level language typically is the equivalent of several assembly or machine language instructions. High-level language programs are generally either interpreted or compiled into machine code. Many beginning students of college-level computer programming know BASIC (not Visual Basic), which is usually interpreted. When an interpreted program runs and control within the program reaches a given instruction (such as a LET statement), the interpreter translates the instruction into machine code and executes the corresponding machine instructions, then goes on to the next instruction of the program WITHOUT REMEMBERING the machine code it has just finished executing. Thus, if an instruction is repeated, it must be re-translated to machine code before it can be re-executed. By contrast, COBOL and C++ are usually compiled. The compiler translates the program IN ITS ENTIRETY to machine code, and "remembers" all the machine code by saving it in an "executable" file, before the program is run. Thus, when the program is run, translation of source code instructions to machine code has been done in advance; repetition of a source code instruction does not require re-translation of the source code instruction to machine code; hence the program tends to run faster. On some computers where a language can be both compiled and interpreted, the compiled version will run enormously faster -- it's not unusual for the parts of the program not requiring input or output to require 1000 times as much time in the interpreted as in the compiled version. OK, this clearly indicates that an important advantage of compiling as opposed to interpreting is speed of execution. What could a disadvantage of compiling be? Well, remember we said above that one high-level language instruction is typically equivalent to several machine code instructions. Suppose you are running a program in, say, BASIC, that has 500 BASIC instructions, the average of which is equivalent to 5 machine code instructions and the largest of which is equivalent to 10 machine code instructions. If compiled, this would mean you would need enough memory to hold 5*500 = 2500 machine code instructions in order to run the program; if interpreted, you need enough memory to hold 500 BASIC instructions plus at most 10 machine code instructions (for whatever BASIC instruction is currently executing). Thus, interpreting uses less memory. This was an extremely important factor for the early microcomputers -- machines with small memories -- and probably explains why they typically came equipped with interpreted BASIC. A compiler typically scans your source code file for "syntax errors," i.e. , errors in the use of the programming language's rules concerning formation of statements in the program. Frequently, one actual error will generate several error messages, as the first error may "confuse" the poor compiler. Hence, the first error message is significant; others may or may not be. If the compiler does not find "serious" syntax errors in your program, it will also typically (the details differ from one compiler to another) produce a file that is either the "executable" version of your program or an almost-executable (it may be an "object" file that must be "linked" to produce an executable file). The executable file is the machine code translation of your source code that the computer uses to execute your program when you give the command to do so. Students should note that the goal of the process is not merely to have your program run. It should run correctly and well. It may be necessary for you to observe your program's behavior, edit its source code, compile again, and run again, many times, before you are satisfied with your program's performance. On the other hand, if the compiler finds errors in your program, it is necessary for you to edit these errors out of your program (in the editor). You must then re-compile. The cycle of editing and compiling may have to be repeated several times before your program is ready to run. Notice also that you're probably not "done" when your program runs the first time - successful compiling does not guarantee either correct logic (necessary to get correct "answers") or nice input/output. It's the programmer's responsibility to check these matters. (MORE)
use the javac keyword to compile a Java program. javac filename.java is the syntax to compile a java file.
In general a compiler will go through a few steps: . Lexical analysis - making sure all the symbols in the source code are legal, and turning them into "tokens" for the next step. . Syntactic analysis - analyze the tokens, ensuring they follow the rules of the language grammar and parsing them …into some form of syntax tree. . Code generation - uses the syntax tree to create some form of intermediate language; oftentimes into assembly instructions, or a unique assembly-like language. . Code optimization - may or may not perform optimization on the intermediate language before translating it into executable code. . Of course the true process of compilation is almost always much more complex than this, and may involve many more steps. (MORE)
Programming language compilers are application programs. In some publications, however, the term system software also includes software development tools (like a compiler, linker or debugger).
1) Compiling: It is a build program that are executed during the compilation of a program. At compiling time the program are contagiously Scan for any syntax and semantics error. After compilation the txt file convert into ".obj"(object) file and linking part will be execute. 2) Linking: Af…ter compiling the Header file and related another files are attach with compiled program file and creates A lot of link betwixt function and there related header file it's called linking. 3) Execution: At the end of compilation and linking part the program really prepare to executed for use where in this part .obj file convert in to ''.exe" file it's called execution of a program. . So At first-compiling & linking then Execution of a program.. And in file concept- a.txt>a.obj>a.bac>a.exe (say "a" is a program name) *Here .bac is for backup file concept. After some changed in your save program the backup concept carry your previouse text program and save with the extention name .bac. (MORE)
To compile: javac MyProgram.java To run: java MyProgram However, you can also do everything (both compile and run) from within an IDE.
The first compiler was called A-0 and was programmed by a woman named Grace Hopper. It was programmed in machine code.
That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.\n That means to convert the original program - the source code, written by a programmer - into machine languag…e, or into an intermediate form, for example, Java bytecode in the case of Java.\n That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.\n That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.\n (MORE)
Compiling a java program is an action where the Java Compiler scans through a java program checking it for syntactical correctness and generates the byte-code (the system recognizable form) of the class so that the program can be executed. Javac is the command that compiles a java class.
You compile a Linux program with the 'make' command. Most of the time, Linux programs come with a makefile, which is a list of instructions that 'make' can use to build the program. You would just type 'make', or 'make target'. (But you've got to study this, and read the makefile.) In the simples…t case, without 'make', you can compile and link the hello.c program with the 'cc -o hello hello.c' command or, if 'make' is installed, you can use default rules by using the 'make hello.c' command. (MORE)
No. Besides being compiler based, some languages are assembler, some are machine code, and some are interpreted.
A compiler is a software program that translates C code into object code. The resultant object code can then be linked to produce an executable.
A compiler, in computer programming, is a program that may or may not be written in the language the compiler is written for that takes a program written in the language that the compiler is designed for and spits out another file. In Java, this file is a collection of "bytecodes", or a program for …the JVM(Java Virtual Machine). This is the same in C, but the program is turned into an executable file. Other languages in which the compiler spits out an executable file are FORTRAN, COBOL, C++, and many others. (MORE)
The compiler converts source code (the stuff the programmer wrote and is human readable) and converts it to machine code that the computers CPU can understand. The conversion is used to make an executable program. The compiler can also make libraries but libraries are not executable by them selve…s. (MORE)
A compiler is a program that converts the language into machine code, also known as binary (1s and 0s). Not all programming languages need compilers. Some are assembly and still others can just be straight and utter machine code.
Programming Languages are a form of comunication between a programmer and the hardware. So the code written in C has to be compiled/transformed into machine code (similar to Assembler) so that the hardware can understand what to do. Compilation leaves your code ready to excecute. Withought it you on…ly have the recipe of what the program does. (MORE)
A compiler is itself a computer program. This program would read the source code of another program, and write machine code to accomplish whatever that program is supposed to do.
C is a compiled programming language. You can not run your program using the source code file. Compiler does the binary code from source files. First, it runs the preprocessor, which removes comments and processing directives that begin with `# '. Then, the compiler converts the program text …into an object file. At this stage, the compiler optimizes a program, that it takes up less space, or to work faster (depending on compiler settings). Then, it runs the linker, which assembles the executable file from object files (files). C has many compilers for various platforms. PS I'm sorry if there are grammatical errors, I'm not a native speaker. . (MORE)
Yes we can compile a c program using c++ compiler. Because c++ evolved from the c. c++ have some additional features beyond c. c++ support almost all concepts used in c.
A program is written in some standard language (like FORTRAN or C) that a human can understand and write code in. This code is then fed through a special program called a compiler which checks the syntax of what has been written and converts the "human" code into assembler instructions that the comp…uter's CPU can handle. This is process of converting the code form human to machine instructions is called compiling a program. (MORE)
Nothing. Compiler is not a part of the program, it is a separate program that translates from source to object code (or Assembly).
So it can be run. Answering from an alternative angle, compiling source code into an executable program creates a list of instructions that can be understood directly by the CPU of the computer without any extra tools. The alternative being a script is a program which has to be read and interp…reted by another program. This causes a major decrease in performance as the CPU had to run a program that will read the script character by character and perform a lot of lookup functions to perform the same tasks. The in-between option is using a virtual machine language which produces a sort-of half compiled program. This is similar to LLVM, Java or the .NET CLR. All three options allow a program to be made smaller, can be run byte for byte or by an interpreter or can compile the code on the machine where it will be run. This is the ideal solution as the code can be compiled to run optimally on the end user's machine instead of trying to optimize code for all possible systems. (MORE)
A compiler is actually a program. However the function of a compiler it to take a programmers high level language code and render this as binary machine language instructions that a specific processor can execute.
Java is the most common compiler of code and is often used by web site and game designers to help in developing the look of the game and of the sites.
Strangely enough we use a C compiler. However, C has evolvedthrough several standards over the years so it is important you usethe latest standard when writing code and use the appropriatestandards-compliant compiler to compile that code. Moreover,compilers are platform-dependent and each platform h…as severalimplementations, so it is important to avoid compiler-dependenciesif you want to ensure code is portable. (MORE)
Graphics programming has nothing to do with compilers. Graphics aresystem-specific and are provided through third-party libraries suchas OpenGL.
Any language that uses a compiler to generate the machine code is acompiled language. By contrast, interpreted languages generate themachine code at runtime. Some languages, like Java, are bothcompiled and interpreted; the source code is compiled to Java bytecode which is then interpreted by the Jav…a virtual machine atruntime. (MORE)
No. By definition, a C++ program is a program that can only becompiled by the C++ compiler. Although the two languages do havemuch in common, not all C programs are valid in C++ but no C++program can ever be valid in C. That is, if a C++ program can becompiled by a C compiler then it was never a C++… program to beginwith; it was just a C program. (MORE)
A compiler is an executable that converts high-level source codeinto a lower level source code. Compilers are typically used toconvert source code into a native machine code executable or anassembly language source, however they can also be used to convertto any programming language lower than the s…ource language. Forinstance, Java uses a compiler to produce Java byte code which issuitable for interpretation by the Java virtual machine. (MORE)