{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,29]],"date-time":"2026-09-29T12:04:12Z","timestamp":1790683452285,"version":"4.1.0"},"reference-count":46,"publisher":"Association for Computing Machinery (ACM)","issue":"4","license":[{"start":{"date-parts":[[2010,4,1]],"date-time":"2010-04-01T00:00:00Z","timestamp":1270080000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/501100001352","name":"National University of Singapore","doi-asserted-by":"publisher","award":["R252-000-321-112"],"award-info":[{"award-number":["R252-000-321-112"]}],"id":[{"id":"10.13039\/501100001352","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Program. Lang. Syst."],"published-print":{"date-parts":[[2010,4]]},"abstract":"<jats:p>Software-controlled scratchpad memory is increasingly employed in embedded systems as it offers better timing predictability compared to caches. Previous scratchpad allocation algorithms typically consider single-process applications. But embedded applications are mostly multitasking with real-time constraints, where the scratchpad memory space has to be shared among interacting processes that may preempt each other. In this work, we develop a novel dynamic scratchpad allocation technique that takes these process interferences into account to improve the performance and predictability of the memory system. We model the application as a Message Sequence Chart (MSC) to best capture the interprocess interactions. Our goal is to optimize the Worst-Case Response Time (WCRT) of the application through runtime reloading of the scratchpad memory content at appropriate execution points. We propose an iterative allocation algorithm that consists of two critical steps: (1) analyze the MSC along with the existing allocation to determine potential interference patterns, and (2) exploit this interference information to tune the scratchpad reloading points and content so as to best improve the WCRT. We present various alternative scratchpad allocation heuristics and evaluate their effectiveness in reducing the WCRT. The scheme is also extended to work on Message Sequence Graph models. We evaluate our memory allocation scheme on two real-world embedded applications controlling an Unmanned Aerial Vehicle (UAV) and an in-orbit monitoring instrument, respectively.<\/jats:p>","DOI":"10.1145\/1734206.1734210","type":"journal-article","created":{"date-parts":[[2010,5,6]],"date-time":"2010-05-06T17:41:18Z","timestamp":1273167678000},"page":"1-47","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":28,"title":["Scratchpad allocation for concurrent embedded software"],"prefix":"10.1145","volume":"32","author":[{"given":"Vivy","family":"Suhendra","sequence":"first","affiliation":[{"name":"Institute for Infocomm Research, Singapore"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Abhik","family":"Roychoudhury","sequence":"additional","affiliation":[{"name":"National University of Singapore, Singapore"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Tulika","family":"Mitra","sequence":"additional","affiliation":[{"name":"National University of Singapore, Singapore"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2010,4,22]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Proceedings of the 10th International Conference on Concurrency Theory (CONCUR), J. C. Baeten and S. Mauw, Eds. Springer. 114--129","author":"Alur R.","unstructured":"Alur , R. and Yannakakis , M . 1999. Model checking message sequence charts . In Proceedings of the 10th International Conference on Concurrency Theory (CONCUR), J. C. Baeten and S. Mauw, Eds. Springer. 114--129 . Alur, R. and Yannakakis, M. 1999. Model checking message sequence charts. In Proceedings of the 10th International Conference on Concurrency Theory (CONCUR), J. C. Baeten and S. Mauw, Eds. Springer. 114--129."},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/1023833.1023869"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1109\/2.982917"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/581888.581891"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/774789.774805"},{"key":"e_1_2_1_6_1","unstructured":"CPLEX. 2002. The ILOG CPLEX Optimizer v7.5. Commercial software http:\/\/www.ilog.com.  CPLEX. 2002. The ILOG CPLEX Optimizer v7.5. Commercial software http:\/\/www.ilog.com."},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1109\/ECRTS.2007.37"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.5555\/1233791.1233799"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/1176760.1176788"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/1331331.1331335"},{"key":"e_1_2_1_11_1","unstructured":"European Space Agency. 2008. DEBIE -- First standard space debris monitoring instrument. http:\/\/gate.etamax.de\/edid\/publicaccess\/debie1.php.  European Space Agency. 2008. DEBIE -- First standard space debris monitoring instrument. http:\/\/gate.etamax.de\/edid\/publicaccess\/debie1.php."},{"key":"e_1_2_1_12_1","volume-title":"Proceedings of the 8th International Workshop on Software and Compilers for Embedded Systems (SCOPES), H. Schepers, Ed. Springer. 137--151","author":"Falk H.","unstructured":"Falk , H. and Verma , M . 2004. Combined data partitioning and loop nest splitting for energy consumption minimization . In Proceedings of the 8th International Workshop on Software and Compilers for Embedded Systems (SCOPES), H. Schepers, Ed. Springer. 137--151 . Falk, H. and Verma, M. 2004. Combined data partitioning and loop nest splitting for energy consumption minimization. In Proceedings of the 8th International Workshop on Software and Compilers for Embedded Systems (SCOPES), H. Schepers, Ed. Springer. 137--151."},{"key":"e_1_2_1_13_1","doi-asserted-by":"crossref","unstructured":"Harel D. and Thiagarajan P. S. 2003. Message sequence charts. In UML for Real: Design of Embedded Real-time Systems. 77--105.   Harel D. and Thiagarajan P. S. 2003. Message sequence charts. In UML for Real: Design of Embedded Real-time Systems. 77--105.","DOI":"10.1007\/0-306-48738-1_4"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/1146909.1146925"},{"key":"e_1_2_1_15_1","volume-title":"Message Sequence Chart (MSC). ITU-T","author":"Recommendation Z.","unstructured":"ITU-T. 1996. Recommendation Z. 120 : Message Sequence Chart (MSC). ITU-T , Geneva . ITU-T. 1996. Recommendation Z.120: Message Sequence Chart (MSC). ITU-T, Geneva."},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/1118299.1118443"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.5555\/1326073.1326106"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/500001.500004"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/1023833.1023838"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/513918.513974"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1109\/TCAD.2003.822123"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1109\/12.689649"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2007.01.014"},{"key":"e_1_2_1_24_1","volume-title":"Proceedings of the Conference on Asia South Pacific Design Automation (ASP-DAC). IEEE Press, 4--11","author":"Marwedel P.","unstructured":"Marwedel , P. , Wehmeyer , L. , Verma , M. , Steinke , S. , and Helmig , U . 2004. Fast, predictable and low energy memory references through architecture-aware compilation . In Proceedings of the Conference on Asia South Pacific Design Automation (ASP-DAC). IEEE Press, 4--11 . Marwedel, P., Wehmeyer, L., Verma, M., Steinke, S., and Helmig, U. 2004. Fast, predictable and low energy memory references through architecture-aware compilation. In Proceedings of the Conference on Asia South Pacific Design Automation (ASP-DAC). IEEE Press, 4--11."},{"key":"e_1_2_1_25_1","doi-asserted-by":"crossref","unstructured":"Mitra T. and Roychoudhury A. 2007. Worst case execution time and energy analysis. In The Compiler Design Handbook: Optimizations and Machine Code Generation 2nd Ed. Y. Srikant and P. Shankar Eds. CRC Press Boca Raton FL Chapter 1.  Mitra T. and Roychoudhury A. 2007. Worst case execution time and energy analysis. In The Compiler Design Handbook: Optimizations and Machine Code Generation 2nd Ed. Y. Srikant and P. Shankar Eds. CRC Press Boca Raton FL Chapter 1.","DOI":"10.1201\/9781420043839.ch1"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/944645.944698"},{"key":"e_1_2_1_27_1","volume-title":"Proceedings of the 6th International Workshop on Worst-Case Execution Time Analysis (WCET), F. Mueller Ed. Internationales Begegnungs- und Forschungszentrum fuer Informatik (IBFI)","author":"Nemer F.","unstructured":"Nemer , F. , Cass\u00e9 , H. , Sainrat , P. , Bahsoun , J.-P. , and Michiel , M. D . 2006. PapaBench: A free real-time benchmark . In Proceedings of the 6th International Workshop on Worst-Case Execution Time Analysis (WCET), F. Mueller Ed. Internationales Begegnungs- und Forschungszentrum fuer Informatik (IBFI) , Schloss Dagstuhl, Germany. http:\/\/www.irit.fr\/recherches\/ARCHI\/MARCH\/rubrique.php3?id\\_rubrique=97. Nemer, F., Cass\u00e9, H., Sainrat, P., Bahsoun, J.-P., and Michiel, M. D. 2006. PapaBench: A free real-time benchmark. In Proceedings of the 6th International Workshop on Worst-Case Execution Time Analysis (WCET), F. Mueller Ed. Internationales Begegnungs- und Forschungszentrum fuer Informatik (IBFI), Schloss Dagstuhl, Germany. http:\/\/www.irit.fr\/recherches\/ARCHI\/MARCH\/rubrique.php3?id\\_rubrique=97."},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/1086297.1086313"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1109\/ISQED.2006.115"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/348019.348570"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1109\/ECRTS.2006.32"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1109\/CGO.2005.13"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/1017753.1017798"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/581199.581247"},{"key":"e_1_2_1_35_1","volume-title":"Proceedings of the Design, Automation and Test in Europe (DATE) Conference. IEEE Computer Society, 409","author":"Steinke S.","unstructured":"Steinke , S. , Wehmeyer , L. , Lee , B. S. , and Marwedel , P . 2002b. Assigning program and data objects to scratchpad for energy reduction . In Proceedings of the Design, Automation and Test in Europe (DATE) Conference. IEEE Computer Society, 409 . Steinke, S., Wehmeyer, L., Lee, B. S., and Marwedel, P. 2002b. Assigning program and data objects to scratchpad for energy reduction. In Proceedings of the Design, Automation and Test in Europe (DATE) Conference. IEEE Computer Society, 409."},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/1146909.1147002"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1109\/RTSS.2005.45"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/1176760.1176809"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/334012.334025"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/951710.951747"},{"key":"e_1_2_1_41_1","volume-title":"Proceedings of the 3rd Workshop on Embedded Systems for Real-Time Multimedia (ESTIMedia). M. Miranda and S. Ha, Eds. IEEE Computer Society, 115--120","author":"Verma M.","unstructured":"Verma , M. , Petzold , K. , Wehmeyer , L. , Falk , H. , and Marwedel , P . 2005. Scratchpad sharing strategies for multiprocess embedded systems: A first approach . In Proceedings of the 3rd Workshop on Embedded Systems for Real-Time Multimedia (ESTIMedia). M. Miranda and S. Ha, Eds. IEEE Computer Society, 115--120 . Verma, M., Petzold, K., Wehmeyer, L., Falk, H., and Marwedel, P. 2005. Scratchpad sharing strategies for multiprocess embedded systems: A first approach. In Proceedings of the 3rd Workshop on Embedded Systems for Real-Time Multimedia (ESTIMedia). M. Miranda and S. Ha, Eds. IEEE Computer Society, 115--120."},{"key":"e_1_2_1_42_1","volume-title":"Proceedings of the Design, Automation and Test in Europe (DATE) Conference. IEEE Computer Society, 21264","author":"Verma M.","unstructured":"Verma , M. , Wehmeyer , L. , and Marwedel , P . 2004a. Cache-Aware scratchpad allocation algorithm . In Proceedings of the Design, Automation and Test in Europe (DATE) Conference. IEEE Computer Society, 21264 . Verma, M., Wehmeyer, L., and Marwedel, P. 2004a. Cache-Aware scratchpad allocation algorithm. In Proceedings of the Design, Automation and Test in Europe (DATE) Conference. IEEE Computer Society, 21264."},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1145\/1016720.1016748"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/1054943.1054959"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1093\/comjnl\/10.1.85"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1109\/71.735959"}],"container-title":["ACM Transactions on Programming Languages and Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1734206.1734210","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1734206.1734210","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T12:45:28Z","timestamp":1750250728000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1734206.1734210"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2010,4]]},"references-count":46,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2010,4]]}},"alternative-id":["10.1145\/1734206.1734210"],"URL":"https:\/\/doi.org\/10.1145\/1734206.1734210","relation":{},"ISSN":["0164-0925","1558-4593"],"issn-type":[{"value":"0164-0925","type":"print"},{"value":"1558-4593","type":"electronic"}],"subject":[],"published":{"date-parts":[[2010,4]]},"assertion":[{"value":"2009-03-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2009-09-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2010-04-22","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}