You have an ESP8266 board like the Wemos D1 ... learn a few tricks for doing sleep Arduino environment, and even calculate how long your specific battery could last. You’ll need a TP4056 ...
For the x86 CPU emulator, he ported Fake86 which is written in C, and created an Arduino IDE environment ... Emulating other hardware on the ESP8266 seems to be a popular thing to do.