Question: how to use tdm gcc compiler?
Answer: Download TDM-GCC from here. ... 
After download complete you just simply double click on the file and then you will see a dialog setup option like image below. ... 
On the next screen you will see a dialog to select type edition windows paltform (32/64 bit) like image below.