Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Time to Test Your Compiler

Name: Anonymous 2014-04-30 9:59

void foo() {}
void bar() {}
void main() {
if ((void*)foo < (void*)bar) {
printf("sound compiler! preserves ordering.\n");
} else {
printf("your gaypiler sucks balls and doesn't respect memory layout\n");
}
}

Name: Anonymous 2014-05-07 8:24

>>31

An array element at a lower index is guaranteed to have an address that is lower than an array element at a higher index. So if you allocate all the pools from the same array, total ordering is guaranteed.
You don't know in advance how many pools you will need or their size. A pool have size of say 512 bytes and when it becomes full, you replace it with an empty one, while older get garbage collected.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List