search for: cdecl

Displaying 20 results from an estimated 143 matches for "cdecl".

Did you mean: decl
2006 Nov 27
1
R.DLL mapping by P/Invoke
...y> /// Class for interp with the R.DLL. All is static as R is mono-threaded. /// </summary> class RWrapper { #region <R.DLL interop signatures> //- DLL Management/Information [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] [return: MarshalAs(UnmanagedType.LPStr)] static extern string getDLLVersion(); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] [return: MarshalAs(UnmanagedType.LPStr)] static...
2007 Oct 17
0
Using R.dll in .NET IPC
...t; /// Class for interp with the R.DLL. All is static as R is mono-threaded. /// </summary> class RWrapper { #region <R.DLL interop signatures> //- DLL Management/Information [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] [return: MarshalAs(UnmanagedType.LPStr)] static extern string getDLLVersion(); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] [return: MarshalAs(UnmanagedType.LPStr)] static...
2011 Mar 20
1
[LLVMdev] CDECL Calling Convention
Hello all, I am a beginner of LLVM and I want to add a new backend into LLVM. The calling convention of the target I ported is CDECL. I am wondering to know whether there is already CDECL calling convention implemented in LLVM?? Which CallingConv.td file should I copy and modify for my target?? thanks a lot Mitnick -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/piperma...
2008 Apr 12
3
[LLVMdev] Calling Conventions Cont'd
...It looks like I replace each struct/array parameter with a 'byval' pointer parameter, and I replace a result struct/array with an 'sret' pointer parameter. The reason I ask is that each calling convention has subtle variations for each architecture and platform. For example, cdecl in Win32 returns small (8 bytes or less) structures in EAX or EAX:EDX; whereas, cdecl in Linux always returns structures "in memory" (Source: http://www.programmersheaven.com/2/Calling-conventions). Does LLVM handle all of these nuances for me? Thanks, Jon
2005 Sep 21
2
cdecl and stdcall
...to load a dynamic link library and it seems to work (is.loaded -> TRUE). When I run the function, which calls the .Fortran subroutine, R crashes! I'v tried the same in S-Plus 2000 and it worked. Therefore I suppose that the dll has been compiled with the stdcall calling convention (and not cdecl). But the problem is that I don't have access to the source code, I've just the dll without any working import library. Maybe someone could be so kind and send me an example how to write a wrapper? I've found one example at the NAG's site (http://www.nag.com/numeric/RunderWindows.as...
2009 Jul 03
1
Dynamic libraries
...: R becomes very unstable; the function only operates on the first 3 elements of the vector (say if the vector has 5 elements). Anyone have experience with this sort of thing? Thanks, Robin Cowan Sample below: This one works fine: library Test1Lib; type pA=^integer; procedure simple(x:pA); cdecl; var i1,i2:integer; begin x^:=x^*2; end; exports simple; begin end. This one does not: library Test2Lib; type array1=array[1..5] of integer; pA=^array1; procedure simpleArray(x:pA); cdecl; var i1:integer; begin for i1:=1 to 5 do x^[i1]:=x^[i1]*2; end; exports simpleArray; begin end. H...
2006 Apr 12
0
headerfile translation to Delphi (Pascal) completed
...using .C } { We use pointer type arguments as they are closer to the original C code. See in implementation for an example with parameters passed by reference } procedure ConvC( _a: pDoubleArr; _na: pInteger; _b: pDoubleArr; _nb: pInteger; _ab: pDoubleArr ); cdecl; { ConvCallRInternals - call our convolve using .Call and Rinternals } function ConvCallRInternals( _a, _b: pSExp ): pSExp; cdecl; { ConvCallRDefines - call our convolve using .Call and Rdefines } function ConvCallRDefines( _a, _b: pSExp ): pSExp; cdecl; { ConvExternalRInternals - call our...
2007 Aug 30
0
[LLVMdev] Pre-2.1 Status
...lease, I've compared the llvm-test results for current SVN and the 2.0 release to see how many regressions we have currently. Things are looking really good! Darwin/x86: 2 llvm-test regressions MultiSource/Benchmarks/MiBench/office-ispell/office-ispell (CBE) MultiSource/Benchmarks/Prolangs-C/cdecl/cdecl (CBE) Linux/x86: 5 llvm-test failures External/SPEC/CINT2000/254.gap/254.gap (CBE) SingleSource/UnitTests/Vector/SSE/sse.expandfft (JIT codegen, JIT, LLC compile, LLC) Darwin/PPC: 5 llvm-test failures MultiSource/Applications/JM/lencod/lencod (LLC compile, JIT codegen, LLC, JIT) MultiSo...
2008 Apr 01
1
[LLVMdev] Calling Conventions
I'm trying to understand the LLVM calling conventions. Coming from a Windows C++ background, I'm familiar with three calling conventions: cdecl, stdcall, and fastcall. It looks like cdecl corresponds to ccc in LLVM, but I'm not sure about the other two. Best Regards, Jon
2008 Apr 13
0
[LLVMdev] Calling Conventions Cont'd
Hi Jon, > What is the correct procedure for translating a function signature from > a high-order language to LLVM? you have to do it carefully so that LLVM will end up producing object code that conforms to the platform ABI. For example, suppose you are using cdecl with a small struct (a pair of ints, say). Then your function should get two integer parameters, which LLVM will assign to registers. If using a large struct then use byval which will pass it on the stack. I know this is painful, hopefully LLVM will get some helpers for this one day. The reason...
2005 Nov 07
0
[LLVMdev] LLVM 1.6 Release Branch
...ailures 34 Regressions Single Source: None New Failures Single Source (new tests): 2005-05-12-Int64ToFP: llc,jit Regressions MultiSource: Applications/d/make_dparser: llc, cbe, jit Applications/hexxagon/hexxagon: llc, cbe, jit Benchmarks/MallocBench/gs/gs: llc, cbe Benchmarks/Prolangs-C/cdecl/cdecl: llc, cbe, jit Benchmarks/Prolangs-C/football/football: cbe Benchmarks/Prolangs-C/gnugo/gnugo: llc, cbe, jit Benchmarks/Prolangs-C/agrep/agrep: llc Benchmarks/Prolangs-C/fixoutput/fixoutput: llc, cbe Benchmarks/Prolangs-C/gnugo/gnugo: llc, cbe, jit (looks like ld hung) Benchmarks/mediabench/g...
2004 Nov 17
2
[LLVMdev] llvm-test portability failures
...malloc.h: No such file or directory /usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/MultiSource/Benchmarks/Prolangs-C/assembler/sym_tab.c:10:20: malloc.h: No such file or directory /usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/MultiSource/Benchmarks/Prolangs-C/cdecl/cdecl.c:116: error: conflicting types for 'setprogname' /usr/home/cfe/x86/llvm-gcc/bin/../lib/gcc/i386-unknown-freebsd5.3/3.4-llvm/include/stdlib.h:283: error: previous declaration of 'setprogname' /usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/MultiSource/Benchm...
2005 Nov 02
2
[LLVMdev] LLVM 1.6 Release Branch
Tanya Lattner wrote: > >> 1. I'm still looking for volunteers to test MacOS X and Solaris. >> If you'd like to volunteer, please email the list to let us know. > > > I'll do minimal testing on Sparc. I'm not going to look into any > regressions though since no one has been really watching Sparc since I > graduated and I am sure there are
2007 Mar 15
3
mini-os: C programming
2 questions on the code of mini-os (the one in XEN 3.0.3): 1. In xen-3.0.3/extras/mini-os/mm.c:52 is a declaration of stack extern char *stack; but in file xen-3.0.3/extras/mini-os/arch/x86/setup.c:48, there is also a decl of stack: char stack[8192]; If one dereferences the variable stack, which is apparently not the case yet, it gives surely a segfault! 2. In file
2000 Aug 22
1
External call to Watcom F77 version 11
...right calling convention? In a debugger, it appears it's using a register-based calling convention, no matter what we ask for, but we're probably asking in the wrong way. By the way, is the calling convention used by R's .C and .Fortran documented in detail somewhere? I know .C uses cdecl, but what does .Fortran use? Duncan Murdoch -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", no...
2010 Mar 24
1
[LLVMdev] [cfe-dev] 2.7 Pre-release1 available for testing
...2.7 llvm-gcc and clang results I see these differences (is llvm-gcc considered baseline for clang?): ALL FAIL (pass in llvm-gcc): MultiSource/Benchmarks/PAQ8p/paq8p MultiSource/Benchmarks/tramp3d-v4/tramp3d-v4 MultiSource/Benchmarks/Prolangs-C/archie-client/archie MultiSource/Benchmarks/Prolangs-C/cdecl/cdecl SingleSource/Benchmarks/Misc-C++/bigfib SingleSource/Regression/C++/EH/ConditionalExpr SingleSource/Regression/C++/EH/ctor_dtor_count-2 SingleSource/Regression/C++/EH/function_try_block SingleSource/Regression/C++/EH/simple_throw SingleSource/UnitTests/2006-12-04-DynAllocAndRestore SingleSour...
2009 Jul 15
0
Fwd: DLLs
...ary LearningLib; const num=75; type array1= array[1..2,1..num] of Double; array2=array[1..num,1..num] of longint; array3=array[1..num,1..num] of Double; array4=array[1..num] of longint; pA1=^array1; pA2=^array2; pA3=^array3; pA4=^array4; pD=^Double; procedure learning(loc1:pA1;adj1:pA2;alpha:pD); cdecl; var i1,i2,neighs:longint; sum1,sum2:double; newloc: array [1..2,1..num] of double; begin for i1:=1 to 2 do for i2:=1 to num do newloc[i1,i2]:=0; for i1:= 1 to num do begin neighs:=0; sum1:=0; sum2:=0; for i2:= 1 to num do begin if (adj1^[i1,i2]=1) then begin neighs:=neighs+1; sum...
2004 Nov 17
0
[LLVMdev] llvm-test portability failures
...ch file or directory > /usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/MultiSource/Benchmarks/Prolangs-C/assembler/sym_tab.c:10:20: malloc.h: No such file or directory > > /usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/MultiSource/Benchmarks/Prolangs-C/cdecl/cdecl.c:116: error: conflicting types for 'setprogname' > /usr/home/cfe/x86/llvm-gcc/bin/../lib/gcc/i386-unknown-freebsd5.3/3.4-llvm/include/stdlib.h:283: error: previous declaration of 'setprogname' > > /usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/Mul...
2020 Sep 25
2
Understanding tail call
Hi friendly LLVM Devs, I'm trying to understand the technical details of tail call optimization, but unfortunately I hit some issues that I couldn't figure out myself. So I tried the following two really simple functions: > extern void g(int*); > void f1() { > int x; > g(&x); > } > void f2(int* x) { > g(x); > } > It turns out that 'f1'
2019 Feb 18
2
lld-link fails to link 32bits assembly functions but 64bits pass
Hi Martin, Thank you for the hint. > For 32 bit windows, functions with cdecl calling convention (the default > in C) are decorated with an underscore prefix. So you'd need to update > your nasm source file to define the symbol _Foo instead of Foo. (Most > assembly files use some sort of macro for wrapping this detail.) Yes, my assembly files do use prefix macro...