Re: interrupt service routine using VC++ 2005

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thanks a lot, this is perfect for my needs, so I can take care of all
my requirements by myself.

Daniel

Igor Tandetnik schrieb:

mysli@xxxxxx wrote:
So, will it be possible to force the VC++ compiler to code a function
as a ISR with all the requirement of an ISR?

Try __declspec(naked). For the function thus marked, the compiler does
not generate prolog or epilog code, you get to write your own using
__asm directive.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925

.



Relevant Pages

  • Re: regarding ISR
    ... precautions i need to take care ?? ... a)Functions such as malloc() are typically not re-entrant. ... b)The allocation would take too long (defeats the rationale of an ISR). ...
    (comp.arch.embedded)
  • Re: regarding ISR
    ... precautions i need to take care ?? ... you shouldn't use dynamic memory at all. ... You certainly should not allocate any during an ISR. ...
    (comp.arch.embedded)
  • regarding ISR
    ... can i allocate dynamic memory in ISR ?? ... If yes wat shd be the ... precautions i need to take care ?? ...
    (comp.arch.embedded)