Hacker News new | ask | show | jobs
by luckydude 5549 days ago
Implement swtch() for x86 and arm (or whatever cpu you have). This is if you want to be a systems programmer, work on operating systems, file systems, etc.

There is something magical about calling a function as one process and returning as another.

I did this while still at school for Udi Manber (agrep, google search vp) because he wanted a user level threads package.

You can see my hacky code for the VAX (I think) at

http://www.mcvoy.com/lm/T/src/Tasm.S

http://www.mcvoy.com/lm/T/src/Tswitch.c

it's from 1987 when I was a grad student, probably doesn't compile.