Erico Franco wrote: > > >>Most of which should be avoided because these things will bloat your app. >> >> >> > Technically what you mean? Application become unstable? too large?
While it's fine to use it, you should understand the consequences. STL is extremely flexible, but it comes at a price: code size. Using STL, the "string" class, and exceptions, will require linking in the objects from libstdc++ associated with each. And templates, by definition, create multiple copies of the same code (one copy for each type). STL, adds additional overhead for each class in the form of functions that you may never use (such as push_front, reverse, etc...). Furthermore, exceptions add a little overhead to each function (to handle the stack frame I believe). I've found that C-style linked lists worked fine where I would normally consider an STL list. Likewise, C-style strings work fine in place of "string" objects, and returning status from functions can replace exceptions. Of course, it all depends on what your needs are and what resources (memory, etc.) are available to you. > >>>if you are a professional, use CW 9.3 - PODS is good only for >>>beginners and programmers that do not to go deep in C Programming. >>> >>> >>Hopefully you are not a troll, but blanket statements like this are naive >>at >>best. I use prc-tools (the compiler used by PODS) on Linux exclusively >>and I am sure that I am not alone. >> >> > > Yes, my opinion there is a little bit radical, this is in fact due to a > lot of issues that I faced when using PODS for a 100k segment > application: Hard to compile and after it finally compiles my > application becomes completely unstable and crashed every minute. When I first started using multiple segments I ran into the same thing. Eventually, I tracked it down to a name collision. I had named a segment the same name as a variable. The compiler never complained but the program was unstable and even changing an unrelated line of code would result in odd behavior at times. > > After that I migrated to CW9.3 after Mr Combee suggested to try it due > to my profile (using C++ and having segment issues) and I started to > love it. My guess is that you may have had the same problem as me and that switching to CW fixed it because CW manages all the section names for you (as I understand it). > > Maybe my case is an rare one compared with other cases, in this case I > say sorry for my radical declaration about CW vc PODS. No problem. I hope I didn't offend you. If I did then I am sorry. And thanks for clearing things up in regards to the problems you had with PODS. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
