File:Hog.png

Licensing

This work is licensed under a
License::Creative Commons Attribution-ShareAlike 3.0 Unported License
Credit:
gollark: I think you'd probably *not* want to do that on a Pi running Linux? That sounds very real time.
gollark: Actually, C++ compilers are sentient AI.
gollark: So you *do* do dynamic memory allocation‽!‽‽‽‽⸘
gollark: ```c#include <stdint.h>#include <stddef.h>static uintptr_t MEMPOS = 1;void* malloc(size_t size) { uintptr_t bees = MEMPOS; MEMPOS += size; return (void*)bees;}void free(void* ptr) { *(char**)ptr = "hello please do not use this address";}```
gollark: Just implement `malloc`. It's quite easy.
This article is issued from Dandwiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.