Giter Site home page Giter Site logo

Compiler IRQ/FIQ-Optimization about circle HOT 3 CLOSED

rsta2 avatar rsta2 commented on September 8, 2024
Compiler IRQ/FIQ-Optimization

from circle.

Comments (3)

vanvught avatar vanvught commented on September 8, 2024

The attribute ((interrupt ("FIQ"))) or attribute ((interrupt ("IRQ"))) is used when your code is directly called from the CPU interrupt vector. The compiler generates the register saves/restores based on the interrupt type The same code as generated in https://github.com/rsta2/circle/blob/master/lib/exceptionstub.S with lines; 61,62 and 64 for IRQ. In line 63 there is the call to the C code. Hence the C code is omitting this compiler extension.
Moreover, using these kind of compiler extensions makes your code less portable. Hence your code might be restricted to use with specific compilers only.

from circle.

rsta2 avatar rsta2 commented on September 8, 2024

There are often different ways to implement such things. I prefer to use assembler code for hardware stubs like the IRQ and FIQ entry and exit code, because it's more flexible.

from circle.

MaPePeR avatar MaPePeR commented on September 8, 2024

Thanks for the response!

from circle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.