This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc issue on AIX
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: HRumde at citistreetonline dot com
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 25 Mar 2003 13:56:24 -0500
- Subject: Re: gcc issue on AIX
>>>>> HRumde writes:
HRumde> Thanks for your prompt reply. By the way, if I decompose the big file,
HRumde> and compile all small files by gcc to create a library, then
HRumde> will I get error during linking or execution?
The problem is not the number of functions in the file, it is the
size of a single function. Normally this occurs with machine-generated
code. Decomposing the big file at the function level probably will not
solve the problem -- a few of the individual files will receive the same
errors. You may not be able to decompose individual functions. All of
this is based on my assumption about the error message, which is similar
to problems reported by others.
If the number of static and global functions and variables
overflowed the TOC, then you could use -mminimal-toc when compiling each
file (or -Wl,-bbigtoc to use AIX linker feature). Creating an archive or
all functions in a single file would not matter in that case.
David