News for hackers. Stuff that matters.
Re:Why Pascal Is Not My Favorite Programming Language (1981)... by pjmlp on Monday February 03, 2020 @03:04PM (#22228360)
Funny, malloc() implemented that way is UB and doesn't work in all cases, specially when passing pointers around dynamic loaded libraries or threads.

So exit() gets to call longjmp() which definitely can only be done in Assembly, back to step 1.

Re:Why Pascal Is Not My Favorite Programming Language (1981)... by danmg on Tuesday February 04, 2020 @10:33AM (#22236669)
Isn't this how malloc was done on classic MacOS?
Re:Why Pascal Is Not My Favorite Programming Language (1981)... by pjmlp on Tuesday February 04, 2020 @02:14PM (#22239722)
Classic MacOS was written in a mix of Assembly and Apple Pascal.

C was a guest language via MPW, and plugged into those APIs.