PB071 Principles of low-level programming

Faculty of Informatics
Spring 2022
Extent and Intensity
2/2/1. 4 credit(s) (plus extra credits for completion). Recommended Type of Completion: zk (examination). Other types of completion: z (credit).
Taught in person.
Teacher(s)
doc. RNDr. Petr Švenda, Ph.D. (lecturer)
Mgr. Roman Lacko (seminar tutor)
Mgr. Luděk Bártek, Ph.D. (seminar tutor)
Bc. Patrik Bašo (seminar tutor)
Bc. Martin Bendel (seminar tutor)
Bc. Adéla Bierská (seminar tutor)
Bc. Stanislav Boboň (seminar tutor)
Bc. Martin Bučo (seminar tutor)
Bc. Patrik Čelko (seminar tutor)
Mgr. Ján Dovjak (seminar tutor)
Bc. Juraj Fiala (seminar tutor)
Bc. Matej Focko (seminar tutor)
Bc. Jozef Gajdoš (seminar tutor)
Mgr. Sandra Galovičová (seminar tutor)
Mgr. Samuel Gorta (seminar tutor)
Bc. Kristína Hanicová (seminar tutor)
Mgr. Adam Ivora (seminar tutor)
Bc. Tomáš Jaroš (seminar tutor)
Mgr. Vojtěch Jelínek (seminar tutor)
Bc. Tomáš Jusko (seminar tutor)
Bc. Petr Kadlec (seminar tutor)
Bc. Vladimír Korenčik (seminar tutor)
Martin Krebs (seminar tutor)
Bc. Tomáš Krchňák (seminar tutor)
Bc. Filip Kučerák (seminar tutor)
Oliver Leško (seminar tutor)
Martin Mackovík (seminar tutor)
Bc. Juraj Marcin (seminar tutor)
Dominik Masár (seminar tutor)
Bc. Ota Mikušek (seminar tutor)
Ing. Erik Moravec (seminar tutor)
Adam Mydla (seminar tutor)
Mgr. Imrich Nagy (seminar tutor)
Mgr. Peter Navrátil (seminar tutor)
Bc. Bruno Petrus (seminar tutor)
Bc. Jonáš Rosecký (seminar tutor)
Bc. Daniel Rozehnal (seminar tutor)
RNDr. Lukáš Ručka (seminar tutor)
Mgr. Radoslav Sabol (seminar tutor)
Bc. Jindřich Sedláček (seminar tutor)
Mgr. Bc. Roman Solař (seminar tutor)
Mgr. Peter Stanko (seminar tutor)
Mgr. Adam Štěpánek (seminar tutor)
Bc. Dávid Šutor (seminar tutor)
Ing. Bc. et Bc. Přemysl Till (seminar tutor)
Mgr. Denis Varga (seminar tutor)
Bc. Tomáš Vondrák (seminar tutor)
Vladimír Žbánek (seminar tutor)
Bc. Tamara Čierniková (assistant)
Bc. Veronika Hanulíková (assistant)
Bc. Lubomír Hrbáček (assistant)
Mgr. Patrick Ondika (assistant)
Vojtěch Škaroupka (assistant)
Guaranteed by
doc. RNDr. Petr Švenda, Ph.D.
Department of Computer Systems and Communications – Faculty of Informatics
Supplier department: Department of Computer Systems and Communications – Faculty of Informatics
Timetable
Mon 14. 2. to Mon 9. 5. Mon 12:00–13:50 D1, Mon 12:00–13:50 D2
  • Timetable of Seminar Groups:
PB071/01: Tue 15. 2. to Tue 10. 5. Tue 8:00–9:50 B116, L. Bártek
PB071/02: Wed 16. 2. to Wed 11. 5. Wed 10:00–11:50 B116, L. Bártek
PB071/03: Wed 16. 2. to Wed 11. 5. Wed 14:00–15:50 A219, S. Gorta, V. Korenčik
PB071/04: Tue 15. 2. to Tue 10. 5. Tue 16:00–17:50 B311, S. Gorta, D. Rozehnal
PB071/05: Tue 15. 2. to Tue 10. 5. Tue 16:00–17:50 A219, A. Ivora
PB071/06: Wed 16. 2. to Wed 11. 5. Wed 16:00–17:50 A219, V. Jelínek, V. Korenčik
PB071/07: Thu 17. 2. to Thu 12. 5. Thu 12:00–13:50 B116, P. Kadlec, D. Masár
PB071/08: Tue 15. 2. to Tue 10. 5. Tue 12:00–13:50 B116, T. Jaroš, P. Kadlec
PB071/09: Tue 15. 2. to Tue 10. 5. Tue 12:00–13:50 A215, F. Kučerák, R. Lacko, D. Rozehnal
PB071/10: Wed 16. 2. to Wed 11. 5. Wed 12:00–13:50 A215, J. Gajdoš, R. Lacko, B. Petrus
PB071/11: Mon 14. 2. to Mon 9. 5. Mon 18:00–19:50 B116, J. Fiala, I. Nagy, J. Sedláček
PB071/12: Wed 16. 2. to Wed 11. 5. Wed 16:00–17:50 B116, S. Galovičová, P. Navrátil
PB071/13: Mon 14. 2. to Mon 9. 5. Mon 16:00–17:50 B116, J. Gajdoš, J. Rosecký
PB071/14: Tue 15. 2. to Tue 10. 5. Tue 16:00–17:50 A215, O. Leško, J. Rosecký
PB071/15: Wed 16. 2. to Wed 11. 5. Wed 16:00–17:50 A215, S. Boboň, M. Krebs, L. Ručka
PB071/16: Wed 16. 2. to Wed 11. 5. Wed 10:00–11:50 B117, M. Bučo, L. Ručka
PB071/17: Tue 15. 2. to Tue 10. 5. Tue 14:00–15:50 B116, P. Bašo, O. Mikušek, R. Sabol
PB071/18: Wed 16. 2. to Wed 11. 5. Wed 18:00–19:50 A219, J. Fiala, A. Mydla, R. Sabol
PB071/19: Fri 18. 2. to Fri 13. 5. Fri 14:00–15:50 A219, R. Solař, V. Žbánek
PB071/20: Tue 15. 2. to Tue 10. 5. Tue 10:00–11:50 B117, P. Čelko, R. Solař
PB071/21: Tue 15. 2. to Tue 10. 5. Tue 18:00–19:50 C525, T. Jusko, P. Stanko, Záložní skupina
PB071/22: Tue 15. 2. to Tue 10. 5. Tue 10:00–11:50 B116, P. Bašo, A. Štěpánek
PB071/23: Mon 14. 2. to Mon 9. 5. Mon 16:00–17:50 A215, M. Mackovík, P. Till
PB071/24: Wed 16. 2. to Wed 11. 5. Wed 12:00–13:50 B411, P. Čelko, P. Till, Záložní skupina
PB071/25: Wed 16. 2. to Wed 11. 5. Wed 18:00–19:50 A215, T. Jusko, D. Varga
PB071/26: Tue 15. 2. to Tue 10. 5. Tue 18:00–19:50 A215, M. Bendel
PB071/27: Thu 17. 2. to Thu 12. 5. Thu 18:00–19:50 A318, M. Bendel, Záložní skupina
PB071/28: Mon 14. 2. to Mon 9. 5. Mon 18:00–19:50 B311, K. Hanicová
PB071/29: Tue 15. 2. to Tue 10. 5. Tue 14:00–15:50 A215, A. Bierská, K. Hanicová
PB071/30: Wed 16. 2. to Wed 11. 5. Wed 12:00–13:50 A219, A. Bierská, O. Leško
PB071/31: Thu 17. 2. to Thu 12. 5. Thu 18:00–19:50 A219, S. Boboň
PB071/32: Wed 16. 2. to Wed 11. 5. Wed 14:00–15:50 B116, J. Dovjak, E. Moravec
PB071/33: Fri 18. 2. to Fri 13. 5. Fri 10:00–11:50 B116, M. Focko
PB071/34: Fri 18. 2. to Fri 13. 5. Fri 12:00–13:50 B410, M. Focko, Záložní skupina
PB071/35: Wed 16. 2. to Wed 11. 5. Wed 8:00–9:50 B116, T. Krchňák
PB071/36: Thu 17. 2. to Thu 12. 5. Thu 8:00–9:50 B116, J. Marcin
PB071/37: Fri 18. 2. to Fri 13. 5. Fri 8:00–9:50 A215, D. Šutor
PB071/38: Tue 15. 2. to Tue 10. 5. Tue 12:00–13:50 A219, T. Vondrák
Prerequisites
Students are expected to have the basic knowledge of algorithmization in Python or another procedural language. Students are also required to have user experience with Unix/Linux OS, as homework is submitted and tested on a Unix/Linux server.
Course Enrolment Limitations
The course is also offered to the students of the fields other than those the course is directly associated with.
fields of study / plans the course is directly associated with
there are 60 fields of study the course is directly associated with, display
Course objectives
At the end of the course students should be able to:
Understand and use basic C syntax according to ANSI and ISO/IEC norms.
Decompose given problem and perform practical implementation.
Use modern development tools (IDE, debugger, version control...).
Understand basic C functions for POSIX system.
Annotate source code with possibility to automatically generate documentation. Understand and practically use documentation for existing functions.
Use and follow programming best practices.
Compile programs both under Unix/Linux and Windows.
Learning outcomes
After a course completion, the student will be able to:
- write non-trivial programs in C language;
- use basic development tools including IDE, debugger, versioning system and dynamic analysis of memory use;
- understand code execution on the level of CPU and memory;
- use dynamic allocation and apply correct deallocation where necessary;
- write programs with an application of good programming practices;
Syllabus
  • Historical background of the C language. Its relation to the Unix OS.
  • C compilers under Unix and MS-DOS/MS-Windows, integrated development environment, debugger, version control. Good programming practices, testing.
  • Data types, constants, declarations, expressions. Assignment expressions and statements.
  • Basic program structure. Preprocessor statements. Comments. Control structures. Relational expressions. Elementary I/O operations.
  • Arrays and pointers. Functions. Calling by value, passing arguments by pointer.
  • User defined data types. Dynamic memory allocation.
  • I/O in details. Using files. Wide characters.
  • Strings and string manipulation. Standard C library according to ANSI and ISO/IEC standards. Calling Unix core services. Further Unix libraries for C. POSIX C Library. Implementation on Windows.
  • Safe and defensive programming.
  • Automated and manual testing.
Literature
  • Kernighan, Brian W. - Ritchie, Dennis M. Programovací jazyk C. Brno: Computer Press, 2006. ISBN 80-251-0897-X
  • HEROUT, Pavel. Učebnice jazyka C. 3. upr. vyd. České Budějovice: KOPP. 269 s. ISBN 80-85828-21-9. 1996. info
  • HEROUT, Pavel. Učebnice jazyka C. České Budějovice: KOPP. 236 s. ISBN 80-85828-50-2. 1998. info
  • DRESSLER, Miroslav. Programovací jazyky GNU : volně šiřitelná programátorská prostředí : Fortran, jazyk C, Pascal, GRX, DJGPP, RHIDE, RSX, VESA, EMX, MAKE. 1. vyd. Praha: Computer Press. xix, 225. ISBN 8072260707. 1998. info
Bookmarks
https://is.muni.cz/ln/tag/FI:PB071!
Teaching methods
Teaching consists from theoretical lectures combined with the practical exercises and programming homework selected to practice topics from lectures.
Assessment methods
To be allowed to participate in final exam, a student student will undertake 6 programming homework (at least four of them for non-zero points) and participate in one final programming exercise consisting of test and practical programming exercise. 85 points are required to pass the course in addition to successful completion of requirements of practical exercises.
The students are working on given homework (usually finalized at home or in computer lab). Homework are awarded by point according to given criteria. Recommended finalization is exam, which is maintained as test questionnaire on computer. Precondition for undertake exam is to have awarded credit from practical exercises and autonomously programmed final assignment. Classification is based on points gathered from exercises, test questionnaire and final assignment. Participation on practical exercises is mandatory, unless teacher allows for exception (e.g., based on student exceptional knowledge of the subject).
Language of instruction
Czech
Follow-Up Courses
Further comments (probably available only in Czech)
Study Materials
The course is taught annually.
Listed among pre-requisites of other courses
Teacher's information
https://www.fi.muni.cz/pb071/
The course is also listed under the following terms Autumn 2002, Spring 2003, Spring 2004, Spring 2005, Spring 2006, Spring 2007, Spring 2008, Spring 2009, Spring 2010, Spring 2011, Autumn 2011, Spring 2012, Autumn 2012, Spring 2013, Autumn 2013, Spring 2014, Spring 2015, Spring 2016, Spring 2017, Spring 2018, Spring 2019, Spring 2020, Spring 2021, Spring 2023, Spring 2024.
  • Enrolment Statistics (Spring 2022, recent)
  • Permalink: https://is.muni.cz/course/fi/spring2022/PB071