File: testlibspe2hello.c

package info (click to toggle)
libspe2 2.2.80-95-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 940 kB
  • ctags: 1,214
  • sloc: ansic: 9,316; makefile: 551; ada: 448; sh: 24
file content (22 lines) | stat: -rw-r--r-- 824 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* --------------------------------------------------------------- */
/* (C) Copyright 2001,2006,                                        */
/* International Business Machines Corporation,                    */
/*                                                                 */
/* All Rights Reserved.                                            */
/* --------------------------------------------------------------- */
/* PROLOG END TAG zYx                                              */
#include<stdio.h>

typedef union {
        unsigned long long      ull;
        unsigned int            vp[2];
} addr64;


int main (int speid, addr64 argp, addr64 envp)
{
    printf("\t\tHello World! speid=0x%llx, argp=0x%08x%08x, envp=0x%08x%08x\n", speid,
           argp.vp[0],argp.vp[1], envp.vp[0],envp.vp[1]);

    return 0;
}