User:Dbtx

From Esolang
Jump to navigation Jump to search

I've been forcibly capitalized. How droll.

I also made a Segmentation fault interpreter in C, which may or may not work with other compiler and libc besides GNU:

main()
{
    *(int*)0=0;
}

semi-golfed here but for whatever reason, the binary is 8 bytes bigger now:

main(){--*(int*)0;}

yes -- and =0 cost the same. I'm a bad golfer. But this appears to work also, and is same sized binary as previously, and very likely has the least possible actual information:

main(){main();}

this isn't as nice or neat mainly because I don't yet know how to get rid of the return type... (ok that's just a thing that annoys me and doesn't account for the real verbosity here) There may be a better way to say "cast null to a function pointer and call it" but it's sure to be relatively noisy in any case, because C:

main(){((int(*)())0)();}

Apparently I also got Segmentation fault and Segmentation Fault confused and thought that I had been looking at the latter, while falsely corrupting my correct memories of the former. Apparently this is all because I wrongly capitalized an F and didn't make sure I had successfully linked to the right thing. sigh