
Автор: Slawomir Grys
Издательство: CRC Press
Год: 2024
Страниц: 213
Язык: английский
Формат: pdf (true)
Размер: 10.2 MB
Computer Arithmetic in Practice: Exercises and Programming is a simple, brief introductory volume for undergraduate and graduate students at university courses interested in understanding the foundation of computers. It is focused on numeric data formats and capabilities of computers to perform basic arithmetic operations. This book provides an accessible overview of common data formats used to write numbers in programming languages and how the computer performs four basic arithmetic operations from the point of view of the processor instruction set. The book is primarily didactic in nature, therefore the theoretical information is enriched with many numerical examples and exercises to be solved using a ‘sheet of paper and a pencil’. Answers are provided for most of the tasks. The theoretical discussed issues are illustrated by listings of algorithms presenting the way to implement arithmetic operations in low-level language. It allows development of the skills of optimal programming, taking into consideration the computer architecture and limitations. The assembly language is a low-level programming language but assembler is a software responsible just for translating source code directly to the machine code or sometimes indirectly to the object code aimed to reuse in another program.