Skip to content

Add RIDs for arm64e #34121

Closed
Closed

Activity

  1. added
    untriaged
    on Mar 26, 2020
  2. Dotnet-GitSync-Bot commented on Mar 26, 2020

    @Dotnet-GitSync-Bot
    Collaborator

    I couldn't figure out the best area label to add to this issue. Please help me learn by adding exactly one area label.

  3. added this to the 5.0 milestone on Mar 26, 2020
  4. marek-safar commented on Mar 26, 2020

    @marek-safar
    ContributorAuthor
  5. akoeplinger commented on Mar 26, 2020

    @akoeplinger
    Member

    I'm not sure we need a new RID, this is pretty similar to the armv7s variant that we build already in a fat binary: https://github.com/dotnet/runtime/blob/master/src/mono/mono.proj#L118-L119

  6. marek-safar commented on Mar 26, 2020

    @marek-safar
    ContributorAuthor

    We'd need RID for arm7s too but I'd not bother with that one as Apple already abandoned it. I think we need new RID unless we'll always build fat like libraries which I am not sure it's even supported with arm64e. It'll also be required to link correct native libraries as I don't think you can link a mix of arm64e and arm64 libs.

    /cc @rolfbjarne

  7. rolfbjarne commented on Mar 26, 2020

    @rolfbjarne
    Member

    I'd not bother with that one as Apple already abandoned it

    Where did you see this? armv7s isn't less applicable than armv7.

    I don't think you can link a mix of arm64e and arm64 libs

    Yes, you can build a fat library that contains native code for both arm64 and arm64e.

  8. marek-safar commented on Mar 26, 2020

    @marek-safar
    ContributorAuthor

    Where did you see this?

    @rolfbjarne my understanding is that Apple does not require apps to include arm7s slice and the benefits of compiling for this architecture are very limited (basically only floating-point-heavy applications could benefit).

    you can build a fat library that contains native code for both arm64 and arm64e.

    But you need to have 2 sets of all native libs for that, right?

  9. akoeplinger commented on Mar 26, 2020

    @akoeplinger
    Member

    But you need to have 2 sets of all native libs for that, right?

    An arm64 process can load both arm64 and arm64e libraries but an arm64e process can only load arm64e libraries.

    So basically it depends on the host app and the App Store doesn't accept arm64e apps yet.

    Apple supports fat libraries everywhere so in theory we could ship one libmono.dylib that contains armv7+armv7s+arm64+arm64e (which is what we do in mono/mono today).

  10. marek-safar commented on Mar 27, 2020

    @marek-safar
    ContributorAuthor

    @akoeplinger are you suggesting that every ios-arm64 nuget with native bits have to have fat arm64+arm64e bits? How can we enforce that and what would be the benefits over a new RID deriving ios-arm64?

  11. rolfbjarne commented on Mar 27, 2020

    @rolfbjarne
    Member

    my understanding is that Apple does not require apps to include arm7s slice and the benefits of compiling for this architecture are very limited (basically only floating-point-heavy applications could benefit).

    Both of these are true, but that doesn't mean it won't change in the future (Apple could remove support for armv7 while maintaining support for armv7s - in particular I believe that once Apple bumps their min OS version to iOS 10 (it's currently at iOS 7), all the remaining devices that can run iOS 10 have an armv7s CPU and thus armv7 isn't needed anymore).

  12. spouliot commented on Mar 27, 2020

    @spouliot
    Contributor

    An arm64 process can load both arm64 and arm64e libraries but an arm64e process can only load arm64e libraries.

    @akoeplinger Pretty sure it's the reverse. Recent phones have arm64e CPU and they run existing (arm64) apps. Important as Apple does not support submitting (and Xcode removes) arm64e slices.

    Missed the process. Need more ☕️

  13. rolfbjarne commented on Mar 27, 2020

    @rolfbjarne
    Member

    Two more points:

    • There may be existing apps building only for armv7s, and if those apps depend on third-party libraries which are also only built for armv7s, then removing our support for armv7s will break those customers (they won't be able to use their third-party libraries anymore).

    • The App Store might not allow customers who have been shipping apps with armv7s slices to remove that slice (easily).

  14. removed
    untriaged
    on Apr 17, 2020
  15. 4 remaining items

  16. marek-safar commented on Apr 17, 2020

    @marek-safar
    ContributorAuthor

    is this in scope for .NET 5?

    I guess we'll see after WWDC so moving out of net5 scope for now

  17. added this to the 5.0.0 milestone on Jul 8, 2020
  18. modified the milestones: 5.0.0, 6.0.0 on Jul 20, 2020
  19. modified the milestones: 6.0.0, 7.0.0 on Jul 9, 2021
  20. ViktorHofer commented on May 10, 2022

    @ViktorHofer
    Member

    @marek-safar is this still required?

  21. added
    needs-author-action
    on May 10, 2022
  22. rolfbjarne commented on May 10, 2022

    @rolfbjarne
    Member

    It's not required yet, but it probably will sooner or later (maybe even this summer, we'll know more after WWDC in June).

  23. ghost closed this as completedon Jun 7, 2022
  24. ghost locked as resolved and limited conversation to collaborators on Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-Infrastructure-librariesdesign-discussionneeds-author-actionno-recent-activity

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions