Skriptspråk i utvecklingen av inbyggda system: En utvärdering av Python
2025 (Swedish)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE credits
Student thesisAlternative title
Scripting Language in Development of Embedded Systems : An Evaluation of Python (English)
Abstract [sv]
Denna studie undersöker användbarheten av skriptspråk som ett alternativ till kompilerade språk i utvecklingen av inbyggda system. Arbetet jämför Python och C, som representanter för respektive språk, genom empiriska tester av prestanda inom tre områden: exekveringstid, minneshantering och avbrottshantering. Resultaten visar att C, som kompilerat språk, generellt erbjuder högre prestanda och effektivitet, särskilt i resurskritiska applikationer, medan Python erbjuder kortare utvecklingstid och högre användarvänlighet. Studien inkluderar även en analys av tillgången till bibliotek och kostnadsbilden för utvecklingsverktyg, där Python visade styrka med ett omfattande ekosystem av tredjepartsbibliotek. Slutsatsen är att Python kan vara ett praktiskt alternativ i vissa inbyggda system, särskilt de med mjuka realtidskrav eller där snabb utveckling prioriteras, men C förblir det bättre valet för högprestandasystem.
Abstract [en]
This study explores the usability of scripting languages as an alternative to compiled languages in the development of embedded systems. The work compares Python and C, representing their respective language types, through empirical performance tests across three areas: execution time, memory management, and interrupt handling. The results indicate that C, as a compiled language, generally offers higher performance and efficiency, particularly in resource-critical applications, whereas Python provides shorter development times and greater user-friendliness. The study also includes an analysis of library availability and the cost landscape of development tools, where Python demonstrated strength with an extensive ecosystem of third-party libraries. The conclusion is that Python can be a practical alternative in certain embedded systems, especially those with soft real-time requirements or where rapid development is prioritized, but C remains the superior choice for high-performance systems.
Place, publisher, year, edition, pages
2025. , p. 77
Series
TRITA-CBH-GRU ; 2025:009
Keywords [en]
Python, C, embedded systems, execution time, memory management, interrupt handling, real-time systems, scripting languages, compiled languages, development cost
Keywords [sv]
Python, C, inbyggda system, exekveringstid, minneshantering, avbrottshantering, realtidssystem, skriptspråk, kompilerade språk, utvecklingskostnad
National Category
Embedded Systems
Identifiers
URN: urn:nbn:se:kth:diva-359687OAI: oai:DiVA.org:kth-359687DiVA, id: diva2:1935796
External cooperation
Zenon AB
Subject / course
Embedded System Design
Educational program
Bachelor of Science in Engineering - Electrical Engineering and Economics
Supervisors
Examiners
2025-02-102025-02-072025-02-10Bibliographically approved