gcc issue on AIX

David Edelsohn dje@watson.ibm.com
Tue Mar 25 20:36:00 GMT 2003


>>>>> 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



More information about the Gcc-help mailing list