This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Documenting tools necessary for GCC [draft]


> The C standard gives an implementor far less wiggle room.

Basically the C standard was written to enable the writing of portable
code, and required C compilers to conform to a common functional spec
for a large part of the language.

The Posix spec is not written with this in mind, there are huge and
significant unspecified functionalities (for example, POSIX threads
does not even bother to precisely define the dispatching model).
As Zack says, the point of the POSIX spec was to create a common
set of functionalities. If you have a POSIX compliant technology,
then the idea is that you are guaranteed that you have an appropriate
basic set of functions, but you are definitely not guaranteed that
your posix code from another system will port unchanged. 

Yes, you can carefully write to the common guaranteed subset, but this
is not particularly the intention of the standard, and is in practice
very difficult to do.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]