answersLogoWhite

0

prod=0;

i=1;

do

{

prod = prod +a[i] * b[i];

i=i+1;

} while(i<=20);

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is DAG in compiler?

Directed Acyclic Graph,Used to derive TAC- three address code to generate target code.


When the compiler detects an error in the source should it halt?

When a compiler detects an error in the source code, it generally halts the compilation process to prevent the generation of incorrect or incomplete executable code. This allows developers to address the errors before proceeding. However, some compilers can provide warnings for non-fatal issues while continuing the compilation, allowing for a more comprehensive analysis of the code. Ultimately, whether to halt or continue depends on the severity of the errors and the specific compiler's design.


Which compiler compiles the IL code to native code?

Just-In-Time compiler


What is load time binding?

: Compiler generates relocatable code if memory location is not known at compile time. Address assigned as loaded; If starting address


How three pass compiler works?

A three-pass compiler processes source code in three distinct phases. In the first pass, it performs lexical analysis and creates a symbol table, identifying tokens and their attributes. The second pass focuses on syntax analysis, generating an intermediate representation of the code while checking for grammatical correctness. Finally, in the third pass, the compiler conducts semantic analysis, optimization, and code generation, translating the intermediate representation into the target machine code.


What does a compiler allow us to do?

A compiler converts programming code into computer code that a computer can read.


Are programs that translate the source code to object code?

False. A compiler converts source code into object code.


What is bliss compiler?

A bliss compiler compiles Bliss source into Bliss object code which is a step in executing macdine code written by the Bliss compiler.


How to design a Compiler?

This is a fairly complex answer, but it basically boils down to a few oversimplified steps. First, design a language, or find the specifications for a language you would like to use. Second, design a lexical parser that can interpret the "tokens" that you designed in your language. Third, design a compiler/linker that will assemble the tokens into binary code, and link them with the appropriate libraries. Your exact steps will vary depending on the operating system you are using, the compiler you have available, etc.


Features of good compiler in compiler design?

1. Compiler should generate accurate code corresponding to the source code provided 2.Compiler should perform better optimization that would contribute to the improvement of the Performance as well as in conservation of space. 3.Compiler should be bug-free by itself. 4.Output of the compiler should not take much time to run. 5. Compiler should be able to provide details of the error occurring such that they are sufficient to locate that error in the source program. 6. Compiler should generate machine code by using CPU registers efficiently. &amp; should not use redundant LOAD or STORE statements for data.


What is role of compiler?

It coverts your source code into machine code so the computer can execute it.


What is the difference between java compiler and C compiler?

Greetings Technologist. The Java compiler compiles Java code, whereas the C compiler compiles C Code HTH Richard Wolf Software Architect