SDKZSPF LSI, SDKZSPF Datasheet - Page 320

no-image

SDKZSPF

Manufacturer Part Number
SDKZSPF
Description
Manufacturer
LSI
Datasheet

Specifications of SDKZSPF

Lead Free Status / Rohs Status
Supplier Unconfirmed
A.3 Example Program pie.exe
A-10
This example illustrates compiling, assembling, and linking a program for
the G2 architecture using the command-line tools under Solaris. The
program itself performs two inter-section calls, shows how to use the
N_vv_mac intrinsic, then calculates and prints 100 digits of
separate routines and calculates and prints 100 digits of e.
The files included are:
To build the executable, execute the build script, shown below:
Example Programs
Copyright © 1999-2003 by LSI Logic Corporation. All rights reserved.
build - A script that builds the pie.exe executable
main.c - The entry function that calls the various demonstration
routines.
N_Intrinsic.c - A C routine that demonstrates the use of the
N_vv_mac intrinsic.
fast_e.c - The routine that calculates 100 digits of the constant e.
fast_pi.c - A quick routine to calculate 100 digits of .
sections.s - An assembly routine that demonstrates how to call
between sections.
slow_pi.s - A somewhat slower routine to calculate 100 digits of .
using two