Google project zero and then The two attacks. and remediation for Spectre in LLVM.
See also Synchronous Processors. and processor architecture.
Some papers by Stephen Kell (also via lobste.rs ) particularly “Some were meant for C”
Current reading: meltdown and spectre edition