search for: printhello

Displaying 7 results from an estimated 7 matches for "printhello".

2009 Nov 18
2
[LLVMdev] lli -force-interpreter complains about external function
...======================== $ llvm-gcc -o hellosin.bc -emit-llvm -c hellosin.c $ lli -force-interpreter=true hellosin.bc hello sin: 0.00 $ lli hellosin.bc hello sin: 0.50 phello.c ======================== #include <pthread.h> #include <stdio.h> #define NUM_THREADS 4 void *PrintHello(void *threadid) { long tid; tid = (long)threadid; printf("Hello from %ld.\n", tid); pthread_exit(NULL); } int main (int argc, char *argv[]) { pthread_t threads[NUM_THREADS]; int ret; long t; for(t=0; t<NUM_THREADS; t++){ #ifdef DEBUG printf("creating...
2009 Nov 18
0
[LLVMdev] lli -force-interpreter complains about external function
...lvm -c hellosin.c > $ lli -force-interpreter=true hellosin.bc > hello sin: 0.00 > $ lli hellosin.bc > hello sin: 0.50 > > phello.c > ======================== > #include <pthread.h> > #include <stdio.h> > #define NUM_THREADS 4 > > void *PrintHello(void *threadid) > { > long tid; > tid = (long)threadid; > printf("Hello from %ld.\n", tid); > pthread_exit(NULL); > } > > int main (int argc, char *argv[]) > { > pthread_t threads[NUM_THREADS]; > int ret; > long t; > for(t=0;...
2009 Nov 18
3
[LLVMdev] lli -force-interpreter complains about external function
...interpreter=true hellosin.bc > hello sin: 0.00 > $ lli hellosin.bc > hello sin: 0.50 > > phello.c > ======================== > #include <pthread.h> > #include <stdio.h> > #define NUM_THREADS 4 > > void *PrintHello(void *threadid) > { > long tid; > tid = (long)threadid; > printf("Hello from %ld.\n", tid); > pthread_exit(NULL); > } > > int main (int argc, char *argv[]) > { > pthread_t threads[NUM_THREADS]; >...
2009 Nov 18
0
[LLVMdev] lli -force-interpreter complains about external function
...t; hello sin: 0.00 >> $ lli hellosin.bc >> hello sin: 0.50 >> >> phello.c >> ======================== >> #include <pthread.h> >> #include <stdio.h> >> #define NUM_THREADS 4 >> >> void *PrintHello(void *threadid) >> { >> long tid; >> tid = (long)threadid; >> printf("Hello from %ld.\n", tid); >> pthread_exit(NULL); >> } >> >> int main (int argc, char *argv[]) >> { >> pthread_t...
2009 Nov 17
0
[LLVMdev] lli -force-interpreter complains about external function
Timo Juhani Lindfors wrote: > Nick Lewycky<nicholas at mxc.ca> writes: >> The interpreter uses libffi to make external function calls. However, it >> needs to be detected at LLVM's compile time. If you're using the >> released packages, we disabled that because we were worried about users >> who don't have libffi installed. > > This seems to be
2009 Nov 16
3
[LLVMdev] lli -force-interpreter complains about external function
Nick Lewycky <nicholas at mxc.ca> writes: > The interpreter uses libffi to make external function calls. However, it > needs to be detected at LLVM's compile time. If you're using the > released packages, we disabled that because we were worried about users > who don't have libffi installed. This seems to be quite a common problem (I too hit it once, thought it
2007 Apr 15
1
pthreads with Darwine Xcode template? (or Wine Windows message pump + sockets + threads sample)
I am trying to run the following pthread example with the Darwine Xcode template: http://www.llnl.gov/computing/tutorials/pthreads/samples/hello.c from http://www.llnl.gov/computing/tutorials/pthreads/ Example Code - Pthread Creation and Termination But the code inside PrintHello does not appear to execute. Can you help me? What I really need is a way to handle multiple client sockets from code I'm writing using these two tutorials: http://www.codeproject.com/internet/beginningtcp_cpp.asp http://www.gamedev.net/reference/articles/article1059.asp so I was trying to wri...