Rules | Recent posts | topic RSS | Search | Register  | Log in

is there no one who can answer this query????

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers
Author Message
Kazzam



Joined: 23 Jul 2007
Posts: 53


Post03 Oct 2008 12:57   is there no one who can answer this query????

what is the difference between gcc and cc?
also what do you mean by sequence point in C language


thanks to all in advance
Back to top
sivamit



Joined: 01 Dec 2005
Posts: 154
Helped: 5
Location: India


Post07 Oct 2008 8:43   Re: is there no one who can answer this query????

Kazzam wrote:
what is the difference between gcc and cc?
also what do you mean by sequence point in C language


thanks to all in advance


GCC is just a short form of GNU compiler collection.
CC-Compiler collection


Sequence point:

From Wikipedia, the free encyclopedia

A sequence point in imperative programming defines any point in a computer program's execution at which it is guaranteed that all side effects of previous evaluations will have been performed, and no side effects from subsequent evaluations have yet been performed. They are often mentioned in reference to C and C++, because the result of some expressions can depend on the order of evaluation of their subexpressions. Adding one or more sequence points is one method of ensuring a consistent result, because this restricts the possible orders of evaluation.

Consider two functions f() and g(). In C and C++, the + operator is not a sequence point, and therefore in the expression f()+g() it is possible that either f() or g() will be executed first. The comma operator is a sequence point, and therefore in the code f(),g() the order of evaluation is defined (i.e., first f() is called, and then g() is called). The type and value of the whole expression are those of g(); the value of f() is discarded.

Sequence points also come into play when the same variable is modified more than once. An often-cited example is the expression i=i++, which both assigns i to itself and increments i; what is the final value of i? Language definitions might specify one of the possible behaviors or simply say the behavior is undefined. In C and C++, evaluating such an expression yields undefined behavior


http://en.wikipedia.org/wiki/Sequence_point

Ciao,
Shiva
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap