On Sep 10, 10:22 am, Ryan Graham <[email protected]> wrote:
> On Thu, Sep 10, 2009 at 7:22 AM, Dos-Man 64 <[email protected]> wrote:
>
> > Daniel, I am trying to determine if memory is segmented or not. If I
> > allocate a huge character array using malloc() or new(), does it work
> > or do you have to use FAR pointers or something along those lines?
>
> I don't recall the last time I saw a malloc() fail. Of course, that
> could be the problem of Linux overcommitting memory, but that's not
> really related to what you're talking about.
>
> Wouldn't the best way to get your answer be to try a large malloc()?
Yes, it would. However, I am limited in memory right now running from
the knoppix ramdisk.
>
> You shouldn't have to worry about segmenting unless you're coding in assembly.
>
> ~Ryan
>
> --http://rmgraham.blogspot.comhttp://twitter.com/rmgraham
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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---