[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] math.h



Here is an interesting hint about what is linked into your executable, and why it is so big.

It is about the "-t" linker option, to be used as "-Wl,-t" on the gcc command line. It displays all the .o included in your executable, and where they come from.

This is the awful example of a single "Hello, World!".

$ gcc hw.c -o hw.tos -Wl,-t
.../bin/ld: mode m68kmint
.../lib/crt0.o
/tmp/ccQ7VL2u.o
(.../lib/gcc/m68k-atari-mint/4.4.0/libgcc.a)__main.o
(.../lib/libc.a)globals.o
(.../lib/libc.a)heapbase.o
(.../lib/libc.a)stksiz.o
(.../lib/libc.a)ident.o
(.../lib/libc.a)ident_sock.o
(.../lib/libc.a)crtinit.o
(.../lib/libc.a)puts.o
(.../lib/libc.a)atexit.o
(.../lib/libc.a)setstack.o
(.../lib/libc.a)main.o
(.../lib/libc.a)strrchr.o
(.../lib/libc.a)initsig.o
(.../lib/libc.a)fputs.o
(.../lib/libc.a)internals.o
(.../lib/libc.a)malloc.o
(.../lib/libc.a)realloc.o
(.../lib/libc.a)binmode.o
(.../lib/libc.a)fileno.o
(.../lib/libc.a)fstat.o
(.../lib/libc.a)isatty.o
(.../lib/libc.a)defmode.o
(.../lib/libc.a)sysvar.o
(.../lib/libc.a)getcookie.o
(.../lib/libc.a)setvbuf.o
(.../lib/libc.a)strncmp.o
(.../lib/libc.a)exit.o
(.../lib/libc.a)strncpy.o
(.../lib/libc.a)unx2dos.o
(.../lib/libc.a)strlen.o
(.../lib/libc.a)getenv.o
(.../lib/libc.a)fwrite.o
(.../lib/libc.a)memset.o
(.../lib/libc.a)stdio_init.o
(.../lib/libc.a)sysd-stdio.o
(.../lib/libc.a)assert.o
(.../lib/libc.a)bzero.o
(.../lib/libc.a)sbrk.o
(.../lib/libc.a)getpagesize.o
(.../lib/libc.a)bcopy.o
(.../lib/libc.a)do_fstat.o
(.../lib/libc.a)fflush.o
(.../lib/libc.a)fcloseall.o
(.../lib/libc.a)libc_exit.o
(.../lib/libc.a)toxxx.o
(.../lib/libc.a)ctype.o
(.../lib/libc.a)strncat.o
(.../lib/libc.a)strcmp.o
(.../lib/libc.a)memchr.o
(.../lib/libc.a)open.o
(.../lib/libc.a)dup2.o
(.../lib/libc.a)close.o
(.../lib/libc.a)lseek.o
(.../lib/libc.a)write.o
(.../lib/libc.a)read.o
(.../lib/libc.a)itoa-digits.o
(.../lib/libc.a)abort.o
(.../lib/libc.a)sysctl.o
(.../lib/libc.a)unixtime.o
(.../lib/libc.a)getuid.o
(.../lib/libc.a)getgid.o
(.../lib/libc.a)inode.o
(.../lib/libc.a)time.o
(.../lib/libc.a)fclose.o
(.../lib/libc.a)geteuid.o
(.../lib/libc.a)quickstat.o
(.../lib/libc.a)chmod.o
(.../lib/libc.a)ioctl.o
(.../lib/libc.a)strtoul.o
(.../lib/libc.a)enoent.o
(.../lib/libc.a)console.o
(.../lib/libc.a)isctty.o
(.../lib/libc.a)raise.o
(.../lib/libc.a)mktime.o
(.../lib/libc.a)uidgid.o
(.../lib/libc.a)gettimeofday.o
(.../lib/libc.a)do_stat.o
(.../lib/libc.a)strchr.o
(.../lib/libc.a)getegid.o
(.../lib/libc.a)getpid.o
(.../lib/libc.a)kill.o
(.../lib/libc.a)tz.o
(.../lib/libc.a)localtime.o
(.../lib/libc.a)strcat.o
(.../lib/libc.a)access.o
(.../lib/libc.a)strcpy.o
(.../lib/libc.a)gmtime.o
(.../lib/libc.a)getgroups.o
(.../lib/libc.a)getpwuid.o
(.../lib/libc.a)grp.o
(.../lib/libc.a)getpwuid_r.o
(.../lib/libc.a)rewind.o
(.../lib/libc.a)fopen.o
(.../lib/libc.a)fgets.o
(.../lib/libc.a)atoi.o
(.../lib/libc.a)fgetpwent_r.o
(.../lib/libc.a)clearerr.o
(.../lib/libc.a)fseek.o
(.../lib/libc.a)newstream.o
(.../lib/libc.a)memccpy.o
(.../lib/libc.a)strtol.o
(.../lib/libc.a)ungetc.o
(.../lib/gcc/m68k-atari-mint/4.4.0/libgcc.a)_umodsi3.o
(.../lib/gcc/m68k-atari-mint/4.4.0/libgcc.a)_mulsi3.o
(.../lib/gcc/m68k-atari-mint/4.4.0/libgcc.a)_udivsi3.o
(.../lib/gcc/m68k-atari-mint/4.4.0/libgcc.a)_divsi3.o
(.../lib/gcc/m68k-atari-mint/4.4.0/libgcc.a)_modsi3.o

--
Vincent Rivière