This is the mail archive of the gcc@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] |
Zack Weinberg wrote:
Serge Manigault <Serge.Manigault@ask.fr> writes:Hello, I didn't find any #pragma to force one optimization level in a file (using asm()) when other files are optimized with other level -O0 for debug and -O2 for final use.There is no way to do this.
Incidentally, this is frequently requested by Apple developers who are trying to fine-tune performance - moving code into a separate file is not desirable because it affects visibility of static variables as well as inlining possibilities. Since Metrowerks' compiler does support this #pragma, its lack in GCC becomes a reason to continue using the proprietary compiler instead of the free one. Stan
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |