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-06 6:36

>>26
You can trivially accomplish that without resorting to implementation-defined behavior by dynamically allocating all the pools from the same array of pages.
How does that give you order?

In practice you must do that anyway since portable code can't make assumptions about the size of a page.
portable code != efficient code. In general portable code is order of magnitude less efficient than native code, using full capability of x86 CPUs.

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