Diy Iot with the ESP8266

Building a toolchain and compile native code - Look here

A really good guide to use the ESP8266 with Arduino IDE and native code (no Arduino-hardware added). Click.
This from Adafruit is also recommended.