www.digitalmars.com         C & C++   DMDScript  

c++.stlsoft - STLSoft & GNU g++

reply "Alex Vinokur" <alexvn connect.to> writes:
Is it worth working in GNU g++ with STLSoft?

Does STLSoft contain any things which are missing in GNU g++?

How to work in GNU g++ with STLSoft (for instance, in Cygwin)?

--
   Alex Vinokur
     mailto:alexvn connect.to
     http://mathforum.org/library/view/10978.html
Mar 18 2004
parent reply "Matthew" <matthew stlsoft.org> writes:
 Is it worth working in GNU g++ with STLSoft?

Sure. I use GCC (g++) all the time with various STLSoft code.
 Does STLSoft contain any things which are missing in GNU g++?

STLSoft is a suite of library extensions, in the manner of STL. g++ is a compiler. I don't really understand your question. :(
 How to work in GNU g++ with STLSoft (for instance, in Cygwin)?

I've never worked with Cygwin, as I use MinGW, but you simply #include the components you need and program away ... Hope that helps -- Matthew Wilson Synesis Software; Custom Software Solutions (www.synesis.com.au) Contributing editor, C/C++ Users Journal (www.synesis.com.au/articles.html#columns) STLSoft moderator (http://www.stlsoft.org)
Mar 18 2004
parent reply "Alex Vinokur" <alexvn connect.to> writes:
"Matthew" <matthew stlsoft.org> wrote in message
news:c3c3dd$bt$1 digitaldaemon.com...
[snip]
 Does STLSoft contain any things which are missing in GNU g++?

STLSoft is a suite of library extensions, in the manner of STL. g++ is a compiler. I don't really understand your question. :(

I meant the following point. GNU g++ contains STL. When/why does one need to use not only STL but another library in the manner of STL? Any sample? [snip] Next question. Here are some results of comparative performance measurement: 1. Computing very long Fibonacci numbers http://article.gmane.org/gmane.comp.lang.c++.perfometer/31/ 2. C/C++ Program Perfometer http://alexvn.freeservers.com/s1/perfo/tests/pftests.htm Could STLSoft (for instance, with g++) improve the performance. -- Alex Vinokur mailto:alexvn connect.to http://mathforum.org/library/view/10978.html
Mar 18 2004
parent "Matthew" <matthew.hat stlsoft.dot.org> writes:
Alex

Sorry for the delayed response. Comments inline ...

"Alex Vinokur" <alexvn connect.to> wrote in message
news:c3c6iv$5p2$1 digitaldaemon.com...
 "Matthew" <matthew stlsoft.org> wrote in message

 [snip]
 Does STLSoft contain any things which are missing in GNU g++?

STLSoft is a suite of library extensions, in the manner of STL. g++ is a compiler. I don't really understand your question. :(

I meant the following point. GNU g++ contains STL. When/why does one need to use not only STL but another library in the manner of

STL is not primarily about replacing components of the standard library - although there are some that do so, such as basic_simple_string<> and myriad allocators - but rather about providing STL-like interface layers over disparate operating system and technology-specific APIs. For example, UNIXTL provides a readdir_sequence, which presents an STL Input Iterator access over the UNIX opendir()/readdir() API. Similarly, WinSTL provides reg_key_sequence and reg_value_sequence classes, which provide STL Bidirectional Iterator access over Win32 registry keys and values. Hope that answers the question.
 [snip]

 Next question.

 Here are some results of comparative performance measurement:
 1. Computing very long Fibonacci numbers
 http://article.gmane.org/gmane.comp.lang.c++.perfometer/31/

 2. C/C++ Program Perfometer
 http://alexvn.freeservers.com/s1/perfo/tests/pftests.htm

 Could STLSoft (for instance, with g++) improve the performance.

It depends on the bottlenecks. Some parts of STLSoft are aimed specifically at performance. For examples: - auto_buffer provides highly efficient variable-sized automatic buffers - fixed_array provides a very efficient multidimensional array - fast_string_concatenation provides a very fast, non-intrusive, mechanism for improving string concatenation. (This is described in an article in next month's - June 2004 - CUJ; http://www.cuj.com) - and several others. I'm afraid I do not have the bandwidth to be able to examine specific code to determine recommendations, but you're welcome to experiment and post results/observations. You might also check out the articles listed in http://synesis.com.au/articles.html, many of which are to do with performance + STLSoft
 --
    Alex Vinokur
      mailto:alexvn connect.to
      http://mathforum.org/library/view/10978.html

Apr 25 2004