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-02 0:02

>>19
That doesn't address >>17's ``strongly'', since I can't (off the top of my head) think of any situation in which you would want in-memory ordering to matter AND in which there's no way to do it in a more portable manner, barring IOCCC-level wanking. Can you give a concrete example of a problem in which 1) you need to encode information by ordering, 2) you cannot rely on an optimizer to do so, and 3) there is not another (relatively simple) method of encoding this information?

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