Use PlatformIO for regular C programming not any IoT?

Hello, I have been using PlatformIO for a while and it is filling my needs for programming IoT devices like the Espressif-8266 and others.

I would like to write a C (or Cpp) program that will run on my Linux desktop not a target board.

I tried to click the compile button in a directory without a platformio.ini file, and, of course, it complained about that.

I also tried to make a platformio.ini file without a board line and it didn’t like that either.

My question, can I use PlarfrrmIO to compile and run generic C programs on my desktop without a target IoT board?

Thanks, Mark.

[env:native]
platform = native 

See Native — PlatformIO latest documentation

Thank you sivar2311.

Mark.