Abstract
Abstract In this thesis, we propose Enix, a lightweight dynamic operating system for tightly constrained platform for wireless sensor networks (WSN). Enix provides cooperative threading model, which is applicable to event-based WSN applications with little run-time overhead. Virtual memory is also supported with the assistance of the compiler, so that the sensor platforms can execute code larger than the physical code memory they have. To enable firmware update for deployed sensor nodes, remote reprogramming ability is available in Enix. The commonly used library and the main logical structure are separated; each sensor device has a copy of the dynamic loading library in the Micro-SD card, and therefore only the main function and user-defined subroutines should be updated through RF. A lightweight, efficient file system named EcoFS is also included in Enix. The code size and data size of Enix with full-function including EcoFS are 8 KB and 512 bytes, respectively, making Enix the smallest one compared to other WSN OSs.