mbed works like that (http://mbed.org/) and people praise it and moan about it in equal measure.
Andrew