Raphael S. Carvalho, a.k.a. utroz has written a nice article showing step by step with ‘C’ source code how an exploit for the Meltdown speculative execution vulnerability would work. has also written a Meltdown vulnerability checker works by attempting to actively exploit the vulnerability (as opposed to for example checking the the presence of OS patches or CPU microcode updates).