Chapter Contents

Previous

Next
Conversion of Existing Programs

Introduction

In an effort to take full advantage of the workstation environment, the SAS/C C and C++ cross-platform compilers have been designed to be very similar to a UNIX C compiler. Because of this, some changes may be needed when you first move your application from a native compilation environment to a cross-development environment. These suggested changes do not alter your application's ability to be built in the native environment.


Source Code Changes

The SAS/C C and C++ cross-platform compilers support the same set of digraphs supported by the SAS/C Compiler on the mainframe. However, to aid in portability, it is advisable to replace these digraphs with characters that are readily available on the host workstation. The mf2unix and unix2mf utilities described later in this chapter can assist with this conversion.

Also, when moving source code from the mainframe to the workstation, any sequence numbers must be removed, since the SAS/C C and C++ cross-platform compilers do not support sequence numbers.


Filename Changes

The SAS/C C and C++ cross-platform compilers do not translate filenames found in #include statements. These filenames are case-sensitive and no truncation occurs. Unlike the mainframe, no special consideration is given to case in include-file processing; therefore, source code that contains uppercase filenames in #include statements will probably require alteration.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.