Pro TBB 项目教程

Pro TBB 项目教程

pro-TBB Source Code for 'Pro TBB: C++ Parallel Programming with Threading Building Blocks' by Michael Voss, Rafael Asenjo, and James Reinders pro-TBB 项目地址: https://gitcode.com/gh_mirrors/pr/pro-TBB

1. 项目目录结构及介绍

pro-TBB/
├── AppB/
│   ├── ch01/
│   ├── ch02/
│   ├── ch03/
│   ├── ch04/
│   ├── ch05/
│   ├── ch06/
│   ├── ch07/
│   ├── ch10/
│   ├── ch11/
│   ├── ch12/
│   ├── ch13/
│   ├── ch14/
│   ├── ch15/
│   ├── ch16/
│   ├── ch17/
│   ├── ch18/
│   ├── ch19/
│   └── ch20/
├── gitattributes
├── 978-1-4842-4397-8.jpg
├── LICENSE
├── Makefile
├── Makefile.nmake
└── README.md

目录结构介绍

  • AppB/: 包含每个章节的示例代码。每个章节对应一个子目录,例如 ch01/ 对应第一章的示例代码。
  • gitattributes: Git 属性文件,用于定义 Git 如何处理特定文件。
  • 978-1-4842-4397-8.jpg: 项目封面图片。
  • LICENSE: 项目许可证文件。
  • Makefile: 用于构建项目的 Makefile。
  • Makefile.nmake: 用于 Windows 平台的 Makefile。
  • README.md: 项目说明文件。

2. 项目启动文件介绍

项目的启动文件通常是 MakefileMakefile.nmake,具体取决于你使用的操作系统。以下是启动文件的介绍:

Makefile

Makefile 是用于 Unix 和 Linux 系统的构建文件。你可以使用以下命令来构建项目:

make

如果你想使用不同的编译器,可以使用以下命令:

make CXX=g++

Makefile.nmake

Makefile.nmake 是用于 Windows 系统的构建文件。你可以使用以下命令来构建项目:

nmake /f Makefile.nmake

如果你想使用不同的编译器,可以使用以下命令:

nmake /f Makefile.nmake CXX=cl

3. 项目配置文件介绍

项目的配置文件主要是 MakefileMakefile.nmake。这些文件定义了项目的构建规则和编译选项。

Makefile

Makefile 包含以下主要配置:

  • CXX: 定义编译器,默认使用 Intel C++ 编译器。
  • INCLUDE: 定义头文件路径。
  • LIB: 定义库文件路径。

Makefile.nmake

Makefile.nmake 包含以下主要配置:

  • CXX: 定义编译器,默认使用 Intel C++ 编译器。
  • INCLUDE: 定义头文件路径。
  • LIB: 定义库文件路径。

通过这些配置文件,你可以自定义编译器和编译选项,以适应不同的开发环境。

pro-TBB Source Code for 'Pro TBB: C++ Parallel Programming with Threading Building Blocks' by Michael Voss, Rafael Asenjo, and James Reinders pro-TBB 项目地址: https://gitcode.com/gh_mirrors/pr/pro-TBB

创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

巫崧坤

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值