Solved

questions

Posted on 2011-02-23
5
398 Views
Last Modified: 2012-05-11
how do the following standards relate: ISO-C, POSIX,XSI,SUS.
can you give an example of a specific POSIX requirement
0
Comment
Question by:crazy4s
  • 2
  • 2
5 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 34964978
0
 

Author Comment

by:crazy4s
ID: 34965029
but how these four are related to each other?
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 34965330
That would be a long essay in itself.  You need to read the articles and maybe more to understand the ways they are related.
0
 
LVL 32

Accepted Solution

by:
phoffric earned 250 total points
ID: 34967485
ISO "International Organization for Standardization) is an international-standard-setting body composed of representatives from various national standards organizations." Once an ISO document with a name has been written, then a product may claim to conform to this document (with exceptions noted). Then all users of the product have confidence that the product will serve in a specified way. Often there is some verification process to assure conformance.

Then a compiler that says it is ISO-C compliant assures the reader that a program written for this compiler will, in fact, compile on another platform whose compiler also claims to be ISO-C compliant. But, as you may know, the program may not work on another platform due to other issues (e.g., endianness, size of an int). However, this compliance improves the probability that the program will work as desired and reduces the amount of code changes necessary when porting to another platform.


XSI

According to the above link, XSI is "X/Open System Interfaces Extension, a supplementary specification to the Single UNIX Specification" (i.e., SUS).

SUS

"The SUS emerged from a mid-1980s project to standardize operating system interfaces for software designed for variants of the Unix operating system."

It wasn't enough to just standardize the C language. OS interfaces also needed to be standardized to promote ease of portability.


POSIX is one of these standards to improve portability. For example, it provides a uniform approach in handling multi-threading by providing additional POSIX libraries with a uniform API to the C (and C++) language. So, a multi-threaded program on one POSIX compliant OS should port fairly well to another similar OS.
0
 

Author Comment

by:crazy4s
ID: 34970000
thanks:)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now