Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Generating documentation during compilation of simple programs
KTH, School of Electrical Engineering and Computer Science (EECS).
2019 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesisAlternative title
Generera dokumentation vid kompilering av enkla program (Swedish)
Abstract [en]

This thesis investigates if automatic generation of documentation might be possible, and attempts to create a tool that performs this through symbolic execution. It parses and analyses a subgroup of C code, with only integers, if-else and basic operations allowed, and attempts to create comments about the code that would aid programmers in understanding said code. One of the obstacles found was the difficulty in efficiently storing variable information. The solution for this was found, as well as improving the format on comments generated. Finally, a new strategy is presented for dealing with while-loops in the future. While not all obstacles were circumvented, the experiment produced documentation different than source code and can be deemed worthy of more attention in the future.

Abstract [sv]

Denna uppsats undersöker om automatisk dokumentering är möjlig, och försöker skapa ett verktyg som utför detta med hjälp av symbolisk exekvering. Verktyget parsar och analyserar en delgrupp av C-kod, där endast heltal, if-else och enklare aritmetiska operationer är tillåtna. Program inom denna delgrupp försöks sedan sammanfattas och presenteras pedagogiskt. Ett av flera hinder som stöttes på var svårigheten i att effektivt lagra information om variabler. Lösningar och genvägar kring detta hittades, och även förbättringar på formatet som resultatet presenteras i. En metod för framtida hantering av loopar beskrevs kort. Även om inte alla hinder kunde undvikas helt lyckades projektet producera information olik den analyserade källkoden, vilket kan tyda på att projektet bör återbesökas i framtiden.

Place, publisher, year, edition, pages
2019. , p. 39
Series
TRITA-EECS-EX ; 2019:360
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-259908OAI: oai:DiVA.org:kth-259908DiVA, id: diva2:1353675
Supervisors
Examiners
Available from: 2019-10-02 Created: 2019-09-23 Last updated: 2019-10-02Bibliographically approved

Open Access in DiVA

fulltext(646 kB)1 downloads
File information
File name FULLTEXT01.pdfFile size 646 kBChecksum SHA-512
680def65ca8b48bc55d11aced597b22b8e9b9513ef67ee45ef93db1ae0a880daf525f7ac1e844d3bcf1d62a4c530fb62ce220970e6a7cfe04fe5a074f7dbb87f
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 1 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 4 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf