Is there any language that native-compiles faster than D?
Per Nordlöw
per.nordlow at gmail.com
Sun Aug 23 08:50:25 UTC 2020
On Sunday, 23 August 2020 at 07:36:19 UTC, oddp wrote:
> It might get even slower if you apply:
>
> - f.write(Tm(''' GNAT.OS_Lib.OS_Exit(Integer(${T}));
> + f.write(Tm('''
> GNAT.OS_Lib.OS_Exit(Integer(${T}_sum));
>
> Currently, we're seeing:
>
> main.adb:9049:32: invalid use of subtype mark in expression or
> call
> gnatmake: "generated/ada/main.adb" compilation error
Indeed, it does! :)
./benchmark --languages=D,Ada --function-count=20
--function-depth=450 --run-count=1
gives
| Lang-uage | Oper-ation | Temp-lated | Time [s/fn] | Slowdown vs
[Best] | Version | Exec |
| :---: | :---: | --- | :---: | :---: | :---: | :---: |
| D | Build | No | 0.170 | 1.0 [D] | v2.093.1-541-ge54c041a4 |
`dmd` |
| Ada | Build | No | 9.065 | 53.3 [D] | 10.2.0 | `gnat-10` |
!
More information about the Digitalmars-d
mailing list