EasyManua.ls Logo

Intel i960 - Page 150

Intel i960
347 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
i960 Processor Compiler User's Guide
3-74
3
Include Line
Level Number Source Lines
======= ====== ============
# Command line (ic960): ic960 -c -z cosmi complex.c
# Command line (cc1): /ffs/p1/dev/src/gcc960/timc.sun4/cc1
.960 -ic960 -ffancy-errors -sinfo /usr/tmp/ica29412.sin -fno-builtin
-quiet -Fcoff -mkb -mic3.0-compat -fsigned-char -w1 -O1 -fno-inline-functions
-clist siomc -dcmd "ic960 -c -z cosmi complex.c" -dumpbase complex
-outz complex.L -tmpz /usr/tmp/ica29412.ltm /usr/tmp/ica29412.i -o
/usr/tmp/ica29412.s
.file "complex.c"
gcc2_compiled.:
___gnu_compiled_c:
0* 1 #include "complex.h"
1* 1
1 2 /* Define a struct for complex numbers
1 3 with some macros */
1 4
1 5 #if !defined(complex_h)
1 6
1 7 struct complex {
1 8 double x;
1 9 double i;
1 10 };
1 11
1 12 #define INIT_COMPLEX(num, real, imag) \
1 13 num.x =real; num.i =imag;
1 14
1 15 #define ADD_COMPLEX(res, op1, op2) \
1 16 res.x =op1.x+op2.x; \
1 17 res.i =op1.i+op2.i;
1 18
1 19 #endif /* !defined(complex_h) */
0 2
0 3 extern void write_complex(struct complex num);
0 4
0 5 main()
0 6 {

Table of Contents

Related product manuals