472,794 Members | 2,223 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Compliant compiler? Comeau?

There is a Comeau C++ compiler special offer at
http://www.comeaucomputing.com Is it really as compliant as it seems
to imply? In terms of Standard C++, what is it missing? Can it
handle templates well?

Dec 31 '05 #1
12 2377
In article <11**********************@g49g2000cwa.googlegroups .com>,
nicdude <ni********@hotmail.com> writes
There is a Comeau C++ compiler special offer at
http://www.comeaucomputing.com Is it really as compliant as it seems
to imply? In terms of Standard C++, what is it missing? Can it
handle templates well?


why not ask Comeau directly?

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Dec 31 '05 #2
"nicdude" <ni********@hotmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
There is a Comeau C++ compiler special offer at
http://www.comeaucomputing.com Is it really as compliant as it seems
to imply? In terms of Standard C++, what is it missing? Can it
handle templates well?


As is clearly stated on the page you cite above, you can
request additional info about Comeau products here:
http://www.comeaucomputing.com/faqs/contacts.html
(gives email, snail-mail, phone & fax numbers.)
-Mike
Dec 31 '05 #3
>why not ask Comeau directly

We did, and they answered, but wanted general responses too though.
Am asking generally about compliant compilers too, say for UNIX, they
don't seem to exist?

Dec 31 '05 #4
On 31 Dec 2005 07:20:03 -0800, "nicdude" <ni********@hotmail.com>
wrote:
There is a Comeau C++ compiler special offer at
http://www.comeaucomputing.com Is it really as compliant as it seems
to imply? In terms of Standard C++, what is it missing? Can it
handle templates well?


Your question requires a rather complex answer. Herb Sutter pulled
together a "roundup" about C++ compiler conformance several years ago.
The reference is below. I'm not sure if any compiler has made great
strides since the roundup. So it is still worthwhile reading. Please
note that the Comeau compiler is mentioned in some detail.

http://www.cuj.com/documents/s=8193/cuj0104sutter/

I have used Comeau for a number of years. I have found Greg to be
honest and helpful in his correspondence. The compiler is pretty good
with compliance. I think that it handles templates well. Much of the
noncompliance problems, that I have encountered, involve the legacy
library that I use to back-end his compiler. Comeau has no control
over the legacy library, of course. But on balance, it has not been
that much of a problem. I would recommend the product.
--

Best wishes,

Bob
Jan 1 '06 #5
nicdude wrote:
why not ask Comeau directly

We did, and they answered, but wanted general responses too though.
Am asking generally about compliant compilers too, say for UNIX, they
don't seem to exist?


For Solaris and Linux, take a look at Sun Studio 11, which is now a free
download (a large one, at well over 200 MB).

On SPARC it certainly generates better (faster) code than gcc and I
believe it certainly does not extend the languages the was gcc does.

--
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)
Jan 1 '06 #6
But gcc is not compliant and Studio 11 does not appear to be compliant,
which is my subject.

Jan 1 '06 #7
nicdude wrote:
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)
Jan 1 '06 #8
In article <43******@212.67.96.135>,
Dave
<IN****************************************@southm inster-branch-line.or
g.uk> wrote:
nicdude wrote:
But gcc is not compliant and Studio 11 does not appear to be compliant,
which is my subject.

I know gcc is not compliant.


Fwiw, the gcc 4.x C++ FE is fairly impressive in the compliance
department (a giant step forward from gcc 3.x). I admit that I'm not
yet intimately familiar with the gcc 4.x FE, but my impression to date
is pretty favorable. It obviously lacks export (Comeau is the only
shipping compiler I'm aware of that supports export). The gcc 4.0 FE
also supports an extension that allows zero length arrays in some
circumstances, and I've stumbled across a place or two where this
extension is in conflict with a simple implementation of static assert
(use BOOST_STATIC_ASSERT to avoid such problems). Other than these two
issues, I'm not currently aware of other non-conformances in the gcc 4.x
C++ FE. I'm interested in collecting test cases which do demonstrate
other non-conformances for this compiler.

-Howard
Jan 1 '06 #9
Robert W Hand wrote:
On 31 Dec 2005 07:20:03 -0800, "nicdude" <ni********@hotmail.com>
wrote:
There is a Comeau C++ compiler special offer at
http://www.comeaucomputing.com Is it really as compliant as it seems
to imply? In terms of Standard C++, what is it missing? Can it
handle templates well?


Your question requires a rather complex answer. Herb Sutter pulled
together a "roundup" about C++ compiler conformance several years ago.
The reference is below. I'm not sure if any compiler has made great
strides since the roundup. So it is still worthwhile reading. Please
note that the Comeau compiler is mentioned in some detail.

http://www.cuj.com/documents/s=8193/cuj0104sutter/

I have used Comeau for a number of years. I have found Greg to be
honest and helpful in his correspondence. The compiler is pretty good
with compliance. I think that it handles templates well. Much of the
noncompliance problems, that I have encountered, involve the legacy
library that I use to back-end his compiler. Comeau has no control
over the legacy library, of course. But on balance, it has not been
that much of a problem. I would recommend the product.
--


The above link is very out dated with respects to the VC++ compiler.
VC++ 6.0 compiler is a pre-standard compiler, and so it has poor
compliance.
And considering VC++ 7.0 is a post-standard compiler, (IMHO) it also
has poor compliance.
However, VC++ 7.1 has very good C++ compliance ratings, and it's ranked
as one of the highest.

Jan 2 '06 #10
Hi,

At Sun, 01 Jan 2006 11:13:25 +0000,
Dave wrote:
For Solaris and Linux, take a look at Sun Studio 11, which is now a free
download (a large one, at well over 200 MB).


Sun Studio is not a compiler, it's an IDE. Btw. Sun Studio on Linux uses
the gcc because Sun didn't port their compiler to Linux, so on Linux there
is obviously no differnce in standard compliance to gcc ;).
Regards,
Roland
--
Roland Csaszar ----------- \\\ /// -------------- +43 316 495 2129
Software Development ------ \\\ /// ----------- http://www.knapp.com
KNAPP Logistics Automation - \\V// - mailto:ro************@knapp.com
Jan 2 '06 #11
Axter wrote:
Robert W Hand wrote:
On 31 Dec 2005 07:20:03 -0800, "nicdude" <ni********@hotmail.com>
wrote:
There is a Comeau C++ compiler special offer at
http://www.comeaucomputing.com Is it really as compliant as it
seems to imply? In terms of Standard C++, what is it missing?
Can it handle templates well?
Your question requires a rather complex answer. Herb Sutter pulled
together a "roundup" about C++ compiler conformance several years
ago. The reference is below. I'm not sure if any compiler has made
great strides since the roundup. So it is still worthwhile reading.
Please note that the Comeau compiler is mentioned in some detail.

http://www.cuj.com/documents/s=8193/cuj0104sutter/


The above link is very out dated with respects to the VC++ compiler.


No, it isn't. The link is to the article published in the early 2001.
At the time there was no _published_ version 7.0 or 7.1 of VC++. So,
it does refer to VC++ v6.0. See the revewees' comments section as well.
Did you actually bother to read the article?
VC++ 6.0 compiler is a pre-standard compiler, and so it has poor
compliance.
And considering VC++ 7.0 is a post-standard compiler, (IMHO) it also
has poor compliance.
However, VC++ 7.1 has very good C++ compliance ratings, and it's
ranked as one of the highest.


It has nothing to do with the round-up. Incidentally, Herb Sutter is now
working for Microsoft which should lead to improvements in their compiler
among other things.

V
Jan 2 '06 #12
Dave wrote:
nicdude wrote:
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?


I would expect not; Studio 10 was the furthest from standards compliance
of the compilers I regularly use. Sun tends to try *very* hard to
preserve backwards compatibility, often at the expense of strict
standards compliance.
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.
If you write binary files, you should normally convert everything
to (arrays of) possibly-unsigned char first, and sizeof(short)
does not matter. If you write builtins or structs as raw data
without doing so, you do indeed run into other problems.
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.


Which indicates that you probably stick to a portable subset
of C, and most C compilers can cope with the original ANSI/ISO
C standard though not the current one from 1999. C++ compliance
is another matter, and Comeau's C++ compiler is the only
commercially available one that can cope with the whole C++
language, including "export" (bugs excepted).

-- James
Jan 4 '06 #13

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

Similar topics

11
by: spipyeah | last post by:
Is there a collection of C++ source files that can be used to test compiler compliancy by using really extreme language cases, making sure the standard library is complete, and other such things?
5
by: Shlomi | last post by:
Hi ! I've wrote quite a big code which bases on a considerable large amount of template classes. (uses many different kinds of each template class). Now, without prior knowledge of mine, it...
25
by: Mohd Hanafiah Abdullah | last post by:
Axiomatic Solutions Sdn Bhd announces the availability of AMPC version 1.2. You can purchase AMPC online now at: http://www.axiomsol.com/hedesu/shopping/index.php Major Changes -------------...
7
by: Tao Wang | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I saw cuj's conformance roundup, but the result is quite old. I think many people like me want to know newer c++ standard conformance test...
233
by: E. Robert Tisdale | last post by:
I have access to a wide variety of different platforms here at JPL and they all have pretty good C 99 compilers. Some people claim that they have not moved to the new standard because of the...
17
by: Student | last post by:
Hi All, I have an assignment for my Programming language project to create a compiler that takes a C++ file as input and translate it into the C file. Here I have to take care of inheritance and...
6
by: toton | last post by:
Hi, Anyone have a link to comparative study of different C++ compilers and how much they conform to C++ language standard? Most of the big platforms I know have GCC which well supports C++...
41
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.