answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: When the compiler detects an error in the source should it halt?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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. & should not use redundant LOAD or STORE statements for data.


Why do you need compilers?

we need compiler to run the programme. compiler will check the error in the problem. compiler can check the error with the help of run time compiler. they can be static or dynamically.


What does this compiler error mean ' ' in java?

Simply, the error that your compiler catches is called compiler error. Doesn't matter if you are in Eclipse, NetBeans or Intellij IDEA, all these IDE's are very smart. They can detect if you made any any mistakes in your program. Common compiler errors are- -When you try and access a variable that is out of scope -When you forget to give a semicolon. -When you will try to use a reserved keyword like - return. -Any syntax error that your compiler might find suspicious, will cause compiler to throw an error.


When does a program show a compiling error?

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.


What is the cause of an error msg printf should have a prototype in C compiler?

You've forgotten this line: #include <stdio.h>


What is a compiler in c program?

The compiler is software that allows any high-level language to be translated into the machine language, compilers are language specific, i.e. C language has its own compiler which will translate the code written in C language to the machine language, compiler for Java will do the same task for the Java code


Why wont your C plus plus programs compile?

C++ programs won't compile if they contain compiler errors. The compiler will tell you precisely where the error is, and the type of error, unless the error is in a macro. The compiler cannot see macro definitions because they are inline expanded prior to compilation.


What happens when parity memory detects an error?

A parity error always causes the system to halt.


What happen if you declare class as recursive?

It will get a compiler error in Java.


What pre-processer will do in c language?

The preprocessor (or precompiler) processes all the preprocessor directives and macro definitions within your source files. In other words it creates modified source files where all directives and macros are completely stripped out and replaced by their respective definitions. For instance, each #include statement in your source inserts the named header just as if you'd copy/pasted that entire header into your source. However, prior to insertion, the header itself must be preprocessed, thus it is the modified code that is physically inserted. Once inserted, the #include directive is removed from the modified source. Since the compiler works with modified source files (intermediate sources), the compiler never sees your macro definitions and therefore cannot help you debug them. A macro is a primitive text replacement system so if this creates invalid code, a compiler error occurs but the compiler cannot tell you where that error originated because it is processing code that does not exist in your source.


What type of error can not be detected by the compiler?

Most commonly this would be a logical error, such as coding an incorrect calculation. However, depending on the compiler and language, other errors may not be detected at compile time.


What happens if you try to find address of register variable?

Either you get a compiler error. Or you get a compiler warning, and the variable won't be stored in register.