Maybe use Visual Studio Code on the PC and enable the Remote-SSH Extension?
(runs commands and other extensions directly on the Pi)
I've tried this (albet with Python, not C) and unfortunately the agent that runs on the target device required 1GB of RAM.
From Remote Development using SSH:
1 GB RAM is required for remote hosts, but at least 2 GB RAM and a 2-core CPU is recommended.
I was targeting a Raspberry Pi Zero 2W, which only has 512MB of RAM and REALLY struggled to run the agent. On other models (with 1GB or more) it will probably work fine.
Of course, YMMV.
Statistics: Posted by phattmatt — Sat Dec 20, 2025 12:56 pm