- 1、本文档共16页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
《alp-ch01《起步》advanced-unix-programming-with-linux》.pdf
I
Advanced UNIX Programming
with Linux
1 Getting Started
2 Writing Good GNU/Linux Software
3 Processes
4 Threads
5 Interprocess Communication
1
Getting Started
THIS CHAPTER SHOWS YOU HOW TO PERFORM THE BASIC steps required to create a
C or C++ Linux program. In particular, this chapter shows you how to create and
modify C and C++ source code, compile that code, and debug the result. If you’re
already accustomed to programming under Linux, you can skip ahead to Chapter 2,
“Writing Good GNU/Linux Software;” pay careful attention to Section 2.3, “Writing
and Using Libraries,” for information about static versus dynamic linking that you
might not already know.
Throughout this book, we’ll assume that you’re familiar with the C or C++ pro-
gramming languages and the most common functions in the standard C library.The
source code examples in this book are in C, except when demonstrating a particular
feature or complication of C++ programming.We also assume that you know how to
perform basic operations in the Linux command shell, such as creating directories and
copying files. Because many Linux programmers got started programming in the
Windows environment, we’ll occasionally point out similarities and contrasts between
Windows and Linux.
4 Chapter 1 Getting Started
1.1 Editing with Emacs
An editor is the program that you use to edit source code. Lots of different editors are
available for Linux, but the most popular and full-featured editor is probably GNU
Emacs.
About Emacs
Emacs is much more than an editor. It is an incredibly powerful program, so much so that at
您可能关注的文档
- 《9459.大话存储2:存储系统架构与底层原理极限剖析》.pdf
- 《9508.数字多媒体应用基础(采集、制作与处理)》.pdf
- 《9558.高等职业教育技能型紧缺人才培养培训系列教材:网络规划与实现》.pdf
- 《9580.图形图像处理系列教材:多媒体技术基础与应用(第2版)》.pdf
- 《9620.Visual Basic程序设计》.pdf
- 《9638.应用型人才培养系列教材:计算机绘图实用教程》.pdf
- 《9666.Android多媒体编程从初学到精通》.pdf
- 《9727.新手学Visual Basic(附光盘1张)》.pdf
- 《97—06年全国化学奥林匹克竞赛初赛试题分类汇编》.pdf
- 《9809.普通高等教育“十一五”国家级规划配套教材:多媒体技术应用案例教程》.pdf
最近下载
- 2024高考物理(四川卷).doc
- 粤教版高中物理选择性必修第二册教材习题解答.pdf
- 专题14 世界区域地理-备战2023年中考地理二轮复习优质课件.pptx VIP
- 电路分析基础 教学课件 作者 史健芳 陈惠英 李凤莲 等 ch9电路的频率响应.ppt
- 从优秀走向卓越——高中阶段的优生培养策略课件高中尖子生培养主题班会.pptx VIP
- 北京市清华大学中学2025届高三第六次模拟考试物理试卷含解析.doc
- 电路分析基础 教学课件 作者 史健芳 陈惠英 李凤莲 等 ch8三相电路.ppt
- 自注意力机制.pptx VIP
- PGT-25-PLUS-燃气轮机结构介绍-图文.ppt.pptx
- 电路分析基础 史健芳 陈惠英 李凤莲 等 ch7 5-7新.ppt
文档评论(0)