Displaying 13 results from an estimated 13 matches for "___main".
Did you mean:
__main
2006 Aug 20
2
[LLVMdev] stdlib.h
...vm-gcc4) from source, and now it can
find stdlib.c and all the other sources, but I am having some other
problems with the new libraries.
1) If I try: llvm-gcc source.c -o source; llc -f source.bc -o ch.s ;
gcc ch.s -o exec,
I end up getting this error from gcc:
/usr/bin/ld: Undefined symbols:
___main
collect2: ld returned 1 exit status
If I fix this, by replacing ___main by main manually, the program
seg-faults.
It used to work fine with the cfrontend that came together with llvm. Do
you
guys know what can be happening?
2) If I try: llvm-g++ source.cpp -o source ; source
I get this error:...
2006 Aug 20
0
[LLVMdev] stdlib.h
...n
> find stdlib.c and all the other sources, but I am having some other
> problems with the new libraries.
> 1) If I try: llvm-gcc source.c -o source; llc -f source.bc -o ch.s ;
> gcc ch.s -o exec,
> I end up getting this error from gcc:
> /usr/bin/ld: Undefined symbols:
> ___main
> collect2: ld returned 1 exit status
> If I fix this, by replacing ___main by main manually, the program
> seg-faults.
>
> It used to work fine with the cfrontend that came together with llvm. Do
> you
> guys know what can be happening?
>
> 2) If I try: llvm-g++ so...
2006 Aug 21
1
[LLVMdev] stdlib.h
...he other sources, but I am having some other
> > problems with the new libraries.
> > 1) If I try: llvm-gcc source.c -o source; llc -f source.bc -o ch.s ;
> > gcc ch.s -o exec,
> > I end up getting this error from gcc:
> > /usr/bin/ld: Undefined symbols:
> > ___main
> > collect2: ld returned 1 exit status
> > If I fix this, by replacing ___main by main manually, the program
> > seg-faults.
> >
> > It used to work fine with the cfrontend that came together with llvm. Do
> > you
> > guys know what can be happening?
&...
2009 Jul 19
0
[LLVMdev] Where does llvm.memcpy.i64 and friends get lowered ?
I am getting a simular problem with ___main appearing if '@main' is used but
there is no instance of it in the Module iterators, only in the relocations.
Is it possible to do something about these 'ghost symbols' and have them
defined in Module. Rather than having to check for them and pick them up
when processing relocation...
2009 Jul 19
2
[LLVMdev] Where does llvm.memcpy.i64 and friends get lowered ?
On Jul 19, 2009, at 8:35 AM, Aaron Gray wrote:
> I am getting a simular problem with ___main appearing if '@main' is
> used but there is no instance of it in the Module iterators, only in
> the relocations.
>
> Is it possible to do something about these 'ghost symbols' and have
> them defined in Module. Rather than having to check for them and
> pi...
2009 Jul 18
3
[LLVMdev] Where does llvm.memcpy.i64 and friends get lowered ?
2009/7/19 Chris Lattner <clattner at apple.com>
> On Jul 18, 2009, at 3:28 PM, Aaron Gray wrote:
>
> 2009/7/18 Chris Lattner <clattner at apple.com>
>
>> On Jul 18, 2009, at 2:56 PM, Aaron Gray wrote:
>>
>> I am iterating through Modules symbols for 'test/CodeGen/X86/memcpy.bc
>>
>>
>> If you're iterating over functions,
2006 Aug 20
2
[LLVMdev] stdlib.h
Dear guys,
my llvm-gcc does not compile stdlib.h correctly. I found this
explanation
here: http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=567
Indeed, I am running Mac OS 10.4. Do I have to rebuild my gcc
front-end from source, or there is a script in the LLVM website that could
help me?
Best regards,
Fernando
2006 Aug 20
0
[LLVMdev] stdlib.h
Rebuilding llvm-gcc4 from source should work fine. Please see the
directions in the file README.LLVM at the top level src directory. You
can check llvm-gcc4 out from Subversion with the command:
svn co svn://anonsvn.opensource.apple.com/svn/llvm/trunk llvm-gcc4
Reid.
On Sat, 2006-08-19 at 20:15 -0700, Fernando Magno Quintao Pereira wrote:
> Dear guys,
>
> my llvm-gcc does not
2009 Jul 19
0
[LLVMdev] Where does llvm.memcpy.i64 and friends get lowered ?
2009/7/19 Chris Lattner <clattner at apple.com>
>
> On Jul 19, 2009, at 8:35 AM, Aaron Gray wrote:
>
> I am getting a simular problem with ___main appearing if '@main' is used
> but there is no instance of it in the Module iterators, only in the
> relocations.
>
> Is it possible to do something about these 'ghost symbols' and have them
> defined in Module. Rather than having to check for them and pick them up
&g...
2009 Jul 19
1
[LLVMdev] Where does llvm.memcpy.i64 and friends get lowered ?
On Jul 19, 2009, at 12:43 PM, Aaron Gray wrote:
> 2009/7/19 Chris Lattner <clattner at apple.com>
>
> On Jul 19, 2009, at 8:35 AM, Aaron Gray wrote:
>
>> I am getting a simular problem with ___main appearing if '@main' is
>> used but there is no instance of it in the Module iterators, only
>> in the relocations.
>>
>> Is it possible to do something about these 'ghost symbols' and have
>> them defined in Module. Rather than having to check fo...
2018 Nov 30
2
(Question regarding the) incomplete "builtins library" of "Compiler-RT"
...with "-target i386-mingw" this generates the following code
(see <https://godbolt.org/z/yPk4Jo>):
_main: # @main
push ebp
mov ebp, esp
mov eax, 4456
call __alloca
mov eax, dword ptr [ebp + 8]
mov dword ptr [ebp - 4452], eax # 4-byte Spill
call ___main
mov dword ptr [ebp - 4], 0
mov eax, dword ptr [ebp + 8]
mov dword ptr [esp], eax
call __alloca
add esp, 4456
pop ebp
ret
Compiled with "-target i386-win32" this generates the following code
(see <https://godbolt.org/z/Hc8jaL>):
_main: # @mai...
2008 Jun 11
0
[LLVMdev] Miscompilation on MingW32
...) <=== should be 8(%esp) or -40(%ebp) ?
LBB1_2: # return
movl -16(%ebp), %eax
movl (%eax), %eax
leal -12(%ebp), %esp
popl %esi
popl %edi
popl %ebx
popl %ebp
ret
.align 16
.globl _main
.def _main; .scl 2; .type 32; .endef
_main:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
call ___main
movl $1, (%esp)
call _tmp
addl $8, %esp
popl %ebp
ret
------------------------------------------------------------------------
Any idea why this is happening ?
Thanks,
Julien
--
Julien Lerouge
PGP Key Id: 0xB1964A62
PGP Fingerprint: 392D 4BAD DB8B CE7F 4E5F FA3C 62DB 4AA7 B196 4A62
PGP Pu...
2018 Nov 30
3
(Question regarding the) incomplete "builtins library" of "Compiler-RT"
Hi @ll,
compiler-rt implements (for example) the MSVC (really Windows)
specific routines compiler-rt/lib/builtins/i386/chkstk.S and
compiler-rt/lib/builtins/x86_64/chkstk.S as __chkstk_ms()
See <http://msdn.microsoft.com/en-us/library/ms648426.aspx>
Is there any special reason why compiler-rt doesn't implement
other MSVC specific functions (alias builtins or "compiler