Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
research-article
Open access

Towards update-conscious compilation for energy-efficient code dissemination in WSNs

Published: 29 October 2009 Publication History

Abstract

Postdeployment code dissemination in wireless sensor networks (WSN) is challenging, as the code has to be transmitted via energy-expensive wireless communication. In this article, we propose novel update-conscious compilation (UCC) techniques to achieve energy efficiency. By integrating the compilation decisions in generating the old binary, an update-conscious compiler strives to match the old decisions, which improves the binary code similarity, reduces the amount of transmitted data to remote sensors, and thus, consumes less energy. In this article, we develop update-conscious register allocation and data layout algorithms. Our experimental results show great improvements over the traditional, update-oblivious approaches.

References

[1]
Barr, K. and Asanović, K. 2006. Energy aware lossless data compression. In Proceedings of the 1st International Conference on Mobile Systems, Applications and Services. ACM, New York, 250--291.
[2]
Briggs, P., Cooper, K. D., and Torczon, L. 1994. Improvements to graph coloring register Allocation. ACM Trans. Program. Lang. Syst. 16, 33, 428--455.
[3]
Berkelaar, M. 2006. LP solve 5.5. http://cran2.arsmachinandi.it/doc/packages/lpSolve.pdf
[4]
Bivens, M. P. and Soffa, M. L. 1990. Incremental register allocation. Softw. Pract. Exp. 20, 10, 1015--1047.
[5]
Callaway, Jr., E. H. 2003. Wireless Sensor Networks: Architectures and Protocols. CRC Press, Boca Raton, FL.
[6]
Chaitin, G. J., Auslander, M. A., Chandra, A. K., Cocke, J., Hopkins, M. E., and Markstein, P. W. 1981. Register allocation via coloring. Comput. Lang. 6, 45--57.
[7]
Chow, F. and Hennessy, J. 1984. Register allocation by priority-based coloring. In Proceedings of the ACM SIGPLAN Symposium on Compiler Construction. ACM, New York, 222--232.
[8]
Crossbow. HMica2 Wireless Measurement System. http://www.xbow.com.
[9]
Dai, W. The Crypto++ Library. http://www.eskimo.com/weidai/cryptlib.html
[10]
Diffutils. Home page. http://www.gnu.org/software/diffutils
[11]
Dunkels, A., Finne, N., Eriksson, J., and Voigt, T. 2006. Runtime dynamic linking for reprogramming wireless sensor networks. In Proceedings of the ACM International Conference on Embedded Networked Sensor Systems (SenSys'06). ACM, New York, 15--28.
[12]
Dutta, P. K., Hui, J. W., Chu, D. C., and Culler, D. E. 2006. Securing the deluge network programming system. In Proceedings of the International Symposium on Information Processing in Sensor Networks (IPSN'06). ACM, New York, 326--333.
[13]
Goodwin, D. W. and Wilken, K. D. 1996. Optimal and near-optimal global register allocations using 0/1 integer programming. Softw. Pract. Exp. 26, 8, 929--965.
[14]
George, L. and Appel, A. W. 1996. Iterated register coalescing. ACM Trans. Program. Lang. Syst. 18, 3, 300--324.
[15]
Hui, J. W. and Culler, D. E. 2004. The dynamic behavior of a data dissemination protocol for network programming at scale. In Proceedings of the ACM International Conference on Embedded Networked Sensor Systems (SenSys'04). ACM, New York, 81--94.
[16]
Jeong, J. and Culler, D. E. 2004. Incremental network programming for wireless sensors. In Proceedings of the 1st Annual IEEE Sensor and Ad Hoc Communications and Networks (SECON'04). IEEE, Los Alamitos, CA, 25--33.
[17]
Juang, P., Oki, H., Wang, Y., Martonosi, M., Peh, L-S., and Rubenstein, D. 2002. Energy efficient computing for wildlife tracking: Design tradeoffs and early experiences with ZebraNet. In Proceedings of the ACM/IEEE International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS'02). ACM, New York, 96--107.
[18]
Kahn, J. M., Katz, R. H., and Pister, K. S. J. 2000. Emerging challenges: Mobile networking for “Smart Dust.” J. Comm. Netw. 2, 3, 188--196.
[19]
Koes, D. R. and Goldsteinm, S. C. 2006. A global progressive register allocator. In Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI'06). ACM, New York, 204--215.
[20]
Koshy, J. and Pandey, R. 2005. Remote incremental linking for energy-efficient reprogramming of sensor networks. In Proceedings of the European Workshop on Wireless Sensor Networks. Springer, Berlin, 354--365.
[21]
Kulkarni, S. S. and Wang, L. 2005. Mnp: Multihop network reprogramming service for sensor networks. In Proceedings of the International Conference on Distributed Computing Systems (ICDCS'05). IEEE, Los Alamitos, CA.
[22]
Lanigan, P. E., Gandhi, R., and Narasimhan, P. 2006. Sluice: Secure dissemination of code updates in sensor networks. In Proceedings of the International Conference on Distributed Computing Systems (ICDCS'06). IEEE, Los Alamitos, CA.
[23]
Lee, C., Potkonjak, M., and Mangione-Smith, W. H. 1997. MediaBench: A tool for evaluating and synthesizing multimedia and communications systems. In Proceedings of the International Symposium on Microarchitecture (MICRO'97). IEEE, Los Alamitos, CA, 330--335.
[24]
Levis, P. and Culler, D. 2002. Mate: A tiny virtual machine for sensor networks. In Proceedings of the International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS'02). ACM, New York, 85--95.
[25]
Liao, S., Devadas, S., Keutzer, K., Tjiang, S., and Wang, A. 1995. Storage assignment to decrease code size. In Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI'95). ACM, New York, 235--253.
[26]
Naik, M. and Palsberg, J. 2002. Compiling with code-size constraints. In Proceedings of the ACM SIGPLAN/SIGBED Conference on Languages, Compilers, and Tools for Embedded Systems (LCTES'02). ACM, New York, 120--129.
[27]
Marron, P. J., Gauger, M., Lachenmann, A., Minder, D., Saukh, O., and Rothermel, K. 2006. FlexCup: A flexible and efficient code update mechanism for sensor networks. In Proceedings of the European Workshop on Wireless Sensor Networks (EWSN'06). Springer, Berlin, 212--227.
[28]
Nonlinear Mixed Integer Programming. Welcome to the Bonim Wiki. http://projects.coin-or.org/Bonmin
[29]
Panta, R. K., Khalil, I., and Bagchi, S. 2007. Stream: Low overhead wireless reprogramming for sensor networks. In Proceedings of the IEEE Conference on Computer Communications (Infocom'07). IEEE, Los Alamitos, CA.
[30]
von Platen, C. and Eker, J. 2006. Feedback linking: Optimizing object code layout for updates. In Proceedings of the ACM SIGPLAN/SIGBED Conference on Languages, Compilers, and Tools for Embedded Systems (LCTES'06). ACM, New York, 2--11.
[31]
Poletto, M. and Sarkar, V. 1999. Linear scan register allocation. ACM Trans. Program. Lang. Syst. 21, 5, 895--913.
[32]
Reijers, N. and Langendoen, K. 2003. Efficient code distribution in wireless sensor networks. In Proceedings of the International Workshop on Wireless Sensor Network Architecture. Springer, Berlin, 60--67.
[33]
Levis, P., Lee, N., Welsh, M., and Culler, D. 2003. TOSSIM: Accurate and scalable simulation of entire TinyOS applications. In Proceedings of the ACM Conference on Embedded Networked Sensor Systems (SenSys'03). ACM, New York, 126--137.
[34]
Shnayder, V., Hempstead, M., Chen, R.-R., Allen, G. W., and Welsh, M. 2004. Simulating the power consumption of large-scale sensor network applications. In Proceedings of the ACM Conference on Embedded Networked Sensor Systems (SenSys'04). ACM, New York, 188--200.
[35]
TinyOS. Homepage. http://www.tinyos.net
[36]
Titzer, B. L., Lee, D. K., and Palsberg, J. 2005. Avrora: Scalable sensor network simulation with precise timing. In Proceedings of the International Symposium on Information Processing in Sensor Networks (IPSN'05). ACM, New York, 477--482.
[37]
Traub, O., Holloway, G., and Smith, M. D. 1998. Quality and speed in linear-scan register Allocation. In Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI'98). ACM, New York, 142--151.
[38]
Ye, F., Zhong, G., Lu, S., and Zhang, L. 2005. Gradient broadcast: A robust data delivery protocol for large scale sens or networks. ACM Wirel. Netw. 11, 2, 285--298.
[39]
Zhuang, X. and Pande, S. 2006. Differential register allocation. In Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI'06). ACM, New York, 168--179.

Cited By

View all
  • (2023)Mapi-Pro: An Energy Efficient Memory Mapping Technique for Intermittent ComputingACM Transactions on Architecture and Code Optimization10.1145/362952420:4(1-25)Online publication date: 14-Dec-2023
  • (2022)Memory Allocation for Neural Networks using Graph ColoringProceedings of the 23rd International Conference on Distributed Computing and Networking10.1145/3491003.3498354(232-233)Online publication date: 4-Jan-2022
  • (2022)Haptic Feedback Based on Movement Smoothness Improves Performance in a Perceptual-Motor TaskIEEE Transactions on Haptics10.1109/TOH.2021.312601715:2(382-391)Online publication date: 1-Apr-2022
  • Show More Cited By

Index Terms

  1. Towards update-conscious compilation for energy-efficient code dissemination in WSNs

      Recommendations

      Reviews

      Hua-Yi Lin

      In this paper, Li et al. propose an update-conscious compilation (UCC) mechanism that reduces and minimizes the code size from the optimized intermediate representation (IR) stage to the binary code generation stage. The main contribution of the proposed mechanism is to improve the code similarity and register allocation (RA), which leads to a smaller update script. Additionally, it proposes script dissemination schemes-including simple primitive, shift primitive, and clone primitive-that effectively reduce energy consumption. Li et al. exploit register management schemes to lower the utilization of power. Eventually, the study uses a Mica2 sensor node with TinyOS to perform the code update benchmark for slight, medium, and large changes. The experiment evaluates the dissemination cost between the UCC-RA and the GNU C compiler RA (GCC-RA). The simulation results indicate that the UCC-RA outperforms the GCC-RA with regard to code difference, code quality, and energy consumption. Overall, the paper provides several schemes that reduce the consumption of energy for wireless sensor networks (WSNs), and it implements testing scenarios to perform the proposed operations. According to the simulation results, the proposed mechanism effectively reduces code transmission traffic and energy consumption. The paper has a fine structure, and it includes methodologies and analyses. Therefore, I recommend it. Online Computing Reviews Service

      Access critical reviews of Computing literature here

      Become a reviewer for Computing Reviews.

      Comments

      Information & Contributors

      Information

      Published In

      cover image ACM Transactions on Architecture and Code Optimization
      ACM Transactions on Architecture and Code Optimization  Volume 6, Issue 4
      October 2009
      115 pages
      ISSN:1544-3566
      EISSN:1544-3973
      DOI:10.1145/1596510
      Issue’s Table of Contents
      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      Published: 29 October 2009
      Accepted: 01 June 2009
      Received: 01 September 2008
      Published in TACO Volume 6, Issue 4

      Permissions

      Request permissions for this article.

      Check for updates

      Author Tags

      1. Register allocation
      2. code dissemination
      3. sensor networks

      Qualifiers

      • Research-article
      • Research
      • Refereed

      Funding Sources

      Contributors

      Other Metrics

      Bibliometrics & Citations

      Bibliometrics

      Article Metrics

      • Downloads (Last 12 months)66
      • Downloads (Last 6 weeks)12
      Reflects downloads up to 08 Feb 2025

      Other Metrics

      Citations

      Cited By

      View all
      • (2023)Mapi-Pro: An Energy Efficient Memory Mapping Technique for Intermittent ComputingACM Transactions on Architecture and Code Optimization10.1145/362952420:4(1-25)Online publication date: 14-Dec-2023
      • (2022)Memory Allocation for Neural Networks using Graph ColoringProceedings of the 23rd International Conference on Distributed Computing and Networking10.1145/3491003.3498354(232-233)Online publication date: 4-Jan-2022
      • (2022)Haptic Feedback Based on Movement Smoothness Improves Performance in a Perceptual-Motor TaskIEEE Transactions on Haptics10.1109/TOH.2021.312601715:2(382-391)Online publication date: 1-Apr-2022
      • (2021)Compiler-directed scratchpad memory data transfer optimization for multithreaded applications on a heterogeneous many-core architectureThe Journal of Supercomputing10.1007/s11227-021-03853-x77:12(14502-14524)Online publication date: 1-Dec-2021
      • (2019)SA-SPM: an efficient compiler for security aware scratchpad memory (invited paper)Proceedings of the 20th ACM SIGPLAN/SIGBED International Conference on Languages, Compilers, and Tools for Embedded Systems10.1145/3316482.3326347(57-69)Online publication date: 23-Jun-2019
      • (2018)RePageWireless Communications & Mobile Computing10.1155/2018/29409522018Online publication date: 1-Jan-2018
      • (2016)Head Mounted Projection Display & Visual AttentionProceedings of the 2016 CHI Conference on Human Factors in Computing Systems10.1145/2858036.2858449(1538-1547)Online publication date: 7-May-2016
      • (2015)An efficient network reprogramming protocol for wireless sensor networksComputer Communications10.1016/j.comcom.2014.08.01755:C(41-50)Online publication date: 1-Jan-2015
      • (2013)The design of sustainable wireless sensor network node using solar energy and phase change memoryProceedings of the Conference on Design, Automation and Test in Europe10.5555/2485288.2485497(869-872)Online publication date: 18-Mar-2013
      • (2013)Precise and scalable context-sensitive pointer analysis via value flow graphACM SIGPLAN Notices10.1145/2555670.246648348:11(85-96)Online publication date: 20-Jun-2013
      • Show More Cited By

      View Options

      View options

      PDF

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader

      Login options

      Full Access

      Figures

      Tables

      Media

      Share

      Share

      Share this Publication link

      Share on social media