search for: ampc

Displaying 13 results from an estimated 13 matches for "ampc".

Did you mean: amp
2006 Nov 06
2
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
...ain function, its a gcc library call required by the > compiler for program startup. The details vary but the call is needed. > Amongst other things it will probably initialize your C++ static > constructors. Hi Reid: I'm not using gcc for this purpose but another C compiler called AMPC. It compiles C code into Java Bytecode. What I'm missing is the C++ to JVM portion which I'm trying to use LLVM for converting C++ to C then pass it through AMPC to get the Java Bytecode. One question is does the resulting C code produced by llc will call C++ functions/methods still? It...
2006 Nov 06
0
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
...l required by the > > compiler for program startup. The details vary but the call is needed. > > Amongst other things it will probably initialize your C++ static > > constructors. > > Hi Reid: > > I'm not using gcc for this purpose but another C compiler called AMPC. > It compiles C code into Java Bytecode. What I'm missing is the C++ to > JVM portion which I'm trying to use LLVM for converting C++ to C then > pass it through AMPC to get the Java Bytecode. Okay, cool :) > One question is does the resulting C code produced by llc will cal...
2006 Nov 17
4
[LLVMdev] C++ to C
After converting a piece of C++ code to C one of the functions that are generated is this: _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc Where is it defined and where can I find the source for it? I need the source to compile it with a C compiler (AMPC) that will convert the C code to Java Bytecode. If the above function is in C++ then I need to convert it to C first. Here's the code segment that uses the function: int main(void) { struct l_struct_2E_std_3A__3A_basic_ostream_3C_char_2C_std_3A__3A_char_traits_ 3C_char_3E__20__3E_ *ltmp_2_...
2006 Nov 17
0
[LLVMdev] C++ to C
...y functions (fopen(), open(), etc) that will not exist in the C output from the llc command. Can your C to Java Bytecode compiler handle calls to these functions? -- John T. >Where is it defined and where can I find the source for it? I need the >source to compile it with a C compiler (AMPC) that will convert the C >code to Java Bytecode. If the above function is in C++ then I need to >convert it to C first. > >Here's the code segment that uses the function: > >int main(void) { > struct >l_struct_2E_std_3A__3A_basic_ostream_3C_char_2C_std_3A__3A_char_trai...
2006 Nov 06
0
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
Hi Napi, On Mon, 2006-11-06 at 10:44 +0800, Mohd-Hanafiah Abdullah wrote: > Hi: > > I've been able to compile the attached "helloworld.c" file converted > from "helloworld.cpp". Great. > > My question is how does one usually use __main() and CODE_FOR_MAIN() > in tying up with the rest of the code? I'm not quite sure what you're asking.
2006 Nov 06
2
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
Hi: I've been able to compile the attached "helloworld.c" file converted from "helloworld.cpp". My question is how does one usually use __main() and CODE_FOR_MAIN() in tying up with the rest of the code? Attached here are the original "helloworld.cpp" and "helloworld.c" files. Thanks. Napi On Sun, 2006-11-05 at 09:14 -0800, Reid Spencer wrote: >
2006 Nov 17
0
[LLVMdev] C++ to C
...char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*) > Where is it defined and where can I find the source for it? I need the > source to compile it with a C compiler (AMPC) that will convert the C > code to Java Bytecode. If the above function is in C++ then I need to > convert it to C first. It comes with llvm-gcc4 in libstdc++. You'll need to compile it to bytecode by modifying the makefile though. -Chris -- http://nondot.org/sabre/ http://llvm.org...
2006 Nov 17
2
[LLVMdev] C++ to C
...gt;& std::operator<< > <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> > >&, char const*) > > > Where is it defined and where can I find the source for it? I need the > > source to compile it with a C compiler (AMPC) that will convert the C > > code to Java Bytecode. If the above function is in C++ then I need to > > convert it to C first. > > It comes with llvm-gcc4 in libstdc++. You'll need to compile it to > bytecode by modifying the makefile though. Thanks. Do I need to deal...
2009 Oct 10
2
Matching Dates Closest without going over
Hi, I have 2 date vectors d1 and d2. d1 <- structure(c(14526, 14495, 14464, 14433, 14402, 14371, 14340, 14309, 14278, 14247, 14216, 14185), class = "Date") d2 <- structure(c(14526, 14509, 14488, 14466, 14453, 14441, 14396, 14388, 14343, 14333, 14310, 14281), class = "Date") I would like to create another dataframe with columns d1 and d2, where d1 is the original d1
2006 Nov 05
4
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
On Sat, 2006-11-04 at 21:06 -0800, Reid Spencer wrote: > Hi Napi, > > On Sun, 2006-11-05 at 12:40 +0800, Mohd-Hanafiah Abdullah wrote: > > Hi: > > > > I'm interested in using llvm to convert C++ code to C code. > > I used the following command to do this: > > > > % llvm-g++ -c foo.cpp -o - | llc -march=c -o foo.cbe.c > > Yup, that'll
2006 Nov 17
0
[LLVMdev] C++ to C
...lt;std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >> >>> &, char const*) >>> >>> Where is it defined and where can I find the source for it? I need the >>> source to compile it with a C compiler (AMPC) that will convert the C >>> code to Java Bytecode. If the above function is in C++ then I need to >>> convert it to C first. >>> >> It comes with llvm-gcc4 in libstdc++. You'll need to compile it to >> bytecode by modifying the makefile though....
2006 Nov 20
0
[LLVMdev] C++ to C
...you know where I could get libstdc++ that has been pre-compiled to LLVM bytecode? I know you have been trying to get it compiled, but if there's an older version of it that's available that will be useful to me already. With it I can use llc to get the C version and then compile it using AMPC. Thanks. Napi On Mon, 2006-11-20 at 10:21 +1100, Emil Mikulic wrote: > On Sat, Nov 18, 2006 at 03:55:14PM +0800, Mohd-Hanafiah Abdullah wrote: > > Hi Emil: > > > > How did you modify the Makefile to make it compile libstdc++ into LLVM > > bytecode? Have you had any l...
2006 Nov 05
0
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
On Nov 5, 2006, at 2:30 AM, Mohd-Hanafiah Abdullah wrote: > On Sat, 2006-11-04 at 21:06 -0800, Reid Spencer wrote: >>> In the resulting file foo.cbe.c there are many occurences of '0x0p >>> +0'. >>> What is it used for? Here's a code snippet from the file foo.cbe.c >>> >>> if ((ltmp_126_2 > 0x0p+0)) { >>> goto