This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Hot/cold partitioning fixes


I'm working on a patch to fix PR 20719, which should also take care of this problem.
It includes David Edelsohn's earlier patch as well, with some slight modifications. I'm
hoping to have the problem fixed and the patch ready for submission later today.


-- Caroline Tice
ctice@apple.com

On Apr 1, 2005, at 11:30 AM, Zagorodnev, Grigory wrote:

Hopefully I missed something, but why object file size bloat is not
considered there? Even if no cold section detected, compiler emits 3
extra labels for each routine. That makes symbol table growing
dramatically.

Local labels don't go into the object file.


zw

Not exactly. Please see this example:


$ cat foo.c
int puts(const char *);
int foo(){
    puts("hello");
}

$ gcc -c foo.c
$ nm foo.o
0000000000000000 T foo
0000000000000060 t foo.end
0000000000000000 t foo.end.cold
0000000000000000 t foo.hot_section
                 U puts

- Grigory



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]