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

Illegal instruction: 4

Name: Anonymous 2019-07-23 22:38

I get that "Illegal instruction: 4" while trying to run qsort. But mergesort works fine. LLVM is a pile of shit.

Name: Anonymous 2019-07-24 7:17

>>2
I passed it array of pointers, and forgot to de-reference them in comparator routine, so it compared the pointers themselves instead of floats. Resulting in garbled output, crashes from time to time, with this "Illegal instruction: 4", instead of usual "segmentation fault". Mergesort has different access pattern so it wasn't triggering it.

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