* avoid optimization of a function
@ 2004-09-14 11:37 Reinhard Staudinger
2004-09-14 11:44 ` Eljay Love-Jensen
0 siblings, 1 reply; 2+ messages in thread
From: Reinhard Staudinger @ 2004-09-14 11:37 UTC (permalink / raw)
To: gcc-help
Is it possible to tell gcc to not optimize just a certain function in
the source code?
Thank you for help.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: avoid optimization of a function
2004-09-14 11:37 avoid optimization of a function Reinhard Staudinger
@ 2004-09-14 11:44 ` Eljay Love-Jensen
0 siblings, 0 replies; 2+ messages in thread
From: Eljay Love-Jensen @ 2004-09-14 11:44 UTC (permalink / raw)
To: Reinhard Staudinger, gcc-help
Hi Reinhard,
Isolate that function in its own source file, then use whatever
optimization settings you want for that translation unit.
HTH,
--Eljay
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-09-14 11:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-14 11:37 avoid optimization of a function Reinhard Staudinger
2004-09-14 11:44 ` Eljay Love-Jensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).