c++.stlsoft - STLSoft & GNU g++
- Alex Vinokur (7/7) Mar 18 2004 Is it worth working in GNU g++ with STLSoft?
- Matthew (14/17) Mar 18 2004 STLSoft is a suite of library extensions, in the manner of STL. g++ is a
- Alex Vinokur (17/20) Mar 18 2004 I meant the following point.
- Matthew (28/50) Apr 25 2004 Alex
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
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
"Matthew" <matthew stlsoft.org> wrote in message news:c3c3dd$bt$1 digitaldaemon.com... [snip]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.htmlDoes 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. :(
Mar 18 2004
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 messagenews:c3c3dd$bt$1 digitaldaemon.com...[snip]STL? Any sample? 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.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 ofDoes 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. :([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