similar to: Facing problems with C code compilation - Please help.

Displaying 20 results from an estimated 4000 matches similar to: "Facing problems with C code compilation - Please help."

2011 May 03
3
[LLVMdev] Loop-Unroll optimization
Hi, You might want to try running -loops -loop-simplify before loop unroll. >From loop simplify.cpp This pass performs several transformations to transform natural loops into a00011 // simpler form, which makes subsequent analyses and transformations simpler and00012 // more effective. Arushi On Tue, May 3, 2011 at 2:17 PM, Manish Gupta <mgupta.iitr at gmail.com> wrote: > You
2011 May 03
0
[LLVMdev] Loop-Unroll optimization
Even after all the sequence of commands below bit-code is not showing any effect of loop-unrolling *manish at manish:~/Test2$ llvm-gcc-4.2 -O2 -emit-llvm Hello.c -c -o Hello.bc* *manish at manish:~/Test2$ opt-2.8 -loops Hello.bc -o Hello1.bc* *manish at manish:~/Test2$ opt-2.8 -loopsimplify Hello1.bc -o Hello2.bc* *manish at manish:~/Test2$ opt-2.8 -indvars Hello2.bc -o Hello3.bc* *manish at
2011 May 04
1
[LLVMdev] Loop-Unroll optimization
1. You should run the passes in the same opt command, for passes like loops which is an analysis pass provides results to the following passes. 2. You can pass a -debug flag to opt to see the some debugging info. 3. I tried this opt -mem2reg -loops -loopsimplify -loop-unroll -unroll-count=3 -debug loop.o -o tt.bc and got this message. Loop Size = 14 Can't unroll; loop not terminated by
2004 Jul 06
3
Code density functions
Hello I would like to see the algorithm that R uses to generate density functions for several distributions (i.e. Normal,Weibull, etc). I tried: >dnorm function (x, mean = 0, sd = 1, log = FALSE) .Internal(dnorm(x, mean, sd, log)) <environment: namespace:stats> How can I see the code used for densities? Thanks!
2005 Feb 17
2
How to upgrade library from R 1.9.1 to R 2.0.1
Dear All: I have a library for R 1.9.1, it is very easy to setup a library in R 1.9.1. For example: I want to setup a library "test" for R1.9.1. 1. Create a folder "test" in the direct X:\ R\ rw1091\ library \. 2. Create a file "DESCRIPTION" in the direct X:\ R\ rw1091\ library\ test\. 3. Modify the "Package:" and "Title:"
2004 Jul 03
1
Installation of R in Windows
I tried to install R (V 1.9.1) on an XP Home Edition box with loads of disk space and 256 MB of RAM. During installation, I get messages stating that some files are corrupted. I used two copies of the install exe downloaded from different sites and still get the same messages at the same spots in the install. What do I need to do to get around this? I ran md5sum on the downloaded exe file:
2004 Aug 05
1
Local library on Windoze.
I'm mystified by a Windoze ``phenomenon'' which has just bitten me. I have a laptop which boots either Windoze or Linux; I (sad to say) need the Windoze OS for teaching purposes. I have R 1.9.1 installed on the laptop in the Windoze OS. Just now I decided to install, under the Windoze version of R, a library (``Misc'') of some local functions that I have collected over the
2004 Aug 27
2
about passing parameter to '.R' script file (PR#7201)
Hi, I am trying the 'R' application for generating the data for the uploaded '.gpr' file. I have written script file named 'test.R'. Currently i have hardcoded the path of uploaded '.gpr' file in the script itself. I would like to know how to pass a command line parameter to the 'test.R' script file, so that i dont have to hardcode the path and filename
2004 Aug 27
3
About passing parameter to '.R' script file
Hi, I am trying the 'R' application for generating the data for the uploaded '.gpr' file. I have written script file named 'test.R'. Currently i have hardcoded the path of uploaded '.gpr' file in the script itself. I would like to know how to pass a command line parameter to the 'test.R' script file, so that i dont have to hardcode the path and filename
2004 Sep 10
2
loading Sjava
I'm excited about SJava, and I'ld love to get it working, but can't get past loading the package. .First.lib fails on this statement: > library.dynam("SJava", "SJava", "C:/PROGRA~1/R/rw1091/library") Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library
2012 Apr 09
2
[LLVMdev] How to instrument a this function using insertBefore instruction???
Hi, I don't think the code you pasted can be the correct code, where does FibF come from? Anyway, the problem is that you're calling the FibF from Module A, however you defined it for Module B. You need to insert the FibF function into the Module that you're running. To do this override "virtual bool doInitialization(Module &M);" and insert FibF into M. Joey 2012/4/9
2004 Jul 14
1
RCMD fails in Windows XP
I have setup R 1.9.1 on my Dell laptop running windows XP. I have installed it to C:\R\rw1091. Rgui runs fine, but Rcmd fails if run with parameters (i.e. install). The windows dialog box cheerfully says "R for Windows front-end has encountered a problem and needs to close. We are sorry for the inconvenience." Running the visual C++ debugger informs me that there is an unhandled
2004 Jul 07
2
Win32 & C code
Hi, I'm trying to get C code working with R. This is my first time writing C on Windows and I'm making a mess of it. Help! I'm following the example in Roger Peng's "An Introduction to the .C interface to R". The C code is: #include <R.h> void hello(int *n){ int i; for(i=0; i < *n; i++) { Rprintf("Hello, world!\n"); } } I seem to be unable
2012 Apr 09
0
[LLVMdev] How to instrument a this function using insertBefore instruction???
Thank you very much! To make it simpler, I may as well just implement the self-written "check function" in C language instead of wrapping it in LLVM module. According to the hint you give me, all I need to do is as follow(?) 1. Implement the "Check function" in the check.c file; 2. Add the check function into the module(the Hello1.bc file which I will run the functionPass on)
2012 Apr 09
1
[LLVMdev] How to instrument a this function using insertBefore instruction???
That sounds like a good general plan, yes! Joey 2012/4/9 15102925731 <zhenkaixd at 126.com> > Thank you very much! > > To make it simpler, I may as well just implement the self-written "check > function" in C language instead of wrapping it in LLVM module. *According > to the hint you give me, all I need to do is as follow(?)* > > 1. Implement the
2004 Jul 16
3
rd2dvi bug on windoze?
hi, can anyone confirm the following problem? when i do dos> rcmd rd2dvi --pdf my-package-name i get dos> Can't open perl script "c:\PROGRA~1\r\rw1091/bin/rd2dvi": No such file or directory might the problem be in (double back slashes rather than forward slashes) R-1.9.1\src\gnuwin32\front-ends\rcmdfn.c(251): strcat(cmd, RHome); strcat(cmd, "/bin/Rd2dvi.sh");
2004 Sep 17
1
Problems with Rcmd check in rw2000dev
Hola! I am doing some minimal changes on the package SenSrivastava to make it fit for R2.0.0 (This package passed Rcmd check on earlier versions of R, and are passing the CRAN daily checks!) I am using rw2000dev from CRAN. Now i get (running in an Xemacs shell): installing R.css in C:/R/rw2000dev/src/gnuwin32/SenSrivastava.Rcheck ---------- Making package SenSrivastava ------------ adding
2004 Aug 12
2
Install packages does not work on Win2003 server (PR#7163)
Full_Name: Rainer Walke Version: 1.9.1 OS: Windows XP Submission from: (NULL) (195.37.34.66) I tried to install R 1.9.1 on a network share on a Windows 2003 server. This works fine. Then I tried to add some packages. This does not work. There is no error message. It seems to hang a while, but then the command prompt is back, but no package has been installed. If you check the directory
2004 Jul 26
1
Building Windows Package
I am using R-1.9.1 with windows 2000 and trying to build a package. However, when I issue the command: RCMD build --binary BSDA I get: >>> Building/Updating help pages for package 'BSDA' Formats: chm hhc: not found cp: cannot stat `C:/R191/R191/JUNK/BSDA/chm/BSDA.chm': No such file or direc tory make[1]: *** [chm-BSDA] Error 1 make: *** [pkg-BSDA] Error 2 ***
2004 Oct 05
2
Installation Package "gregmisc" nicht möglich?!?
Hallo zusammen. Da ich R zur Erstellung meiner wissenschaftlichen Arbeit brauche versuchte ich dies heute zu installieren. Zunächst in der Vrsion 1.9.1 (rw1091.exe). Ich benötige das Package "gregmisc" und installierte dies von CRAN. Bei der Installation tritt folgende Meldung auf: trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/gregmisc_2.0.0.zip' Content type