Skip to content

PowerPC and AIX support #10055

Open
Open

Description

@bencz

After some research, I checked that the .net core has no supported for PowerPC or AIX ... Are there plans to implement support for the Power architecture and the AIX operating system?

Activity

  1. janvorli commented on Mar 28, 2018

    @janvorli
    Member

    The largest amount of work is always in adding support for a new architecture to the JIT. We have JIT for arm, arm64, x86 and x64 architectures. There are currently no plans on adding new architectures support, but nothing prevents the community from starting such an effort.

  2. janvorli commented on Mar 28, 2018

    @janvorli
    Member

    @kasper3 coreclr contains an interpreter too (disabled by default), but it hasn't been turned on or tested for a very long time. I just remember someone made coreclr compile without errors when the FEATURE_INTERPRETER is enabled and there were some attempts to use it by someone from the community.

    As for new architectures, a coarse checklist (in an arbitrary order) would be :

    • ASM helpers
    • Thunks (e.g. the shuffle thunk for delegates) generated as machine code
    • Processor context related stuff in stack walking, thread suspension and exception handling.
    • Calling convention related code, like the arg iterator, interop, ... The more complex the calling convention, the more work is needed. Structs passed in registers is an example of such a complexity.
    • JIT - this is the largest amount of work.
    • Unwind info for the new architectures. For the existing ones, we use Windows unwind info format for the JITted code, for architectures that windows don't support, it would need to be designed from scratch.
    • GC info format may need to be updated for the new architectures.
    • If these architectures are big endian, there might be changes needed due to that.
    • Possibly other stuff I've forgotten to mention

    As for AIX, it is hard to tell how much surprises it would bring. I have no idea how much it differs from Linux.

  3. mattwarren commented on Mar 29, 2018

    @mattwarren
    Contributor

    @kasper3 I wrote a post about the interpreter that you might find useful, see The .NET IL Interpreter.

    But as @janvorli mentioned, work was done to make it easier to enable (so you can ignore that part of the post) see dotnet/coreclr#11188 and dotnet/coreclr#11252

  4. ghuntley commented on Mar 29, 2018

    @ghuntley
    Member

    I would love see a power on Linux bringup. AIX isn't worth the engineering cycles tho - see my thread on twitter. https://twitter.com/GeoffreyHuntley/status/979453657472053248?s=19

  5. NattyNarwhal commented on Aug 30, 2018

    @NattyNarwhal
    Contributor

    for the audience at home, if you want .NET on AIX or i, I maintain the Mono port for that - somewhat of a WIP, but it compiles all the way through and passes more tests than I expected

  6. afxgroup commented on Jan 18, 2019

    @afxgroup

    a Powerpc port would be really great 👍

  7. turabek commented on Mar 20, 2019

    @turabek

    We also want to run our Core Banking Application on Power PC Processors PPC64LE. May I know from .net core team is this on your roadmap? When this will be possible?

  8. ghuntley commented on Apr 12, 2019

    @ghuntley
    Member

    It's not on their roadmap @turabek

    There are currently no plans on adding new architectures support, but nothing prevents the community from starting such an effort.

  9. bencz commented on May 11, 2019

    @bencz
    Author

    Is it not possible to use the JIT used in the .net of xbox?
    Or rather use it as a starter?

  10. xiangzhai commented on May 16, 2019

    @xiangzhai
    Contributor

    Hi @mattwarren

    @kasper3 I wrote a post about the interpreter that you might find useful, see The .NET IL Interpreter.

    Thanks for your great blog The .NET IL Interpreter.

    But as @janvorli mentioned, work was done to make it easier to enable (so you can ignore that part of the post) see dotnet/coreclr#11188 and dotnet/coreclr#11252

    But when I migrated to the master dotnet/coreclr#24513 Interpreter seems not work:

    Histogram of method executions:
       # of execs   |   # meths (%)    |   cum % | % cum execs
       -------------------------------------------------------
                0   |       0 ( -nan%) |   -nan% |   -nan%
                1   |       0 ( -nan%) |   -nan% |   -nan%
                2   |       0 ( -nan%) |   -nan% |   -nan%
                3   |       0 ( -nan%) |   -nan% |   -nan%
                4   |       0 ( -nan%) |   -nan% |   -nan%
                5   |       0 ( -nan%) |   -nan% |   -nan%
                6   |       0 ( -nan%) |   -nan% |   -nan%
                7   |       0 ( -nan%) |   -nan% |   -nan%
                8   |       0 ( -nan%) |   -nan% |   -nan%
                9   |       0 ( -nan%) |   -nan% |   -nan%
               10   |       0 ( -nan%) |   -nan% |   -nan%
    
    For methods sorted in ascending # of executions order, cumulative % of executions:
    
    Total number of calls from interpreted code: 0.
        Also, 0 are intrinsics; 0 of these are not currently handled intrinsically.
        Of these, 0 to potential property getters (0 of these dead simple), 0 to setters.
        Of the dead simple getter calls, 0 have been short-circuited.
    
    Token resolutions by category:
    Category     |  opportunities  |   calls   |      %
    ---------------------------------------------------
       Undefined |               0 |         0 |   0.00%
     Constrained |               0 |         0 |   0.00%
          NewObj |               0 |         0 |   0.00%
          NewArr |               0 |         0 |   0.00%
         LdToken |               0 |         0 |   0.00%
           LdFtn |               0 |         0 |   0.00%
       LdVirtFtn |               0 |         0 |   0.00%
        SFldAddr |               0 |         0 |   0.00%
          LdElem |               0 |         0 |   0.00%
            Call |               0 |         0 |   0.00%
           LdObj |               0 |         0 |   0.00%
           StObj |               0 |         0 |   0.00%
           CpObj |               0 |         0 |   0.00%
         InitObj |               0 |         0 |   0.00%
          IsInst |               0 |         0 |   0.00%
       CastClass |               0 |         0 |   0.00%
        MkRefAny |               0 |         0 |   0.00%
       RefAnyVal |               0 |         0 |   0.00%
          Sizeof |               0 |         0 |   0.00%
          StElem |               0 |         0 |   0.00%
             Box |               0 |         0 |   0.00%
           Unbox |               0 |         0 |   0.00%
        UnboxAny |               0 |         0 |   0.00%
           LdFld |               0 |         0 |   0.00%
          LdFldA |               0 |         0 |   0.00%
           StFld |               0 |         0 |   0.00%
       FindClass |               0 |         0 |   0.00%
       Exception |               0 |         0 |   0.00%
    

    No printf in the Interpreter::ExecuteMethod or Interpreter::Terminate:

    diff --git a/src/vm/interpreter.cpp b/src/vm/interpreter.cpp
    index b4b18cb..53ae5c2 100644
    --- a/src/vm/interpreter.cpp
    +++ b/src/vm/interpreter.cpp
    @@ -1878,6 +1878,7 @@ void Interpreter::DoMonitorExitWork()
     
     void Interpreter::ExecuteMethod(ARG_SLOT* retVal, __out bool* pDoJmpCall, __out unsigned* pJmpCallToken)
     {
    +    printf("DEBUG: %s:%d\n", __FILE__, __LINE__);
     #if INTERP_DYNAMIC_CONTRACTS
         CONTRACTL {
             THROWS;
    @@ -6511,6 +6512,7 @@ CORINFO_CLASS_HANDLE Interpreter::GetTypedRefClsHnd(CEEInfo* info)
     
     void Interpreter::Initialize()
     {
    +    printf("DEBUG: %s:%d\n", __FILE__, __LINE__);
         assert(!s_initialized);
     
         s_InterpretMeths.ensureInit(CLRConfig::INTERNAL_Interpret);
    @@ -6553,6 +6555,7 @@ void Interpreter::InitializeCompilerStatics(CEEInfo* info)
     
     void Interpreter::Terminate()
     {
    +    printf("DEBUG: %s:%d\n", __FILE__, __LINE__);
         if (s_initialized)
         {
             s_methodCacheLock.Destroy();
    

    As comment mentioned:

    // If we failed to jit, then fall back to the primary Jit.
    

    AltJIT just fall back to primary JIT, but not Interpreter?
    How to force fall back to interpreter? By hacking set ret to CORJIT_SKIPPED:

    diff --git a/src/vm/jitinterface.cpp b/src/vm/jitinterface.cpp
    index 502b5ad..0be76f6 100644
    --- a/src/vm/jitinterface.cpp
    +++ b/src/vm/jitinterface.cpp
    @@ -12145,6 +12145,7 @@ CorJitResult invokeCompileMethodHelper(EEJitManager *jitMgr,
     
         bool isInterpreterStub   = false;
         bool interpreterFallback = (s_InterpreterFallback.val(CLRConfig::INTERNAL_InterpreterFallback) != 0);
    +    printf("DEBUG: interpreterFallback: %d\n", interpreterFallback);
     
         if (interpreterFallback == false)
         {
    @@ -12169,6 +12170,8 @@ CorJitResult invokeCompileMethodHelper(EEJitManager *jitMgr,
                                               nativeSizeOfCode);
         }
     
    +    // Force fall back to interpreter
    +    //ret = CORJIT_SKIPPED;
         if (interpreterFallback == true)
         {
             // If we're doing an "import_only" compilation, it's for verification, so don't interpret.
    

    And I found that AArch64 Remove unnecessary interpreter fallback dotnet/coreclr#20470 So is it able to enable Interpreter at master now?

    Thanks,
    Leslie Zhai

  11. mattwarren commented on May 16, 2019

    @mattwarren
    Contributor

    I've not used the Interpreter since I wrote that post, so my memory is a bit hazy! But which (if any) environment variables have you set? See https://mattwarren.org/2017/03/30/The-.NET-IL-Interpreter/#Enabling%20the%20Interpreter and scroll down to the table of 'Host Configuration Knobs' for a bit more info. Or see https://github.com/dotnet/coreclr/blob/master/Documentation/project-docs/clr-configuration-knobs.md#interpreter-configuration-knobs.

    From what I remember, you need to at least set the Interpret value to the method(s) you want to have interpreted

  12. xiangzhai commented on May 16, 2019

    @xiangzhai
    Contributor

    I've not used the Interpreter since I wrote that post, so my memory is a bit hazy! But which (if any) environment variables have you set? See https://mattwarren.org/2017/03/30/The-.NET-IL-Interpreter/#Enabling%20the%20Interpreter and scroll down to the table of 'Host Configuration Knobs' for a bit more info. Or see https://github.com/dotnet/coreclr/blob/master/Documentation/project-docs/clr-configuration-knobs.md#interpreter-configuration-knobs.

    From what I remember, you need to at least set the Interpret value to the method(s) you want to have interpreted

    Set:

    $ export | grep COMPlus
    declare -x COMPlus_DumpInterpreterStubs="1"
    declare -x COMPlus_Interpret="Main"
    declare -x COMPlus_InterpreterFallback="1"
    declare -x COMPlus_InterpreterPrintPostMortem="1"
    declare -x COMPlus_TraceInterpreterEntries="1"
    declare -x COMPlus_TraceInterpreterIL="1"
    declare -x COMPlus_TraceInterpreterVerbose="1"
    

    HHH, perhaps because this dotnet/coreclr#11252

  13. to11mtm commented on Aug 29, 2019

    @to11mtm

    Another Upvote, but I want to speak very specifically;

    POWER Architecture would be huge for .NET for a number of reasons, including the existence of open, auditable platforms and the open-sourcing of the ISA and reference designs.

    But really, the security angle is where I see a big win.

  14. 61 remaining items

  15. bencz commented on Jan 10, 2023

    @bencz
    Author

    Now that IBM has released .net core 7, with support for ppc64le, how to install it on an Ubuntu or Debian server?

  16. Sapana-Khemkar commented on Jan 10, 2023

    @Sapana-Khemkar
    Contributor

    Now that IBM has released .net core 7, with support for ppc64le, how to install it on an Ubuntu or Debian server?

    We have to cross build tarball on Ubuntu 18.04/20.04 x86. I am working on blog for the same. I will link once it is published.

  17. lehrbua commented on Jan 10, 2023

    @lehrbua

    Now that IBM has released .net core 7, with support for ppc64le, how to install it on an Ubuntu or Debian server?

    What about AIX ?

  18. bkeys commented on Jan 10, 2023

    @bkeys

    Now that IBM has released .net core 7, with support for ppc64le, how to install it on an Ubuntu or Debian server?

    Where does it say that .NET has ppc64le support?

  19. nealef commented on Jan 10, 2023

    @nealef
    Contributor

    Now that IBM has released .net core 7, with support for ppc64le, how to install it on an Ubuntu or Debian server?

    Where does it say that .NET has ppc64le support?

    https://www.itjungle.com/2022/11/09/ibm-and-microsoft-bring-net-to-power-after-all/

  20. janani66 commented on Jan 10, 2023

    @janani66

    Enablement for ppc64le is in the upstream .NET7 and .NET8 ( main ) branches -- this is for the mono runtime engine and not CoreCLR. Testing continues. CI/CD pipelines are being run on ppc64le machines too.

    That is great news! But mono has been available in the Fedora repositories for some time now with ppc64le architecture: https://koji.fedoraproject.org/koji/rpminfo?rpmID=25347685 I know mono joined the .net foundation but can you explain to those less informed such as myself what this means for ppc64le users? Is there plans to have ppc64le in the coreclr at some point?

    Differences between the previous available mono and the .NET7 based mono on ppc64le are explained by this post: https://www.linkedin.com/pulse/whats-difference-net-7-mono-paul-chapman/

  21. Sapana-Khemkar commented on Jan 16, 2023

    @Sapana-Khemkar
    Contributor
  22. neosaldina commented on Jun 14, 2023

    @neosaldina

    Well, looks nice!!
    This port is for ppc64le...

    How complex would it be to make it compatible with ppc64?

  23. halotroop2288 commented on Aug 6, 2025

    @halotroop2288

    Hi, I'm here to represent the homebrew community.
    I'd love to see 32-bit PowerPC supported by the .NET Runtime. It would be the first step in porting the runtime to older consoles such as the GameCube, Wii, Wii U, PS3, and Xbox 360 (as well as older Mac hardware).

    My main focus is the Xbox 360 at this point in time. The last time the console enjoyed the support of .NET was .NET Compact Framework 2.0, and it required the use of Microsoft's proprietary SDK, which is now not the only option.

  24. afxgroup commented on Aug 6, 2025

    @afxgroup

    As I wrote also all Amiga and other related projects are in

  25. barracuda156 commented on Jan 23, 2026

    @barracuda156

    Would be great to have powerpc support for macOS.

  26. am11 commented on Jan 23, 2026

    @am11
    Member

    Would be great to have powerpc support for macOS.

    Minimum supported macOS on .NET 10 is v14 https://github.com/dotnet/core/blob/main/release-notes/10.0/supported-os.md#apple. Last macOS which supported PowerPC was 10.4, and it's unlikely to revive.

  27. barracuda156 commented on Jan 23, 2026

    @barracuda156

    Would be great to have powerpc support for macOS.

    Minimum supported macOS on .NET 10 is v14 https://github.com/dotnet/core/blob/main/release-notes/10.0/supported-os.md#apple.

    “Supported macOS version” typically means that either no one bothered to try or did not make some minimal fixes. Sometimes it actually means that the build is badly broken, but in practice it is relatively rare.

    Last macOS which supported PowerPC was 10.4, and it's unlikely to revive.

    Not that it makes much difference if you imply time frame, but the last macOS to support powerpc was 10.6 and the last official release to run natively on powerpc was 10.5.8.

  28. afxgroup commented on Jan 23, 2026

    @afxgroup

    Hey! AmigaOS4 here! 👋
    We are really interested to a possible PowerPC BigEndian 32 bit runtime..

  29. am11 commented on Jan 23, 2026

    @am11
    Member

    “Supported macOS version” typically means that either no one bothered to try or did not make some minimal fixes. Sometimes it actually means that the build is badly broken, but in practice it is relatively rare.

    (unlike linux) the .NET support policy for macOS is roughly aligned with "non-EOL versions by Apple at the time of release", which is why v10 is unlikely to happen.

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

    area-Metaos-unsupported

    Type

    No type

    Projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions