Pep wrote:
Rolf Magnus wrote:
Pep wrote:
I need to get a upgrade to my current FreeBSD g++ compiler (2.95.4) as it
does not support the use of anonymous structures within a union :(
<snip>
I doubt that I can convince my peers that we should move to 4.x but possibly
3.x,
Well, if you going to make a jump, you might as well go with the later
ones. Unlike the early gcc 4.x, I think the latest is pretty stable.
Issues of using old tools will only crop up again, but just in less time
if you use an older one now. That is an argument for going with a
later compiler.
though even that is going to be a massive battle. Is there a
regression test suite I can use to prove that we can adopt the newer
version of the compiler in addition to the obvious step of building our
code with the new compiler?
If you could use Linux or Solaris, rather than FreeBSD, then there is
now a good free commercial C++ compiler. It used to be expensive
(several thousand $'s), but is now free, even for commercial use. The
compiler is not however open-source.
http://developers.sun.com/prodtech/cc/products/
You might have less hassles convincing someone the fact you are using a
commercially supported C++ compiler, rather than the latest version of g++.
Sun Studio 11's huge appetite for RAM, processor and swap space is
dramatically reduced if you stick to the command line tools, rather than
the GUI. I've run it on lesser machines than the minimum spec with no
hassle.
The debugger is *excellent*.
If the Linux or Solaris (x86 or SPARC) route is worth considering, you
could ask on comp.unix.solaris for advice about testing. There are lots
of people from Sun who hang out there, including some from the compiler
group. Or phone Sun and ask.
--
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)