473,387 Members | 1,398 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Semantics part in C standard

Hi to all of you,

I was wondering what the Semantics part
in C standard is really for? What should
be on the constraints part and what should
be on the semantics part?
Is the implementation obligued to produce
diagnostics only if I violate something in
the constraints part?

Thanks a lot in advance,

Max
Nov 13 '05 #1
2 1657
maxw_cc wrote:
I was wondering what the Semantics part
in C standard is really for?
To specify semantics for the various operations.
What should
be on the constraints part and what should
be on the semantics part?
What is there, should be there.
Is the implementation obligued to produce
diagnostics only if I violate something in
the constraints part?


A violation of syntax or constraints requires a
diagnostic, if the implementation is to conform
to the standard.

Nov 13 '05 #2
In <c2**************************@posting.google.com > ma*****@yahoo.com (maxw_cc) writes:
I was wondering what the Semantics part
in C standard is really for? What should
be on the constraints part and what should
be on the semantics part?
The constraints part, together with the syntax part, describe the correct
form of each programming construct supported by the C language.

The semantics part describes the meaning of each programming construct
whose correct form was specified by the syntax and constraints part.
Is the implementation obligued to produce
diagnostics only if I violate something in
the constraints part?


Or the syntax part. A program can't violate the semantics part, only the
implementation can (in which case, it is non-conforming).

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Karl Smith | last post by:
Headless <invalid_address@dna.ie> wrote in reply to Christoph Paeper <crissov@gmx.net>: > Semantically <span>this</span> is 100% identical to: > Semantically <div>this</div> is 100% identical...
21
by: Paul Steckler | last post by:
Here's some code that's giving me differing results, depending on the compiler. typedef foo { int A,B; } FOO; int main() {
13
by: Marc | last post by:
Hi, I've been lurking on clc for a few months now, and want to start by thanking the regulars here for opening my eyes to a whole new dimension of "knowing c". Considering I had never even...
7
by: Dilip | last post by:
If you reserve a certain amount of memory for a std::vector, what happens when a reallocation is necessary because I overshot the limit? I mean, say I reserve for 500 elements, the insertion of...
27
by: v4vijayakumar | last post by:
what "enabling unwind semantics" occording to Microsoft (R) 32-bit C/C++ Optimizing Compiler. C:\Program Files\Microsoft Visual C++ Toolkit 2003\include\ostream(574) : warnin g C4530: C++...
6
by: Prof.Stanley | last post by:
HELLO ALL I AM NOT VERY OLD IN C AND C++ SO I AM TRYING TO WRITE A PROGRAM THAT RECIEVES AN INPUT STRING AND DETECTS DOUBLE VOWELS IN IT:PLEASE WILL SOEMBODY OF GOOD FAITH HELP TO CORRECT ANY...
20
by: Dilip | last post by:
I understand the C++ standard does not talk about threading. My question here is directed more towards what happens when a STL container is used in a certain way. I'd appreciate any thoughts. I...
5
by: Thomas Lotze | last post by:
Hi, I wonder how to solve the following problem the most pythonic way: Suppose you have a function f which, as part of its protocol, raises some standard exception E under certain,...
35
by: dragoncoder | last post by:
Just a simple theoritical question to the experts. What was the rationale behind making STL containers follow copy semantics rather than reference semantics. References almost always make things...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.