Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Memory Management
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Llarn
(23 posts) Bio
|
Date
| Tue 09 Jul 2013 02:31 PM (UTC) |
Message
| 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.
| Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #1 on Wed 10 Jul 2013 07:32 AM (UTC) |
Message
| 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 |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Llarn
(23 posts) Bio
|
Date
| Reply #2 on Wed 10 Jul 2013 01:00 PM (UTC) Amended on Wed 10 Jul 2013 01:01 PM (UTC) by Llarn
|
Message
| 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. | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
11,820 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top