www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/11/20:18:21

Xref: news-dnh.mv.net comp.os.msdos.djgpp:1482
Path: news-dnh.mv.net!mv!news.sprintlink.net!newsfeed.internetmci.com!news.mathworks.com!fu-berlin.de!news.belwue.de!green.t-informatik.ba-stuttgart.de!jscharrl
From: jscharrl AT ba-stuttgart DOT de (Jochen Scharrlach)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Trapping timer interrupts in V2
Date: 11 Aug 1995 06:47:26 GMT
Organization: Berufsakademie Stuttgart
Lines: 19
References: <3vp2bq$qf AT mirv DOT unsw DOT edu DOT au> <40bcm2$php AT mirv DOT unsw DOT edu DOT au>
Reply-To: jscharrl AT ba-stuttgart DOT de
Nntp-Posting-Host: green.t-informatik.ba-stuttgart.de
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Tim Hesketh (T DOT Hesketh AT unsw DOT edu DOT au) wrote:
> The simple timer interrupt code (lifted from examples in the 1.12m4
> release) works perfectly when compiled without optimisation, but fails
> with the -O2 switch under V2. I've just discovered this by chance.

Does the code use in/ouport-commands? If this is the case you may need
to use:
#define __dj_ENFORCE_FUNCTION_CALLS

before you "include" anything.

Bye,
Jochen

--
                      ------------------------------------
                      EMail:   jscharrl AT ba-stuttgart DOT de
                         or:   acorn1 AT ftp DOT uni-stuttgart DOT de
                      ------------------------------------

- Raw text -


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