![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-549395113x1.png)
The | 6 |
|
| ||
| ||
| ||
| ||
| ||
|
|
|
This chapter describes how to mix C and Pascal modules in the same program.
It contains the following sections:
Compilation of | page 89 |
|
|
Compatibility of Types for C and Pascal | page 90 |
|
|
General Parameter Passing in C and Pascal | page 93 |
|
|
Procedure Calls: | page 93 |
|
|
Procedure Calls: | page 117 |
|
|
Procedures and Functions as Parameters | page 132 |
|
|
Global Variables in C and Pascal | page 133 |
|
|
page 134 | |
|
|
The examples in this chapter assume that you are using the ANSI C compiler.
To invoke ANSI C:
•On the Solaris 1.x environment, use the acc command
•On the Solaris 2.x environment, use the cc command
Compilation of Mixed-Language Programs
You must use the compiler option
hostname% pc
89