gcc 2.7.x compile time for a.out and ELF

gcc 2.7.x compile time for a.out and ELF

Post by Pedro Miguel Monteiro Carvalh » Thu, 08 Feb 1996 04:00:00



Does anyone know why compile times for ELF are about ten times
bigger than for a.out ?

Check it out:
   gcc -c -b i486-linuxaout test_file.c  ----- 3 seconds

   gcc -c -b i486-linux test_file.c ---------- 27 seconds

Using Slackware 3.0.0 with kernel 1.3.59 ELF in a Pentium 133, 32M,
SCSI Adaptec 2940.

Best regards,

                Pedro Carvalho


                Digital Processing of Speech
                Engineering and Computer Systems Institute
                INESC, Lisbon, Portugual

 
 
 

gcc 2.7.x compile time for a.out and ELF

Post by H J » Tue, 13 Feb 1996 04:00:00



: Does anyone know why compile times for ELF are about ten times
: bigger than for a.out ?

: Check it out:
:    gcc -c -b i486-linuxaout test_file.c  ----- 3 seconds
:    
:    gcc -c -b i486-linux test_file.c ---------- 27 seconds

: Using Slackware 3.0.0 with kernel 1.3.59 ELF in a Pentium 133, 32M,
: SCSI Adaptec 2940.

: Best regards,

Please double check the binary formats of your a.out compiler,
as and ld. You can use gccc -v to see what are used. You
should time each program invoked by gcc.

Hint: compile a.out != compile ELF.

H.J.

 
 
 

1. enabling gcc to compile both a.out and ELF bin.?

Hello.

I installed ELF binary upgrade in my Linux box. I followed
the procedure in ELF howto document exactly, and everyrhing
seemed to be fine without any problem until the final step
described in ELF-howto. I tested if my gcc(2.7.2) could
compile both a.out binary and new ELF binary by compiling
'hello.c' program. It can compile hello.c into ELF binary
file well, but it cannot produce old a.out binary.
The elf-howto document says that after following the
installation procedure, gcc should be able to compile
both a.out and ELF binaries. What's wrong?

I tested gcc by the following commands:

i) ELF binary
$ gcc hello.c           ;this works fine!

ii) a.out binary
$ gcc -b i468-linuxaout hello.c
/usr/i486-linuxaout/bin/ld: cannot open -lc: No such file or directory
$

Thank you in advance.

                                        Sohn, Jung-woo
                                        aerospace eng.
                                        seoul national univ.
                                        south korea.
                                        http://plaza.snu.ac.kr/~sylph

2. Installed - What now???

3. Solaris 2.7, cannot compile with gcc

4. How do I save Netscape preferences using twm on FreeBSD?

5. compiling dilemma(gcc 2.7.x) /sig 11

6. New GTK and Qt books?

7. HELP:Unable to compile Linux 2.1 w/gcc 2.7 - no 386 inst 'rdtsc'

8. Help Ultra66 and RedHat6.1

9. Error compiling linux 2.0.13 with gcc 2.7.2p

10. Cannot Compile linue 1.3.86 with GCC 2.7.2p

11. gcc 2.7.2p vs. gcc 2.6.3

12. gcc 2.6 lib use with gcc 2.7?

13. Elf distribution: I cannot run a.out(ZMAGIC) but a.out(QMAGIC)???