search for: _printf

Displaying 20 results from an estimated 46 matches for "_printf".

Did you mean: sprintf
2002 Jan 02
1
multiple definitions in C code
...to different behaviors at different occasions at run time. Thus [localhost:~/Desktop/rings] deleeuw% gcc -c -fno-common elrond.c [localhost:~/Desktop/rings] deleeuw% gcc -c -fno-common galadriel.c [localhost:~/Desktop/rings] deleeuw% nm -pg elrond.o 000000a8 S _bilbo 00000000 T _elrond U _printf U dyld_stub_binding_helper [localhost:~/Desktop/rings] deleeuw% nm -pg galadriel.o 000000c0 S _bilbo 00000000 T _galadriel U _printf U dyld_stub_binding_helper and then [localhost:~/Desktop/rings] deleeuw% gcc -bundle -o rings.so elrond.o galadriel.o /usr/bin/ld: mu...
2005 Aug 10
1
RMySQL not loading on Mac OS X
...y(RMySQL) Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library '/Library/Frameworks/ R.framework/Resources/library/RMySQL/libs/RMySQL.so': dlopen(/Library/Frameworks/R.framework/Resources/library/RMySQL/ libs/RMySQL.so, 6): Symbol not found: _printf$LDBLStub Referenced from: /Library/Frameworks/R.framework/Resources/library/ RMySQL/libs/RMySQL.so Expected in: flat namespace Error in library(RMySQL) : .First.lib failed for 'RMySQL' Any hint will be highly appreciated! Best, Georg -- Georg Wilhelm Otto Max-Planck-Institute...
2010 Jan 26
2
[LLVMdev] llc generated assembly does not work with gcc 3.4.4
...; @main ; BB#0: ; %entry subl $20, %esp movl 24(%esp), %eax movl $0, 16(%esp) movl $($_.str), (%esp) movl %eax, 12(%esp) movl 28(%esp), %eax movl %eax, 8(%esp) call _printf movl 16(%esp), %eax addl $20, %esp ret .data ; @.str $_.str: db "hello world\n\000" Aparently, gcc doesn't recognize ; as comments nor can it handle the db directive. How can I generate assembly...
2010 Jan 28
2
[LLVMdev] llc generated assembly does not work with gcc 3.4.4
...; @main ; BB#0: ; %entry subl $20, %esp movl $0, 16(%esp) movl 24(%esp), %eax movl %eax, 12(%esp) movl 28(%esp), %eax movl %eax, 8(%esp) movl $($_.str), (%esp) call _printf movl 16(%esp), %eax addl $20, %esp ret .data ; @.str $_.str: db "hello world\n\000" which is not digested by gcc. Alex Anton Korobeynikov schrieb: >> Well, can I enforce gcc compatible output...
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...
2017 Jun 06
4
LLD support for mach-o aliases (weak or otherwise)
...o is not exported: $ cat a.c #include <stdio.h> void foo() __attribute__((weak_import)) __asm("_bar"); void bar() { printf("bar\n"); } int main() { foo(); } $ cc -c a.c -o a.o $ nm a.o 0000000000000000 T _bar 0000000000000020 T _main U _printf Any ideas how I can get foo as an exported symbol? Is weak alias or plan alias support planned for mach-o in LLD? The goal at a minimum is to make the weak_alias macro emit a strong alias with clang/ld64 or clang/LLD? so I don’t need to diverge too much from the upstream musl source (as the lac...
2017 Apr 27
2
ld.lld on MacOS question
...acOS is a pain in the ass despite that I am running on MacOS. (I’ve not tried windows yet.) I seem to be able to compile with clang a proper mach object file for a hello function. However, when I link this function into a shared library I (surprisingly for a shared lib?) get undefined symbols like _printf, stub runtime: dyld_stub_binder, _main, etc. Using the flag -undefined dynamic_lookup I get no errors or warnings but then when I try to link the shared library to a main program I get the error: ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag but no LC_REEXPORT_DYLIB load commands: ./...
2009 Mar 02
0
[LLVMdev] Tight overlapping loops and performance
On Mon, Mar 2, 2009 at 2:45 PM, Jonathan Turner <probata at hotmail.com> wrote: > For which version of gcc?  I should mention I'm on OS X and using the LLVM > SVN. gcc 4.3. It's also possible this is processor-sensitive. >> First, try looking at the generated code... the code LLVM generates is >> probably not what you're expecting. I'm getting the
2017 Apr 27
1
ld.lld on MacOS question
...s despite that I am running on MacOS. (I’ve not > tried windows yet.) > > I seem to be able to compile with clang a proper mach object file for a > hello function. However, when I link this function into a shared library I > (surprisingly for a shared lib?) get undefined symbols like _printf, stub > runtime: dyld_stub_binder, _main, etc. Using the flag > > -undefined dynamic_lookup > > I get no errors or warnings but then when I try to link the shared library > to a main program I get the error: > > ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag > but n...
2017 Feb 27
2
lli can't find vsprintf
...vsprintf' which could not be resolved! D:\llvm\examples\helloworld>link hello.obj Microsoft (R) Incremental Linker Version 14.00.24215.1 Copyright (C) Microsoft Corporation. All rights reserved. hello.obj : error LNK2019: unresolved external symbol ___acrt_iob_func referenced in function _printf hello.obj : error LNK2019: unresolved external symbol ___stdio_common_vsprintf referenced in function __vsnprintf_l hello.obj : error LNK2019: unresolved external symbol ___stdio_common_vfprintf referenced in function __vfprintf_l LINK : error LNK2001: unresolved external symbol _mainCRTStartup hel...
2010 Jan 26
0
[LLVMdev] llc generated assembly does not work with gcc 3.4.4
...t; ; BB#0: ; %entry > subl $20, %esp > movl 24(%esp), %eax > movl $0, 16(%esp) > movl $($_.str), (%esp) > movl %eax, 12(%esp) > movl 28(%esp), %eax > movl %eax, 8(%esp) > call _printf > movl 16(%esp), %eax > addl $20, %esp > ret > .data > ; @.str > $_.str: > db "hello world\n\000" > > Aparently, gcc doesn't recognize ; as comments nor can it handle the &g...
2011 May 26
2
[LLVMdev] LLVM CodeGen Engineer job opening with Apple's compiler team
Hi all, LLVM CodeGen and Tools team at Apple is looking for exceptional compiler engineers. This is a great opportunity to work with many of the leaders in the LLVM community. If you are interested in this position, please send your resume / CV and relevant information to evan.cheng at apple.com Thanks, Evan Job description The Apple compiler team is seeking an engineer who is strongly
2011 May 27
1
[LLVMdev] Question about ARM/vfp/NEON code generation
...vstr.32 s2, [sp, #12] vstr.32 s1, [sp, #8] ble LBB20_2 @ BB#1: @ %bb vldr.32 s0, [r7, #-16] ldr r0, LCPI20_0 LPC20_0: add r0, pc, r0 vcvt.f64.f32 d1, s0 vmov r1, r2, d1 bl _printf str r0, [sp, #4] b LBB20_3 LBB20_2: @ %bb1 vldr.32 s0, [r7, #-12] ldr r0, LCPI20_1 LPC20_1: add r0, pc, r0 vcvt.f64.f32 d1, s0 vmov r1, r2, d1 bl _printf str r0,...
2009 Mar 03
3
[LLVMdev] Tight overlapping loops and performance
....align 4,0x90 LBB1_1: ## loopto cmpl $1, %eax leal -1(%eax), %eax cmove %edx, %eax incl %ecx cmpl $999999999, %ecx jne LBB1_1 ## loopto LBB1_2: ## bb1 movl %eax, 4(%esp) movl $LC, (%esp) call _printf xorl %eax, %eax addl $12, %esp ret .section __TEXT,__cstring,cstring_literals LC: ## LC .asciz "Timeout: %i\n" .subsections_via_symbols Setting the loops to decl instead of cmove/incl might seem like mo...
2010 Jan 28
2
[LLVMdev] llc generated assembly does not work with gcc 3.4.4
...subl $20, %esp >>>> movl 24(%esp), %eax >>>> movl $0, 16(%esp) >>>> movl $($_.str), (%esp) >>>> movl %eax, 12(%esp) >>>> movl 28(%esp), %eax >>>> movl %eax, 8(%esp) >>>> call _printf >>>> movl 16(%esp), %eax >>>> addl $20, %esp >>>> ret >>>> .data >>>> ; @.str >>>> $_.str: >>>> db "hello world\n\000" >>&...
2017 May 11
2
ld.lld on MacOS question
...pain in the ass despite that I am running on MacOS. (I’ve not tried windows yet.) > > I seem to be able to compile with clang a proper mach object file for a hello function. However, when I link this function into a shared library I (surprisingly for a shared lib?) get undefined symbols like _printf, stub runtime: dyld_stub_binder, _main, etc. Using the flag > > -undefined dynamic_lookup > > I get no errors or warnings but then when I try to link the shared library to a main program I get the error: > > ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag > but no...
2009 Mar 02
3
[LLVMdev] Tight overlapping loops and performance
> Date: Mon, 2 Mar 2009 13:41:45 -0800 > From: eli.friedman at gmail.com > To: llvmdev at cs.uiuc.edu > Subject: Re: [LLVMdev] Tight overlapping loops and performance > > Hmm, on my computer, I get around 2.5 seconds with both gcc -O3 and > llvm-gcc -O3 (using llvm-gcc from svn). Not sure what you're doing > differently; I wouldn't be surprised if it's
2017 May 06
0
ld.lld on MacOS question
...running on MacOS. (I’ve not >> tried windows yet.) >> >> I seem to be able to compile with clang a proper mach object file for a >> hello function. However, when I link this function into a shared library I >> (surprisingly for a shared lib?) get undefined symbols like _printf, stub >> runtime: dyld_stub_binder, _main, etc. Using the flag >> >> -undefined dynamic_lookup >> >> I get no errors or warnings but then when I try to link the shared >> library to a main program I get the error: >> >> ld: malformed dylib has MH_NO_R...
2015 Feb 13
2
[LLVMdev] trunk's optimizer generates slower code than 3.5
...; _main+E3 j ... mov rdi, rax ; void * call _free lea rdi, aDSolutions ; "%d solutions\n" xor ebx, ebx xor eax, eax mov esi, r14d call _printf loc_100000F29: ; CODE XREF: _main+16 j mov eax, ebx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp...
2010 Jan 27
3
[LLVMdev] llc generated assembly does not work with gcc 3.4.4
...; %entry >> subl $20, %esp >> movl 24(%esp), %eax >> movl $0, 16(%esp) >> movl $($_.str), (%esp) >> movl %eax, 12(%esp) >> movl 28(%esp), %eax >> movl %eax, 8(%esp) >> call _printf >> movl 16(%esp), %eax >> addl $20, %esp >> ret >> .data >> ; @.str >> $_.str: >> db "hello world\n\000" >> >> Aparently, gcc doesn't recognize ; as...