- 1、本文档共38页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
C2014_C1学生拷贝
* The Standard I/O Library provides you with a function named “printf ( )” “printf ( )” prints argument as text on screen Argument is the text between the parentheses (“Hello World!\n”) “\n” is a C convention for “end of line” (For open book tests, remember KR page 193) All C program statements end with a “;” * * 每个语句占一行 不同结构层次的语句,从不同起始位置开始 程序不同部分间加空行 Statements can be broken across lines or ganged on a single line White space is defined as: Blanks New lines Horizontal and vertical tabs Comment Formfeeds * 编译预处理命令directive /* */可以嵌套,在options compilersousenested comments中设置 Functions are groups of instructions that operate on data to produce and often return results Known in other languages as methods, procedures, subs, among others * Creating Programs in C Six basic steps Edit Preprocess Compile Link Load Execute Editor Used to create the program and store it on disk (secondary storage) C programs should be saved with a .c extension Preprocessor Handles various manipulations before compiling, including Inclusion of additional specified files (e.g. stdio.h, stdafx.h) Text replacement Results in more efficient, clearer and less unwieldy code Compiler Translates the saved program file to machine language (a/k/a object code) and saves it to a file Linker Links object code from any additional specified files into appropriate places in your code Produces a file that is an executable image of the linked object code and stores it on the disk Loader Puts the executable image (instructions) from the disk into primary memory Execute CPU takes each instruction in primary memory and executes it CPU may also store new data values as program executes Debugging Check program execution and output to ensure program compiles and runs as expected If it doesn’t, make corrections in the edit phase and repeat the remaining steps C Compiler / Linker C source is compiled to object file(s) Object file(s) is/are linked to create an executable file Executable file runs as native machine c
您可能关注的文档
- 微机原理第三章课后习题答案.doc
- 070033《微机原理》第3章 指令系统与汇编语言2.ppt
- 第3章 汇编语言及编程4 11-17~23.ppt
- 工业用微型计算机试卷.doc
- 第2章 汇编语言程序设计2-3.ppt
- 8086汇编各种寻址方式大全.doc
- 段描述符(GDT).doc
- 汇编语言程序设计试卷2006A答案.doc
- 1-11章汇编测试题目(汇编网).doc
- 实验七 字符和数据的显示程序.doc
- 2025年智慧农业数据平台在农业灾害预警与应急响应中的应用报告.docx
- 2025年职业技能认证跨境培训平台在线教育平台教学资源整合与创新.docx
- 突破性进展:2025年免疫治疗在硬化性胆管炎中的应用报告.docx
- 冯老师课件视频介绍.pptx
- 汽车制造2025年芯片短缺应对策略与产业创新路径分析报告[001].docx
- 2025年社区体育公园智慧化升级对社区文化建设的贡献报告.docx
- 2025年医药冷链物流风险评估与智能温控技术发展策略报告.docx
- 2025年供应链金融创新模式对中小企业融资困境的影响报告.docx
- 吉利汽车2025年海外并购案例深度解析及启示报告.docx
- 2025年教育游戏化在职业教育中的项目式学习设计报告.docx
文档评论(0)