nicdude said:
But gcc is not compliant and Studio 11 does not appear to be compliant,
which is my subject.
I know gcc is not compliant.
Is studio 11 not compliant? You surprise me there.
My own experience for what it worth, is there is nothing like testing
software on various architectures to find bugs and portability issues.
One of my programs has been tested on just about everything from a Sony
Playstation 2 games console to a Cray Supercomputer. In between them,
there has been PCs running just about every OS you can think of
(including Windoze), Suns running Solaris, SGI Octane running IRIX, Dec
Alpa running Tru64, HP C3000 running HP-UX, IBM/6000 running AIX and so
on. If you can test your code on all those machines and find it compiles
OK, you can be pretty sure it is portable. Where possible I have avoided
the use of gcc, but of course that is not always possible.
The Cray was the biggest headache, with sizeof(short)=8. Having short,
int and long all 8 bytes is a bit tricky if you write binary files.
I don't claim my code (which I would add is C not C++) is compliant with
the ANSI (or any other) C standard, but it does compile and build on any
machine I can find, with any modern(ish) compiler I can find.
--
Dave K
http://www.southminster-branch-line.org.uk/
Please note my email address changes periodically to avoid spam.
It is always of the form: month-year@domain. Hitting reply will work
for a couple of months only. Later set it manually. The month is
always written in 3 letters (e.g. Jan, not January etc)