How to turn binary into a PE executable?

  Kiến thức lập trình

all. I’ve been messing around with binary as of lately and I’ve decided to attempt to make my own compiler in C. The problem I’ve been having is that I can’t find documentation for how to make a PE executable file (.EXE) from binary. If anyone has any knowledge or can point me in the right direction I would be grateful.

Currently I’ve poked around the internet and cannot find anything that is useful (I may just be looking in the wrong places.)

Thanks, Caden.