GithubHelp home page GithubHelp logo

Comments (6)

aykevl avatar aykevl commented on June 14, 2024

I believe TinyGo already uses softfloat with GOARM=6 because not all ARMv6 chips have an FPU.
Is this not the case for you?
(Can you explain what system you'd like to compile for?)

from tinygo.

MDr164 avatar MDr164 commented on June 14, 2024

Actually I would need both ARMv6 and ARMv7 with softfloat support for my usecase and it's more about supporting the same naming scheme that upstream Go uses since 1.22. I can have a try at implementing this as I got the chips here that require softfloat due to a lack of an FPU. The systems I'm looking to compile for are the Aspeed BMC chips. Both the 2500 and 2600 are missing the FPU.

from tinygo.

aykevl avatar aykevl commented on June 14, 2024

and ARMv7 with softfloat support

Right, I wasn't aware these cores existed. Thanks for clearing that up!
(You'd still be able to compile with GOARM=6 for compatibility but it would be slower).

from tinygo.

MDr164 avatar MDr164 commented on June 14, 2024

Yep, that's also why this isn't anything high prio or blocking but might as well have it in to make use of the v7 features without an FPU. Still need to figure out which LLVM flags I'll need to set but otherwise the linked PR should already handle what I'm trying to achieve.

from tinygo.

aykevl avatar aykevl commented on June 14, 2024

[...] but otherwise the linked PR should already handle what I'm trying to achieve.

Probably not, you need the correct LLVM feature flags. Those define the available instructions (and a few other things) that LLVM can use in the backend. Right now they are identical for ARMv7 softfloat and appear to include floating point instructions.

from tinygo.

MDr164 avatar MDr164 commented on June 14, 2024

That's why I wrote that I still need to figure out the flags 😅.
I left the identical for the draft just so I can post the general idea of what I'd change :)

from tinygo.

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.