Mail Archives: djgpp/2001/09/17/10:02:47
> GCC used as a C compiler does not support function overloading, which is
> not part of the C programming language. The Gnu Compiler Collection
> (GCC) does include a C++ compiler (g++ or gpp), a Pascal compiler (gpc),
> and a Fortran compiler (g77) among others. Those other components of
> the Gnu Compiler Collection support language features for those other
> languages, and g++ does indeed support function overloading.
I tried C++ compiler gpp yesterday ... but the problem is, that this
compiler will generate a load of overhead which I don't need. Thats gpp
output:
___gnu_compiled_cplusplus:
.text
.p2align 2
.globl _main
_main:
LFB1:
pushl %ebp
LCFI0:
movl %esp,%ebp
LCFI1:
xorl %eax,%eax
jmp L2
.p2align 4,,7
L2:
movl %ebp,%esp
popl %ebp
ret
LFE1:
.section .eh_frame
___FRAME_BEGIN__:
.long LLCIE1
LSCIE1:
.long 0
.byte 0x1
.byte 0x0
.byte 0x1
.byte 0x7c
.byte 0x8
.byte 0xc
.byte 0x5
.byte 0x4
.byte 0x88
.byte 0x1
.p2align 2,0
LECIE1:
.set LLCIE1,LECIE1-LSCIE1
.long LLFDE1
LSFDE1:
.long LSFDE1-___FRAME_BEGIN__
.long LFB1
.long LFE1-LFB1
.byte 0x4
.long LCFI0-LFB1
.byte 0xe
.byte 0x8
.byte 0x84
.byte 0x2
.byte 0x4
.long LCFI1-LCFI0
.byte 0xd
.byte 0x4
.p2align 2,0
LEFDE1:
.set LLFDE1,LEFDE1-LSFDE1
that's gcc output:
gcc2_compiled.:
___gnu_compiled_c:
.text
.p2align 2
.globl _main
_main:
pushl %ebp
movl %esp,%ebp
L2:
movl %ebp,%esp
popl %ebp
ret
- Raw text -