Coder Social home page Coder Social logo

NEON registers about context HOT 8 CLOSED

mofr avatar mofr commented on June 3, 2024
NEON registers

from context.

Comments (8)

olk avatar olk commented on June 3, 2024

It was requested by users not to preserve registers s16-s31.

from context.

mofr avatar mofr commented on June 3, 2024

Do you remember why it was requested? And how to deal with it in case of compiler optimizations?
I'm asking because it violates ARMv7 calling conventions and compiler generates "wrong" code in conjunction with boost.context and thread switching.

from context.

olk avatar olk commented on June 3, 2024

I was told I should remove it because it consumes cycles isn't needed. One year ago boost.context has preserved the FP-env stuff.

from context.

olk avatar olk commented on June 3, 2024

I would add something like:
#if (defined(VFP_FP) && !defined(SOFTFP))
push {d8-d15}
#endif
...
#if (defined(VFP_FP) && !defined(SOFTFP))
pop {d8-d15}
#endif

from context.

olk avatar olk commented on June 3, 2024

Could yout test branch fp (https://github.com/boostorg/context/tree/fp) please?
I've no access to a ARM board at the moment.

from context.

mofr avatar mofr commented on June 3, 2024

Unfortunately, I'm using copy-pasted version of boost. However, i've applied your changes into my version and issue has gone.
Thanks for your help and fast replies.

from context.

olk avatar olk commented on June 3, 2024

Thank you too!

from context.

mofr avatar mofr commented on June 3, 2024

Do you plan to enable such option in future releases?

from context.

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.