Skip to content

add gcc #6294

Description

@wangyenshu

Is it possible to compile gcc to webassembly? Macaulay2 use the quadmath library from gcc.

Activity

  1. IsabelParedes commented on Aug 25, 2026

    @IsabelParedes
    Member

    Possibly yes, but it would be very challenging.

    If you only need the quadmath library, it would much easier to only compile that library.

  2. mcbarton commented on Aug 31, 2026

    @mcbarton
    Contributor

    gcc does have a webassembly backend https://gcc.gnu.org/wiki/WebAssemblyBackend , but its quite early days as far as I can tell from random discussions I have seen. Here is random thread I came across on the wasm discord channel https://discord.com/channels/453584038356058112/590220145469947914/1477096925529506053 . Its probably only worth revisiting when its more developed I think.

  3. anutosh491 commented on Aug 31, 2026

    @anutosh491
    Collaborator

    Macaulay2 use the quadmath library from gcc.

    Then let's just have Macaulay2 i guess.

  4. DerThorsten commented on Aug 31, 2026

    @DerThorsten
    Contributor

    isnt quadmath heavily using gcc's __float128? I am sceptical if this will be easy to implement.
    At least a software version of __float128 must be implemented

  5. wangyenshu commented on Sep 1, 2026

    @wangyenshu
    ContributorAuthor

    isnt quadmath heavily using gcc's __float128? I am sceptical if this will be easy to implement. At least a software version of __float128 must be implemented

    Exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions