In this paper, we propose a software architecture for building environment-aware software that runs in various real-time computing environments by adapting programs to respective environments. The framework is especially suitable for embedded computing environments since the environments require to support various types of computers.