search for: _malloc

Displaying 20 results from an estimated 42 matches for "_malloc".

Did you mean: kmalloc
2012 Jan 19
4
[LLVMdev] What happened to "malloc" in LLVM 3.0 IR?
...LLVM 2.6 by a student that produces .ll files, It behaved fine at the time. Trying to take the work over using version 3.0, I run into the problem that "malloc" in the IR is no longer valid: semac1 menu > llvm-as Carre.ll llvm-as: Carre.ll:68:14: error: expected instruction opcode %_malloc = malloc i8, i32 %2 ; <i8*> [#uses=1] ^ Couldn't find any hint on the web about how to modify the code generation in this compiler to go ahead. Thanks for your help! Regards, -- Faulty line above is part of the following function: define i8* @lista_sp...
2004 Aug 06
2
compiling in windows
<p><p>Hi, I'm trying to compile speex in windows and I get this error: Linking...MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc already defined in LIBCD.lib(dbgheap.obj)MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free already defined in LIBCD.lib(dbgheap.obj)MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _memmove already defined in LIBCD.lib(memmove.obj)MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _realloc already defined in LIBCD.l...
2012 Jan 19
0
[LLVMdev] What happened to "malloc" in LLVM 3.0 IR?
...oduces .ll files, It behaved fine at the time. > > Trying to take the work over using version 3.0, I run into the problem that "malloc" in the IR is no longer valid: > > semac1 menu> llvm-as Carre.ll > llvm-as: Carre.ll:68:14: error: expected instruction opcode > %_malloc = malloc i8, i32 %2 ;<i8*> [#uses=1] > ^ > > Couldn't find any hint on the web about how to modify the code generation in this compiler to go ahead. the malloc instruction was removed because it no longer offered any advantages over recognizing...
2005 Jun 06
1
linker error in debug
...defined in MSVCRTD.lib(MSVCR71D.dll) GameClient error LNK2005: __exit already defined in MSVCRTD.lib(MSVCR71D.dll) GameClient error LNK2005: __cexit already defined in MSVCRTD.lib(MSVCR71D.dll) GameClient error LNK2005: __c_exit already defined in MSVCRTD.lib(MSVCR71D.dll) GameClient error LNK2005: _malloc already defined in MSVCRTD.lib(MSVCR71D.dll) GameClient error LNK2005: _calloc already defined in MSVCRTD.lib(MSVCR71D.dll) GameClient error LNK2005: _realloc already defined in MSVCRTD.lib(MSVCR71D.dll) GameClient error LNK2005: _free already defined in MSVCRTD.lib(MSVCR71D.dll) GameClient error L...
2010 Jan 13
2
[LLVMdev] Cross-module function inlining
...you meant for it to be visible to the optimizers but you don't want it to be part of the code generated for your program (ie., you'll link it against newlib later), you should mark the functions with available_externally linkage. > Sorry, I should've been more clear - the calls to _malloc and _free weren't being inlined (see example below). I'm not sure why (happens with or without -simplify-libcalls). So, the resulting .bc file from 'opt' contains live references to symbols that were in its input .bc, but for some reason it stripped them. #include <stdlib.h>...
2009 Oct 20
2
[LLVMdev] [cfe-dev] 2.6 pre-release2 ready for testing
...e/foad/llvm/objdir-2.6/runtime/libprofile/Release/ > BasicBlockTracing.o:BasicBlockTracing.c:(.text+0x36): > undefined reference to `_free' > /home/foad/llvm/objdir-2.6/runtime/libprofile/Release/ > BasicBlockTracing.o:BasicBlockTracing.c:(.text+0xca): > undefined reference to `_malloc' > /home/foad/llvm/objdir-2.6/runtime/libprofile/Release/ > BasicBlockTracing.o:BasicBlockTracing.c:(.text+0xe8): > undefined reference to `_atexit' > /home/foad/llvm/objdir-2.6/runtime/libprofile/Release/ > BlockProfiling.o:BlockProfiling.c:(.text+0x65): > undefined ref...
2010 Jan 14
0
[LLVMdev] Cross-module function inlining
...be visible to the optimizers but you don't want it to be part of the >> code generated for your program (ie., you'll link it against newlib >> later), you should mark the functions with available_externally linkage. > > Sorry, I should've been more clear - the calls to _malloc and _free > weren't being inlined (see example below). I'm not sure why (happens > with or without -simplify-libcalls). So, the resulting .bc file from > 'opt' contains live references to symbols that were in its input .bc, > but for some reason it stripped them. Okay....
2011 Jun 13
2
[LLVMdev] Is LLVM expressive enough to represent asynchronous exceptions?
...every (machine) instruction. Has anyone done this before? Do they allow functions to use anything other than atomic, volatile variables? Even that won't work: void *volatile p = 0; try { p = malloc(7); } finally { free(p); } The try block would look something like: call _malloc movq %rax, p(%rpb) If you take an exception between those two instructions, you are leaking memory. /jakob
2009 Oct 20
0
[LLVMdev] [cfe-dev] 2.6 pre-release2 ready for testing
...; defaulting to 61ec1000 /home/foad/llvm/objdir-2.6/runtime/libprofile/Release/BasicBlockTracing.o:BasicBlockTracing.c:(.text+0x36): undefined reference to `_free' /home/foad/llvm/objdir-2.6/runtime/libprofile/Release/BasicBlockTracing.o:BasicBlockTracing.c:(.text+0xca): undefined reference to `_malloc' /home/foad/llvm/objdir-2.6/runtime/libprofile/Release/BasicBlockTracing.o:BasicBlockTracing.c:(.text+0xe8): undefined reference to `_atexit' /home/foad/llvm/objdir-2.6/runtime/libprofile/Release/BlockProfiling.o:BlockProfiling.c:(.text+0x65): undefined reference to `_atexit' /home/foad...
2009 Aug 28
1
[LLVMdev] [Cygwin] 'make install' woes
...efaulting to 702c1000 /home/ang/build/llvm-coff/runtime/libprofile/Release/B asicBlockTracing.o:BasicBl ockTracing.c:(.text+0x36): undefined reference to `_free' /home/ang/build/llvm-coff/runtime/libprofile/Release/ BasicBlockTracing.o:BasicBl ockTracing.c:(.text+0xca): undefined reference to `_malloc' /home/ang/build/llvm-coff/runtime/libprofile/Release/ BasicBlockTracing.o:BasicBl ockTracing.c:(.text+0xe8): undefined reference to `_atexit' /home/ang/build/llvm-coff/runtime/libprofile/Release/ BlockProfiling.o:BlockProfi ling.c:(.text+0x65): undefined reference to `_atexit' /home/an...
2016 Feb 09
2
binutils (objcopy?) >= 2.26 breaks syslinux (bios) build
On 08.02.2016 19:04, H. Peter Anvin wrote: > On 02/03/16 10:30, H. Peter Anvin via Syslinux wrote: >> On February 3, 2016 7:17:37 AM PST, Celelibi <celelibi at gmail.com> wrote: >>> 2016-02-02 18:50 UTC+01:00, poma via Syslinux <syslinux at zytor.com>: >>>> On 30.01.2016 16:59, poma wrote: >>>>> ... >>>>> >>>>>
2005 Jul 03
2
[LLVMdev] How do you determine whether a function is defined externally to a module ?
How do you determine whether a function is defined externally ? Basically I want a list of external functions but cannot seem to get one. e.g. I want to create the following list for a module EXTERN _printf : NEAR EXTERN _malloc : NEAR EXTERN _an_external_fn : NEAR I have tried all the obvious permutations but cannot seem to get only the extrnally defined symbols. Help, Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050703/...
2009 Oct 20
0
[LLVMdev] [cfe-dev] 2.6 pre-release2 ready for testing
...-2.6/runtime/libprofile/Release/ >> BasicBlockTracing.o:BasicBlockTracing.c:(.text+0x36): >> undefined reference to `_free' >> /home/foad/llvm/objdir-2.6/runtime/libprofile/Release/ >> BasicBlockTracing.o:BasicBlockTracing.c:(.text+0xca): >> undefined reference to `_malloc' >> /home/foad/llvm/objdir-2.6/runtime/libprofile/Release/ >> BasicBlockTracing.o:BasicBlockTracing.c:(.text+0xe8): >> undefined reference to `_atexit' >> /home/foad/llvm/objdir-2.6/runtime/libprofile/Release/ >> BlockProfiling.o:BlockProfiling.c:(.text+0x65):...
2016 Feb 12
2
binutils (objcopy?) >= 2.26 breaks syslinux (bios) build
On February 11, 2016 11:30:02 PM PST, poma <pomidorabelisima at gmail.com> wrote: >... >http://repo.or.cz/syslinux.git/commit/8750016 > >Booting from DVD/CD... > >ISOLINUX 6.04 ETCD >and then hangs > >ttyS0 debug shows single line: >_malloc(24, 0, 2) @ 0x00104bab = > > >$ ld --version >GNU ld version 2.26.20160125 >... >$ gcc --version >gcc (GCC) 6.0.0 20160205 ... >... Yes, it is a bug in ld. I have been working with H.J. and we have just tracked it down. -- Sent from my Android device with K-9 Mail. Please...
2002 Feb 07
1
Vorbisfile Linker Question
...e dlls and libs with my project's proper settings (Multithreaded, 1-byte alignment), everything works peachy when I use the dlls from the *_dynamic project files. When I try to use the *_static .libs though I get the following linker error: Linking... MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc already defined in libcmtd.lib(dbgheap.obj) MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free already defined in libcmtd.lib(dbgheap.obj) MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _memmove already defined in libcmtd.lib(memmove.obj) MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _realloc already defined i...
2011 Jun 13
0
[LLVMdev] Is LLVM expressive enough to represent asynchronous exceptions?
...rough the horrible traffic in France, we should make sure that Spain is actually there. That is a fair objection. :) > void *volatile p = 0; > try { > p = malloc(7); > } > finally { > free(p); > } > > The try block would look something like: > > call _malloc > movq %rax, p(%rpb) > > If you take an exception between those two instructions, you are leaking memory. This is primarily an argument that C is not a good language to write async-exceptions-safe code in. Java has similar potential races with async exceptions for non-memory resources...
2009 Oct 20
3
[LLVMdev] [cfe-dev] 2.6 pre-release2 ready for testing
...ile/Release/ >>> BasicBlockTracing.o:BasicBlockTracing.c:(.text+0x36): >>> undefined reference to `_free' >>> /home/foad/llvm/objdir-2.6/runtime/libprofile/Release/ >>> BasicBlockTracing.o:BasicBlockTracing.c:(.text+0xca): >>> undefined reference to `_malloc' >>> /home/foad/llvm/objdir-2.6/runtime/libprofile/Release/ >>> BasicBlockTracing.o:BasicBlockTracing.c:(.text+0xe8): >>> undefined reference to `_atexit' >>> /home/foad/llvm/objdir-2.6/runtime/libprofile/Release/ >>> BlockProfiling.o:BlockProfil...
2010 Jan 14
1
[LLVMdev] Cross-module function inlining
On 14 Jan 2010, at 05:20, Nick Lewycky wrote: >> calls to _malloc and _free >> weren't being inlined (see example below). I'm not sure why (happens >> with or without -simplify-libcalls). So, the resulting .bc file from >> 'opt' contains live references to symbols that were in its input .bc, >> but for some reason it stripp...
2002 Jun 24
1
Date: Tue, 25 Jun 2002 00:06:12 +0300
Hello! I'm trying to compile decoder_example.c example (MS VC 7) using debug static ogg/vorbis libs with no luck. I got linker errors: Linking... MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _malloc already defined in LIBCD.lib(dbgheap.obj) MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _free already defined in LIBCD.lib(dbgheap.obj) MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _memmove already defined in LIBCD.lib(memmove.obj) MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _realloc already defined i...
2009 Oct 20
0
[LLVMdev] [cfe-dev] 2.6 pre-release2 ready for testing
...;>> BasicBlockTracing.o:BasicBlockTracing.c:(.text+0x36): >>>> undefined reference to `_free' >>>> /home/foad/llvm/objdir-2.6/runtime/libprofile/Release/ >>>> BasicBlockTracing.o:BasicBlockTracing.c:(.text+0xca): >>>> undefined reference to `_malloc' >>>> /home/foad/llvm/objdir-2.6/runtime/libprofile/Release/ >>>> BasicBlockTracing.o:BasicBlockTracing.c:(.text+0xe8): >>>> undefined reference to `_atexit' >>>> /home/foad/llvm/objdir-2.6/runtime/libprofile/Release/ >>>> BlockPro...