没有合适的资源?快使用搜索试试~ 我知道了~
首页GreenHillsC用户参考手册
GreenHillsC用户参考手册
5星 · 超过95%的资源 需积分: 40 95 下载量 144 浏览量
更新于2023-03-16
1
收藏 503KB PDF 举报
Green Hills C User’s Guide,该用户手册C语言编程特征,和优化选项介绍
资源详情
资源推荐
Green Hills C
User’s Guide
Version 1.8.9
Copyright © 1983-1999 by Green Hills Software, Inc. All rights reserved. No part of this publication may be reproduced,
stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording,
or otherwise, without prior written permission from Green Hills Software, Inc.
DISCLAIMER
GREEN HILLS SOFTWARE, INC. MAKES NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO
THE CONTENTS HEREOF AND SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE. Further, Green Hills Software, Inc.
reserves the right to revise this publication and to make changes from time to time in the content hereof without obligation
of Green Hills Software, Inc. to notify any person of such revision or changes.
Green Hills Software and the Green Hills logo are trademarks, and MULTI is a registered trademark, of Green Hills
Software, Inc.
All other trademarks or registered trademarks are property of their respective companies.
PubID: L02B-I1099-89NG
CONTENTS
Green Hills Software Inc. i
PREFACE P-1
About this Manual P-2
Supporting Documentation P-2
Typographical Conventions P-3
1C LANGUAGE FEATURES 1
C Language Modes 2
Pragma Directives 5
The C Preprocessor 15
Type Qualifiers 24
Structure and Union Assignment and Comparisons 25
Bit Fields 25
Old-Fashioned Syntax 28
Functions Returning Structures or Unions 29
Enumerated Types 30
Functions with Variable Arguments 31
asm Statement 33
Japanese Automotive C 34
C Run-time Library 36
Compiler Limitations 36
2MIXING LANGUAGES 39
How the Driver Builds a Mixed Language Executable 40
Initialization of Libraries 42
Main() Program Examples 42
Performing I/O on a Single File in Multiple Languages 44
Native UNIX Libraries versus Green Hills Libraries 45
Calling a C Routine from FORTRAN 45
Calling a FORTRAN Routine from C 53
Calling a C Routine from Ada 60
CONTENTS
Green Hills Software Inc. ii
Interfacing Pascal and C 62
C Routines and Header Files In C++ 63
Using C++ in C Programs 64
Function Prototyping in C versus C++ 65
3WRITING PORTABLE CODE 67
Compatibility Between Green Hills Compilers 68
Word Size Differences 68
Byte Order Problems 69
Alignment Requirements 70
Structures, Unions, and Bit Fields 71
Assumptions about Function Calling Conventions 72
Pointer Issues 73
NULL Pointer 73
Character Set Dependencies 74
Floating Point Range and Accuracy 74
Operating System Dependencies 75
Assembly Language Interfaces 75
Evaluation Order 75
Machine Specific Arithmetic 76
Illegal Assumptions about Compiler Optimizations 77
Memory Optimization Restrictions 78
Problems with Source Level Debuggers 79
Problems with Compiler Memory Size 80
PCC Mode Incompatibilities 81
Detection of Portability Problems 82
4OPTIMIZATION 83
Default Optimizations 84
General Optimizations Enabled with the -O Option 87
剩余125页未读,继续阅读
horse6508
- 粉丝: 10
- 资源: 73
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功