On Sep 10, 11:42 am, Ryan Graham <[email protected]> wrote:
> On Thu, Sep 10, 2009 at 9:26 AM, Dos-Man 64 <[email protected]> wrote:
>
> > I have a C++ string class that I am finishing up work on. I intend to
> > use this in my applications (whatever they may be.) I am just trying
> > to determine a bit more about the underlying architecture and how it
> > deals with memory segments.
>
> My gut instinct says you are over thinking this. I've never had to
> deal with anything like this in C/C++, on Linux, in the last 8 years.
> It's possible I just don't understand what you are trying to find out.
>
Well, I am coming from a different platform. Actually 2 different
platforms. MS-DOS used segmented memory. It is common to allocate
memory in 64k chunks or segments. Windows did away with the need to
do this, but you use FAR pointers (long pointers or LPSTRs).
It is for this reason that multiline edit controls were limited to 64K
on earlier windows versions. For example, the notepad that comes with
windows 98 cannot open text files that are larger than 64k. It instead
refers you to wordpad which uses a richedit control.
> IBM developerWorks has great articles on these types of subjects -
> maybe this one will help you
>
> http://www.ibm.com/developerworks/linux/library/l-memory/
>
> ~Ryan
> --http://rmgraham.blogspot.comhttp://twitter.com/rmgraham
Thanks, I will check it out.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at
http://groups.google.com/group/linuxusersgroup
-~----------~----~----~----~------~----~------~--~---