Using the .NET Micro Framework C# can already run pretty close to the metal - so why not?
See https://tindie.com/shops/nwazet/netduino-go/ for an accessible example set up.
See https://tindie.com/shops/nwazet/netduino-go/ for an accessible example set up.
This approach gives a couple advantages and a couple disadvantages. Specifically, the advantages the debugging and reloading can be done extremely quickly, the bytecode is small thus giving a lot of functionality per the byte of storage space, and it's significantly easier to port from microcontroller to microcontroller. Downsides, it's pretty slow - typically the heavy lifting happens in the HAL/MF, and you can't write interrupt handlers directly in it - although you can indirectly via the managed driver interface.