Hands-On System Programming with C++

Hands-On System Programming with C++

简介:

C是一种偏向于系统编程的通用编程语言,因为它提供了对硬件级资源的随时访问,高效的编译以及对高级抽象的通用方法。本书将帮助您了解使用C 17进行系统编程的好处。您将深入了解各种C,C和POSIX标准,以及C和POSIX各自的系统类型。在对C,资源获取是初始化 (RAII) 和新的C指南支持库 (GSL) 进行了简短的复习之后,您将学习如何对Linux和Unix系统进行编程以及流程管理。随着章节的进展,您将熟悉C对IO的支持。然后,您将学习各种内存管理方法,包括有关分配器的一章以及它们如何使系统编程受益。您还将探索如何编程文件输入和输出,并了解POSIX套接字。本书将帮助您安全地设置UDP和TCP服务器/客户端。最后,将指导您完成Unix时间接口,多线程和C异常的错误处理。在本书的最后,您将能够使用C编写高质量的系统。

利用C 17编写系统级代码了解Linux应用程序二进制接口 (ABI) 的内部结构,并将其应用于系统编程探索C并发以利用服务器级构造

英文简介:

C++ is a general-purpose programming language with a bias toward system programming as it provides ready access to hardware-level resources, efficient compilation, and a versatile approach to higher-level abstractions.

This book will help you understand the benefits of system programming with C++17. You will gain a firm understanding of various C, C++, and POSIX standards, as well as their respective system types for both C++ and POSIX.

After a brief refresher on C++, Resource Acquisition Is Initialization (RAII), and the new C++ Guideline Support Library (GSL), you will learn to program Linux and Unix systems along with process management. As you progress through the chapters, you will become acquainted with C++'s support for IO.

You will then study various memory management methods, including a chapter on allocators and how they benefit system programming. You will also explore how to program file input and output and learn about POSIX sockets. This book will help you get to grips with safely setting up a UDP and TCP server/client.

Finally, you will be guided through Unix time interfaces, multithreading, and error handling with C++ exceptions. By the end of this book, you will be comfortable with using C++ to program high-quality systems.

Write system-level code leveraging C++17Learn the internals of the Linux Application Binary Interface (ABI) and apply it to system programmingExplore C++ concurrency to take advantage of server-level constructs

书名
Hands-On System Programming with C++
译名
使用 C++ 进行系统编程实践
语言
英语
年份
2018
页数
541页
大小
4.90 MB
标签
  • C++
  • 下载
    pdf iconHands-On System Programming with C++.pdf
    密码
    65536

    最后更新:2025-04-12 23:54:36

    ←Interfacing with C++: Programming Real-World Applications

    →An Introduction to the Analysis of Algorithms, 2nd Edition