I've done some more work on TCC to add the instructions to the assembler required for synchronization primitives.