Thread overview | |||||
---|---|---|---|---|---|
|
July 27 dmd now running tests on the Pi | ||||
---|---|---|---|---|
| ||||
https://x.com/WalterBright/status/1817340865565876645 And now, #include <assert.h> int main(int argc, char** argv) { assert(argc == 0); return 0; } Compiling on Ubuntu with #dlang dmd's #AArch64 cross compiler, linking and running on the #raspberrypi: > dmd test.c -c -arm > cp test.o ~/raspberrypi/test switching to the pi window: raspberrypi:~/test $ gcc test.o raspberrypi:~/test $ ./a.out a.out: test.c:3: main: Assertion `test.c' failed. Aborted Victory at last! Now we have a running test suite. |
July 29 Re: dmd now running tests on the Pi | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Saturday, 27 July 2024 at 23:32:25 UTC, Walter Bright wrote:
> https://x.com/WalterBright/status/1817340865565876645
>
> And now,
>
> #include <assert.h>
> int main(int argc, char** argv) {
> assert(argc == 0);
> return 0;
> }
>
> Compiling on Ubuntu with #dlang dmd's #AArch64 cross compiler, linking and running on the #raspberrypi:
>
> > dmd test.c -c -arm
> > cp test.o ~/raspberrypi/test
>
> switching to the pi window:
>
> raspberrypi:~/test $ gcc test.o
> raspberrypi:~/test $ ./a.out
> a.out: test.c:3: main: Assertion `test.c' failed.
> Aborted
>
> Victory at last! Now we have a running test suite.
Excellent news!
|
July 30 Re: dmd now running tests on the Pi | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Saturday, 27 July 2024 at 23:32:25 UTC, Walter Bright wrote:
> https://x.com/WalterBright/status/1817340865565876645
>
> And now,
>
> #include <assert.h>
> int main(int argc, char** argv) {
> assert(argc == 0);
> return 0;
> }
>
> Compiling on Ubuntu with #dlang dmd's #AArch64 cross compiler, linking and running on the #raspberrypi:
>
> > dmd test.c -c -arm
> > cp test.o ~/raspberrypi/test
>
> switching to the pi window:
>
> raspberrypi:~/test $ gcc test.o
> raspberrypi:~/test $ ./a.out
> a.out: test.c:3: main: Assertion `test.c' failed.
> Aborted
>
> Victory at last! Now we have a running test suite.
How much of the existing (backend of the) backend have you been able to reuse? Register allocator agnostic enough to work on both targets?
|
Copyright © 1999-2021 by the D Language Foundation