www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - It's Alive! hello.d for Mac OSX Arch64 with dmd

reply Walter Bright <newshound2 digitalmars.com> writes:
```d
import core.stdc.stdio;

int main()
{
     printf("hello world\n");
     return 0;
}
```

```
dmd -marm64 -os=osx hello.d
./hello
hello world
```

A big milestone! It looks like a trivial program (and it is), but an 
unbelievable amount of compiler code needs to work correctly for it to compile 
correctly. For example, druntime has to compile, initialize itself, and work.
Jun 19
next sibling parent reply FinalEvilution <FinalEvilution gmail.com> writes:
On Saturday, 20 June 2026 at 06:21:30 UTC, Walter Bright wrote:
 A big milestone! It looks like a trivial program (and it is), 
 but an unbelievable amount of compiler code needs to work 
 correctly for it to compile correctly. For example, druntime 
 has to compile, initialize itself, and work.
Congratulations Walter! I remember you talking about the "arm programming experience™" at dconf and all the trials and tribulations. It's good to see you've had success. Although i won't immediately benefit from this i do have some project ideas that may need to run on low power devices, and better D support for the platform is much appreciated.
Jun 20
parent Walter Bright <newshound2 digitalmars.com> writes:
On 6/20/2026 12:26 AM, FinalEvilution wrote:
 Congratulations Walter!
Thank you! It made me happy to see "hello world" appear!
 I remember you talking about the "arm programming experience™"
 at dconf and all the trials and tribulations.
 It's good to see you've had success.
 
 Although i won't immediately benefit from this i do have some project
 ideas that may need to run on low power devices, and better D support
 for the platform is much appreciated.
My work is specific to the Mac Arm64 ABI, which is sadly different from the Linux AArch64 ABI, even though the CPUs are the same. Apple is set to abandon Rosetta in their upcoming Macs, meaning that only the Arm64 will be supported. After the Mac Arm64 is fully functional, I will return to making Linux AArch64 work. The initial work I'd done was on the Raspberry Pi, and I was able to make C programs work with DMD on it. There are no plans for the 32 bit Arm.
Jun 20
prev sibling next sibling parent Indraj Gandham <newsgroups indraj.net> writes:
Congratulations!
Jun 20
prev sibling next sibling parent reply "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
On 20/06/2026 6:21 PM, Walter Bright wrote:
 ```d
 import core.stdc.stdio;
 
 int main()
 {
      printf("hello world\n");
      return 0;
 }
 ```
 
 ```
 dmd -marm64 -os=osx hello.d
 ./hello
 hello world
 ```
 
 A big milestone! It looks like a trivial program (and it is), but an 
 unbelievable amount of compiler code needs to work correctly for it to 
 compile correctly. For example, druntime has to compile, initialize 
 itself, and work.
Nice! So next release we'll have a non-optimizing arm support fully shipped?
Jun 20
parent Walter Bright <newshound2 digitalmars.com> writes:
On 6/20/2026 1:03 AM, Richard (Rikki) Andrew Cattermole wrote:
 So next release we'll have a non-optimizing arm support fully shipped?
I don't know if it will be ready for the next release. But the optimizer shouldn't need any changes.
Jun 20
prev sibling next sibling parent Peter Alexander <peter.alexander.au gmail.com> writes:
On Saturday, 20 June 2026 at 06:21:30 UTC, Walter Bright wrote:
 A big milestone! It looks like a trivial program (and it is), 
 but an unbelievable amount of compiler code needs to work 
 correctly for it to compile correctly. For example, druntime 
 has to compile, initialize itself, and work.
Fantastic! Looking forward to using this when it is ready.
Jun 20
prev sibling next sibling parent singingbush <singingbush hotmail.com> writes:
This is great news. Looking forward to testing out a build with 
these changes.
Jun 20
prev sibling next sibling parent reply Mindy (0xEAB) <desisma heidel.beer> writes:
On Saturday, 20 June 2026 at 06:21:30 UTC, Walter Bright wrote:
 A big milestone! It looks like a trivial program (and it is), 
 but an unbelievable amount of compiler code needs to work 
 correctly for it to compile correctly.
Awesome, congrats!
Jun 20
parent Walter Bright <newshound2 digitalmars.com> writes:
Thanks everybody for the kind words! It makes my work worthwhile.
Jun 20
prev sibling next sibling parent Mike Shah <mshah.475 gmail.com> writes:
On Saturday, 20 June 2026 at 06:21:30 UTC, Walter Bright wrote:
 ```d
 import core.stdc.stdio;

 int main()
 {
     printf("hello world\n");
     return 0;
 }
 ```

 ```
 dmd -marm64 -os=osx hello.d
 ./hello
 hello world
 ```

 A big milestone! It looks like a trivial program (and it is), 
 but an unbelievable amount of compiler code needs to work 
 correctly for it to compile correctly. For example, druntime 
 has to compile, initialize itself, and work.
Very exciting -- well done Walter!
Jun 20
prev sibling parent Kapendev <alexandroskapretsos gmail.com> writes:
On Saturday, 20 June 2026 at 06:21:30 UTC, Walter Bright wrote:
 A big milestone! It looks like a trivial program (and it is), 
 but an unbelievable amount of compiler code needs to work 
 correctly for it to compile correctly. For example, druntime 
 has to compile, initialize itself, and work.
Hypee!!!
Jun 21