Memory Management

Posted by Llarn on Tue 09 Jul 2013 02:31 PM — 3 posts, 14,997 views.

#0
Good Morning,

I was going to post something like the below message, but just saw this 147 page link of goodness someone was kind enough to add to this site before you post a new message. http://www.faqs.org/faqs/C-faq/faq/

I will check that out completely. The below was my question, until I saw that.

I am wondering if there ever was a post, that goes into detail about memory management for smaug muds? I have searched this site, and others with google, etc. There are bits and pieces out there, but nothing that really explains the foundation of memory usage for a new coder that I can find.



Australia Forum Administrator #1
Your question isn't totally clear. Memory management in general would be similar to what you normally do (in C), that is make sure you free any memory you allocate, and only do that once.

There is a tool that checks that sort of stuff: valgrind
#2
No problem Nick,

I have realized what I was trying to ask for was a cheat sheet of sorts for managing memory with smaug code. However, what I now realize is that I was trying to avoid the real issue which is to learn C in the first place, instead of trying to learn ways to manipulate C only with smaug code. So, there being plenty of resources out there to do that...

I am going to make sure I have a good grip on it before I get started now.

Thanks for the great site.