no idea. malloc, sounds like some sort of scandinavian fish dish
Announcement
Collapse
No announcement yet.
All nighters
Collapse
X
-
If it ends up summoning Nyarlathotep I'm going to be extremely disappointed with certain posters.The genesis of the "evil Finn" concept- Evil, evil Finland
Comment
-
Originally posted by Asher View PostI'm the idiot, yet you're the one who apparently did not comprehend my statement. malloc (and more importantly, free) implementations were also in my school's curriculum. I'm sure you learned a ton implementing malloc. I didn't. I didn't need to learn it. I already knew it on my own.
I cracked open libc's malloc/free before I even started university to understand how they worked.
In any case the assignment here was specifically to do it using the buddy algorithm, which I don't think is the way most actual malloc() implementations work.
Originally posted by Bugs ****ing Bunny View PostWhat the hell are these people talking about?
Comment
-
Originally posted by regexcellent View Post
malloc() is the C library function for allocating and deallocating system memory to a program.
Fah. Come back when you're dealing with the A library and maybe we'll be impressed.The genesis of the "evil Finn" concept- Evil, evil Finland
Comment
-
Perhaps an analogy would help. Let's say that you want to eat fifty potatoes- this means that you would call the "malloc" function asking for fifty potatoes, and the function gives you fifty potatoes (assuming that it's got fifty potatoes to give to you, otherwise it returns a null potato). Then when you're done eating the potatoes, you would regurgitate them and call the "free" function so that the "malloc" function can give your regurgitated potatoes to somebody else. If you never return the regurgitated potatoes, then this is called a "memory leak" (or a "potato leak" in this case) and eventually malloc may run out of potatoes; if you accidentally return the regurgitated potatoes twice, then this causes a paradox and the universe explodes. Another problem is if you return the regurgitated potatoes but then try to eat them again anyway, which can cause problems because this means that you and somebody else are eating the same potatoes at the same time.Last edited by loinburger; May 20, 2013, 14:51.<p style="font-size:1024px">HTML is disabled in signatures</p>
Comment
-
Potatoe? Or potato?DISCLAIMER: the author of the above written texts does not warrant or assume any legal liability or responsibility for any offence and insult; disrespect, arrogance and related forms of demeaning behaviour; discrimination based on race, gender, age, income class, body mass, living area, political voting-record, football fan-ship and musical preference; insensitivity towards material, emotional or spiritual distress; and attempted emotional or financial black-mailing, skirt-chasing or death-threats perceived by the reader of the said written texts.
Comment
-
Next step is of course to implement your own version of valgrind so you can find the leaks in your malloc implementationWith or without religion, you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion.
Steven Weinberg
Comment
-
don't you think that's a bit tautological?Scouse Git (2) La Fayette Adam Smith Solomwi and Loinburger will not be forgotten.
"Remember the night we broke the windows in this old house? This is what I wished for..."
2015 APOLYTON FANTASY FOOTBALL CHAMPION!
Comment
-
Originally posted by regexcellent View PostSure, learning about malloc is useless to people who already know about malloc, but don't you think that's a bit tautological?"The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
Ben Kenobi: "That means I'm doing something right. "
Comment
-
Originally posted by Ben Kenobi View PostYou shouldn't use big words like that. This is asher, remember? He's probably been using them since he was 2."The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
Ben Kenobi: "That means I'm doing something right. "
Comment
Comment