Table of Contents
- 2.1 D Program Structure
- 2.2 Compilation and Instrumentation
- 2.3 Variables and Arithmetic Expressions
- 2.4 Predicate Examples
- 2.5 Output Formatting Examples
- 2.6 Array Overview
- 2.7 External Symbols and Types
- 2.8 Types, Operators, and Expressions
- 2.8.1 Identifier Names and Keywords
- 2.8.2 Data Types and Sizes
- 2.8.3 Constants
- 2.8.4 Arithmetic Operators
- 2.8.5 Relational Operators
- 2.8.6 Logical Operators
- 2.8.7 Bitwise Operators
- 2.8.8 Assignment Operators
- 2.8.9 Increment and Decrement Operators
- 2.8.10 Conditional Expressions
- 2.8.11 Type Conversions
- 2.8.12 Operator Precedence
- 2.9 Variables
- 2.10 Pointers and Scalar Arrays
- 2.11 DTrace Support for Strings
- 2.12 Structs and Unions
- 2.13 Type and Constant Definitions
The D systems programming language enables you to interface with
operating system APIs and with the hardware. This chapter formally
describes the overall structure of a D program and the various
features for constructing probe descriptions that match more than
one probe. The chapter also discusses the use of the C
preprocessor, cpp
, with D programs.