|
From: | felix |
Subject: | Re: [Chicken-users] disable-interrupts |
Date: | Sun, 06 Apr 2003 23:41:51 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 |
Chris Double wrote:
On Sun, 06 Apr 2003 20:43:36 +0200 (CEST), "Sven Hartrumpf" <address@hidden> said:"Disable timer-interrupts checks in the compiled program. Threads can not be preempted in main- or library-units that contain this declaration."But when I looked at the generated C code I couldn't see any difference between a file compiled with disable-interrupts and without. So how does it know to disable the interrupts?
Are you compiling with the "-Ob" option? Then interrupts are disabled anyway. Without the -disable-interrupts option, or one of the (way too numerous) declaration specifiers, the backend will generate calls to `C_check_for_interrupt'. cheers, felix
[Prev in Thread] | Current Thread | [Next in Thread] |