Matches in DBpedia 2015-04 for { <http://dbpedia.org/resource/Undefined_behavior> ?p ?o }
Showing triples 1 to 25 of
25
with 100 triples per page.
- Undefined_behavior abstract "In computer programming, undefined behavior (UB) refers to computer code whose behavior is not specified under certain conditions. The behavior of some programming languages—most famously C and C++—is undefined in some cases. In the standards for these languages, the semantics of certain operations are undefined, so an implementation can assume that such operations never occur in standard-conforming program code, since the implementation will be correct whatever it does in such cases, analogous to don't-care terms in digital logic. This assumption can make various program transformations valid or simplify their proof of correctness giving flexibility to the implementation. It is the responsibility of the programmer to write code that never invokes undefined behavior, but compiler implementations are allowed to issue diagnostics when this happens.For example, in C the use of any automatic variable before it has been initialized yields undefined behavior, as does division by zero or indexing an array outside of its defined bounds (see buffer overflow). In general, any instance of undefined behavior leaves the abstract execution machine in an unknown state, and any subsequent behavior is also undefined. If it is not required that the compiler diagnose undefined behavior, programs invoking undefined behavior may compile and run, and produce correct results, or undetectably incorrect results, or any other behavior.Under some circumstances there can be specific restrictions on undefined behavior. For example, the instruction set specifications of a CPU might leave the behavior of some forms of an instruction undefined, but if the CPU supports memory protection then the specification will probably include a blanket rule stating that no user-accessible instruction may cause a hole in the operating system's security; so an actual CPU would be permitted to corrupt user registers in response to such an instruction, but would not be allowed to, for example, switch into supervisor mode.In C and C++, implementation-defined behavior is also used, where the language standard does not specify the behavior, but the implementation must choose a behavior and document and observe its rules. These standards also use unspecified behavior to mean that from a given set of possibilities it is not specified which behavior an implementation must choose, it need not document the choice or even be consistent, but it must choose one possibility.In the C community, undefined behavior may be humorously referred to as nasal demons, after a comp.std.c post that explained undefined behavior as allowing the compiler to do anything it chooses, even "to make demons fly out of your nose".".
- Undefined_behavior wikiPageExternalLink n1256.pdf.
- Undefined_behavior wikiPageID "515992".
- Undefined_behavior wikiPageRevisionID "643000037".
- Undefined_behavior hasPhotoCollection Undefined_behavior.
- Undefined_behavior subject Category:Articles_with_example_C++_code.
- Undefined_behavior subject Category:C++.
- Undefined_behavior subject Category:C_(programming_language).
- Undefined_behavior subject Category:Programming_language_implementation.
- Undefined_behavior type Thing.
- Undefined_behavior comment "In computer programming, undefined behavior (UB) refers to computer code whose behavior is not specified under certain conditions. The behavior of some programming languages—most famously C and C++—is undefined in some cases.".
- Undefined_behavior label "Comportamento indefinido".
- Undefined_behavior label "Comportamiento indefinido".
- Undefined_behavior label "Undefined behavior".
- Undefined_behavior label "Undefiniertes Verhalten".
- Undefined_behavior label "Неопределённое поведение".
- Undefined_behavior differentFrom Undefined_value.
- Undefined_behavior sameAs Undefiniertes_Verhalten.
- Undefined_behavior sameAs Comportamiento_indefinido.
- Undefined_behavior sameAs Comportamento_indefinido.
- Undefined_behavior sameAs m.02kjpr.
- Undefined_behavior sameAs Q1964707.
- Undefined_behavior sameAs Q1964707.
- Undefined_behavior wasDerivedFrom Undefined_behavior?oldid=643000037.
- Undefined_behavior isPrimaryTopicOf Undefined_behavior.