www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/14/13:32:04

From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT tu-chemnitz DOT de>
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
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                       *
*****************************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019