Solved

questions

Posted on 2011-02-23
5
396 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 82

Expert Comment

by:Dave Baldwin
Comment Utility
0
 

Author Comment

by:crazy4s
Comment Utility
but how these four are related to each other?
0
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
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
Comment Utility
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
Comment Utility
thanks:)
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

744 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