PB071 Principles of low-level programming

Faculty of Informatics
Spring 2018
Extent and Intensity
2/2. 4 credit(s) (plus extra credits for completion). Recommended Type of Completion: zk (examination). Other types of completion: z (credit).
Teacher(s)
doc. RNDr. Petr Švenda, Ph.D. (lecturer)
Mgr. Luděk Bártek, Ph.D. (seminar tutor)
RNDr. Jiří Glozar (seminar tutor)
Miroslav Jaroš (seminar tutor)
Mgr. Jakub Kadaši (seminar tutor)
Mgr. Katarína Kejstová (seminar tutor)
Mgr. Roman Lacko (seminar tutor)
Mgr. Michal Mikloš (seminar tutor)
RNDr. Petr Ročkai, Ph.D. (seminar tutor)
RNDr. Lukáš Ručka (seminar tutor)
Mgr. Jiří Slabý, Ph.D. (seminar tutor)
Mgr. Peter Stanko (seminar tutor)
Mgr. Matúš Talčík (seminar tutor)
Mgr. Jan Tušil (seminar tutor)
Mgr. Jiří Weiser (seminar tutor)
RNDr. Michal Zima (seminar tutor)
RNDr. Aleš Zlámal (seminar tutor)
Bc. Klaudia Brišáková (seminar tutor)
Bc. Miroslav Cambel (seminar tutor)
RNDr. Antonín Dufka (seminar tutor)
Mgr. Matúš Dugáček (seminar tutor)
Matej Dujava (seminar tutor)
Bc. Zoltán Fridrich (seminar tutor)
Mgr. Samuel Gorta (seminar tutor)
Mgr. Lukáš Gryga (seminar tutor)
Mgr. Adrián Hrinko (seminar tutor)
Bc. Peter Hrvola (seminar tutor)
Mgr. Karel Chládek (seminar tutor)
Mgr. Michal Jankovič (seminar tutor)
Bc. Dominik Jochec (seminar tutor)
Mgr. Matúš Kropuch (seminar tutor)
Mgr. Gabriela Kubínová (seminar tutor)
Bc. Lukáš Kurčík (seminar tutor)
Mgr. Henrieta Micheľová (seminar tutor)
Mgr. Jozef Mikušinec (seminar tutor)
Mgr. David Myška (seminar tutor)
Mgr. Peter Navrátil (seminar tutor)
Mgr. Samuel Obuch (seminar tutor)
Mgr. Roman Oravec (seminar tutor)
Mgr. Marek Pastierik (seminar tutor)
Mgr. Martin Piatka (seminar tutor)
Mgr. Šimon Priadka (seminar tutor)
Mgr. Martin Pulec (seminar tutor)
Mgr. Marko Řeháček (seminar tutor)
Mgr. Daniel Schramm (seminar tutor)
Mgr. Bc. Roman Solař (seminar tutor)
Mgr. Stanislav Soták (seminar tutor)
RNDr. David Střelák, Ph.D. (seminar tutor)
Mgr. Denis Varga (seminar tutor)
Bc. Michal Virgovič (seminar tutor)
Matej Dujava (assistant)
Mgr. Áron Samuel Kovács (assistant)
Mgr. Imrich Nagy (assistant)
Mgr. Štěpánka Trnková (assistant)
RNDr. Martin Ukrop, Ph.D. (assistant)
Guaranteed by
doc. RNDr. Eva Hladká, Ph.D.
Department of Computer Systems and Communications – Faculty of Informatics
Supplier department: Department of Computer Systems and Communications – Faculty of Informatics
Timetable
Tue 12:00–13:50 D1, Tue 12:00–13:50 D2
  • Timetable of Seminar Groups:
PB071/01: Fri 10:00–11:50 B117, A. Zlámal
PB071/02: Tue 14:00–15:50 B117, R. Solař, A. Zlámal
PB071/03: Thu 16:00–17:50 B116, L. Bártek, P. Hrvola
PB071/04: Wed 12:00–13:50 A219, K. Brišáková, K. Chládek, J. Slabý
PB071/05: Wed 10:00–11:50 A219, J. Slabý, M. Virgovič
PB071/06: Wed 10:00–11:50 B116, H. Micheľová, M. Talčík
PB071/07: Wed 10:00–11:50 B117, P. Navrátil, M. Pulec
PB071/08: Thu 8:00–9:50 B116, A. Dufka, J. Tušil
PB071/09: Fri 8:00–9:50 B117
PB071/10: Thu 16:00–17:50 B117
PB071/11: Thu 16:00–17:50 B130, M. Cambel, M. Dujava, M. Jaroš, D. Střelák
PB071/12: Tue 16:00–17:50 B117, G. Kubínová, P. Stanko
PB071/13: Thu 8:00–9:50 B117, S. Gorta, K. Kejstová
PB071/14: Thu 18:00–19:50 B116, J. Mikušinec, J. Weiser
PB071/15: Wed 16:00–17:50 A219, M. Řeháček, M. Zima
PB071/16: Tue 14:00–15:50 B311, D. Jochec, R. Lacko
PB071/17: Tue 18:00–19:50 B117, M. Pastierik, P. Stanko
PB071/18: Fri 8:00–9:50 B116, R. Lacko, D. Myška
PB071/19: Tue 18:00–19:50 B116, M. Kropuch, P. Ročkai
PB071/20: Wed 8:00–9:50 B116, Z. Fridrich, M. Mikloš
PB071/21: Wed 18:00–19:50 A215, M. Dugáček, A. Hrinko, M. Jaroš
PB071/22: Wed 14:00–15:50 B311, L. Kurčík, R. Lacko
PB071/23: Wed 12:00–13:50 B116, M. Pulec, S. Soták
PB071/24: Thu 10:00–11:50 B116, L. Gryga, J. Tušil
PB071/25: Thu 10:00–11:50 A219, D. Schramm, M. Zima
PB071/26: Tue 16:00–17:50 B116, M. Jankovič, P. Ročkai
PB071/27: Wed 8:00–9:50 B117
PB071/28: Wed 14:00–15:50 B116, J. Kadaši, R. Oravec
PB071/29: Wed 16:00–17:50 B117
PB071/30: Tue 14:00–15:50 B116, K. Kejstová, Š. Priadka
PB071/31: Thu 18:00–19:50 B117, M. Jaroš, S. Obuch
PB071/32: Wed 18:00–19:50 A219, D. Varga, J. Weiser
PB071/33: Thu 14:00–15:50 B116, M. Mikloš
PB071/34: Fri 10:00–11:50 B116
Prerequisites
IB001 Intro to Prog. using C || IB111 Foundations of Programming || IB999 Programming Test
Students are expected to have knowledge of algorithmization in Pascal or another procedural language. Students are also required to have user experience with Unix OS, as homework is submitted and tested on a Unix 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
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 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. Advanced 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. Online. 3. upr. vyd. České Budějovice: KOPP, 1996. 269 s. ISBN 80-85828-21-9. [citováno 2024-04-24] info
  • HEROUT, Pavel. Učebnice jazyka C.. Online. České Budějovice: KOPP, 1998. 236 s. ISBN 80-85828-50-2. [citováno 2024-04-24] info
  • DRESSLER, Miroslav. Programovací jazyky GNU : volně šiřitelná programátorská prostředí : Fortran, jazyk C, Pascal, GRX, DJGPP, RHIDE, RSX, VESA, EMX, MAKE. Online. 1. vyd. Praha: Computer Press, 1998. xix, 225. ISBN 8072260707. [citováno 2024-04-24] 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
During the whole semester, student will undertake 5 programming homework, one written tests and one final programming exercise. 95 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 2019, Spring 2020, Spring 2021, Spring 2022, Spring 2023, Spring 2024.
  • Enrolment Statistics (Spring 2018, recent)
  • Permalink: https://is.muni.cz/course/fi/spring2018/PB071