1
MICROSOFT LANGUAGES NEWSLETTER Vol. 1, No. 10 News about the Microsoft Language Family Compiling With The cl Interface in Microsoft® C Compiler The cl interface is an alternative driver to msc that comes with the Microsoft C Compiler. It is very similar to the XENIX® and UNIX™oc driver, cl will not only compile your program, but will also compile and link multiple source files, object files and libraries, all in one step, cl looks at the file name extension (.c or .obj) and determines whether it is necessary to compile and link or just to link. Example: cl-Ox-FPa-F 2000-Zi main.c subl.obj - link mylib.lib This example compiles main.c, creating main.obj, then links main.obj file with subl.obj, the alternative math library (/FPa) and mylib.lib. /Ox sets maximum optimization, with stack checking off.The executable stack size is set to 8K (decimal) with /F 2000(hex). Full symbolic information for use with Microsoft CodeView™ is enabled. As with msc, cl will automatically use thePATH, INCLUDE, TMP and LIB environment variables. This allows you to set up specific search paths for your executable compiler files, include files, temporary files and library files. All of the options available with msc are also available with cl. The default options for the Microsoft C Compiler Version 4.0 interfaces are as follows: As Small Model. FPi Generous floating point calls; selects emulator math library. Ot Controls optimizations; favors execution time. Ze Enables language extensions, such a cdecl, far, fortran, huge, near, pascal. The default for the Ox option has been changed to favor execution time. In addition, cl will automatically invoke the linker and use the default C libraries. The following are some of the options that are available from cl: linklibraryfieldThe linker is invoked; linker options and alternate library names may be given. Suppress linking. c -Fe -Fm Names the executable file. Creates a map file. Third-Party Libraries Available For Microsoft FORTRAN Compiler Microsoft FORTRAN for MS-DOS® provides a number of utilities and math libraries in the product itself, but there are a number of additional subroutine libraries that can be obtained through third-party software vendors that could speed your development even more. There are a whole range of graphic libraries such as plotting libraries (ATC, Microcompatibles, GSS), 3-D graphics (Microcompatibles), ANSI/ISO graphics (GSS, ATC), image processing (Wemer Frei) and general graphics (Media Cybernetics). If you need data management, Softcraft provides Btrieve for ISAM support and Microrim provides a Microsoft FORTRAN program interface to their RBase product. Although Microsoft FORTRAN math support is already extensive, there are other more specialized math libraries available such as modelling (Mitchell &. Gauthier), FFT (MicroWay, Wiley), vector, matrix numerical analysis, signal and image processing libraries (Wiley, Quantitative Technology Corporation, Systolic Systems), statistic (Wiley, IMSL, MAGUS, IMSL), and broad engineering/scientific math libraries (Wiley, NAG). General purpose libraries are available through MEF that provide communications, file management, graphics, DOS, screen handling and string handling support all in one package. Even very specialized libraries such as IEEE 488 Support (Tecmar) are available. Contact these third party vendors for more information on their libraries for Microsoft FORTRAN or receive a copy of the Language Support Directory by contacting Microsoft. For more infonnation on the products and features discussed in the Newsletter, write to: Microsoft Languages Newsletter 16011 NE 36th Way, Box 97017, Redmond, WA 98073-9717 Or phone: (800) 426-9400. In Washington State and Alaska, call (206) 882-8088. In Canada, call (416) 673-7638. Microsoft. MS-DOS and XENIX are registered trademarks and CodeView is a trademark of Microsoft Corporation. UNIX is a trademark of AT&T Bell Laboratories Look for the Microsoft Languages Newsletter every month in this publication. Latest DOS Versions: Microsoft C Compiler 4.00 Microsoft COBOL 2.10 Microsoft FORTRAN 3.31 Microsoft Macro Assembler 4.00 Microsoft Pascal 3.31 Microsoft QuickBASIC 2.00

MICROSOFT LANGUAGES NEWSLETTER Vol. 1, No. 10archive.pcjs.org/pubs/pc/magazines/pctj/PCTJ-1986-10/pages/PCTJ... · —link“libraryfield” The linker is invoked; ... Microsoft FORTRAN

Embed Size (px)

Citation preview

Page 1: MICROSOFT LANGUAGES NEWSLETTER Vol. 1, No. 10archive.pcjs.org/pubs/pc/magazines/pctj/PCTJ-1986-10/pages/PCTJ... · —link“libraryfield” The linker is invoked; ... Microsoft FORTRAN

MICROSOFT LANGUAGES NEWSLETTER Vol. 1, No. 10News about the Microsoft Language FamilyCompiling With The cl Interface in Microsoft® C Compiler

The cl interface is an alternative driver to msc that comes with the Microsoft C Compiler. It is very similar to the XENIX® and UNIX™oc driver, cl will not only compile your program, but will also compile and link multiple source files, object files and libraries, all in one step, cl looks at the file name extension (.c or .obj) and determines whether it is necessary to compile and link or just to link.

Example:cl-Ox-FPa-F 2000-Zi main.c subl.obj - link mylib.libThis example compiles main.c, creating main.obj, then links main.obj file with subl.obj, the alternative math library (/FPa) and mylib.lib. /Ox sets maximum optimization, with stack checking off.The executable stack size is set to 8K (decimal) with /F 2000(hex). Full symbolic information for use with Microsoft CodeView™ is enabled.

As with msc, cl will automatically use the’PATH, INCLUDE, TMP and LIB environment variables. This allows you to set up specific search paths for your executable compiler files, include files, temporary files and library files.

All of the options available with msc are also available with cl. The default options for the Microsoft C Compiler Version 4.0 interfaces are as follows:

—As Small Model.—FPi Generous floating point calls; selects emulator math library.—Ot Controls optimizations; favors execution time.— Ze Enables language extensions, such a cdecl, far, fortran, huge, near, pascal.

The default for the —Ox option has been changed to favor execution time.In addition, cl will automatically invoke the linker and use the default C libraries. The following are some of the

options that are available from cl:—link“libraryfield” The linker is invoked; linker options and alternate library names may be given.

Suppress linking.—c-Fe-Fm

Names the executable file. Creates a map file.

Third-Party Libraries Available For Microsoft FORTRAN CompilerMicrosoft FORTRAN for MS-DOS® provides a number of utilities and math libraries in the product itself, but

there are a number of additional subroutine libraries that can be obtained through third-party software vendors that could speed your development even more. There are a whole range of graphic libraries such as plotting libraries (ATC, Microcompatibles, GSS), 3-D graphics (Microcompatibles), ANSI/ISO graphics (GSS, ATC), image processing (Wemer Frei) and general graphics (Media Cybernetics). If you need data management, Softcraft provides Btrieve for ISAM support and Microrim provides a Microsoft FORTRAN program interface to their RBase product. Although Microsoft FORTRAN math support is already extensive, there are other more specialized math libraries available such as modelling (Mitchell &. Gauthier), FFT (MicroWay, Wiley), vector, matrix numerical analysis, signal and image processing libraries (Wiley, Quantitative Technology Corporation, Systolic Systems), statistic (Wiley, IMSL, MAGUS, IMSL), and broad engineering/scientific math libraries (Wiley, NAG). General purpose libraries are available through MEF that provide communications, file management, graphics, DOS, screen handling and string handling support all in one package. Even very specialized libraries such as IEEE 488 Support (Tecmar) are available.

Contact these third party vendors for more information on their libraries for Microsoft FORTRAN or receive a copy of the Language Support Directory by contacting Microsoft.

For more infonnation on the products and features discussed in the Newsletter, write to: Microsoft Languages Newsletter 16011 NE 36th Way, Box 97017, Redmond, WA 98073-9717Or phone:(800) 426-9400. In Washington State and Alaska, call (206) 882-8088. In Canada, call (416) 673-7638.

Microsoft. MS-DOS and XENIX are registered trademarks and CodeView is a trademark of Microsoft Corporation.UNIX is a trademark of AT&T Bell Laboratories

Look for the Microsoft Languages Newsletter every month in this publication.

Latest DOS Versions:Microsoft C Compiler 4.00Microsoft COBOL 2.10Microsoft FORTRAN 3.31Microsoft Macro Assembler 4.00Microsoft Pascal 3.31Microsoft QuickBASIC 2.00