From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: Force call for function Date: Thu, 14 Nov 1996 16:05:27 +0100 Organization: TU Chemnitz-Zwickau Lines: 22 Message-ID: <328B3537.934@Mathematik.tu-chemnitz.de> References: <328BC51C DOT 79C6 AT spy DOT isp DOT nsc DOT ru> NNTP-Posting-Host: tantalus-e.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: ilya AT spy DOT isp DOT nsc DOT ru To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Ilya P. Ryzhenkov wrote: > > Hello! > I wonder if there is a way to force function call > regardless of optimization level on a per function basis. I don't know if I'm correct, but I think for this is the keyword "volatile", that means for your example: volatile int f() { return 1; } Or use the harder trick, by putting the singel function in a separate source file. Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************