News for hackers. Stuff that matters.
Re:The troubled POLY instruction of the VAX [pdf] by MichaelCrawford on Tuesday July 07, 2015 @02:56AM (#9843982)
Two years after I logged a bug in Apple's MPW C compiler, I received a developer CD with release note that explained how to reproduce my bug but then said "don't do that".

Mac C compilers added "pascal" as a reserved word, this enabled one to link to toolbox apis that had the pascal calling convention.

I wrote a c++ test tool for MacTCP in which a member function returned a pointer to a pascal C function, for use as a callback from the network driver.

My first attempt produced faulty machine code. While regressing the bug I found that increasing the lengths of the names of the member function or of its parameters would crash the compiler. Not the resulting binary - the compiler itself.

On the old mac os that took down the entire machine.

There are no comments on this comment yet.