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

Is this valid C code?

Name: Anonymous 2017-01-02 2:13

char x [5] = { 0xf0, 0x0f, 0xc7, 0xc8 };

main ()
{
void (*f)() = x;
f();
}


Found this on the Everything2 page for the Pentium F00F bug. My question is essentially whether it is indeed valid to write machine code subroutines as byte arrays and call them via a function pointer. Does the Standard have anything to say about this? And is executing code in the data segment even possible on modern architectures?

Name: Anonymous 2017-01-03 10:50

>>14
childish shit with a primitive plot and sounds in fucking space
it's not a defect, it's a feature.
Read up on Dune instead of this overrated crap.
I actually read most of the books in the series. none were as good as the first one though. but if you're bothered by sound in space then why aren't you bothered by space travel drugs made from shit of a huge worm that can live only on a single planet? it's not hard sci-fi either.

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