March 16, 2018 Re: signbit question | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb | On Thursday, 15 March 2018 at 17:30:48 UTC, Seb wrote:
> They generate the same assembly: https://godbolt.org/g/4ohTJx
import std.stdio;
void main()
{
writeln("hello");
}
this generate error for dmd there.
|
March 16, 2018 Re: signbit question | ||||
---|---|---|---|---|
| ||||
Posted in reply to ashit axar | On Friday, 16 March 2018 at 07:00:36 UTC, ashit axar wrote:
> On Thursday, 15 March 2018 at 17:30:48 UTC, Seb wrote:
>
>> They generate the same assembly: https://godbolt.org/g/4ohTJx
>
> import std.stdio;
>
> void main()
> {
> writeln("hello");
> }
>
>
> this generate error for dmd there.
`writeln` is not supported in betterC for dmd. Use `printf` instead.
|
March 16, 2018 Re: signbit question | ||||
---|---|---|---|---|
| ||||
Posted in reply to Radu | On Friday, 16 March 2018 at 08:35:58 UTC, Radu wrote:
> On Friday, 16 March 2018 at 07:00:36 UTC, ashit axar wrote:
>> On Thursday, 15 March 2018 at 17:30:48 UTC, Seb wrote:
>>
>>> They generate the same assembly: https://godbolt.org/g/4ohTJx
>>
>> import std.stdio;
>>
>> void main()
>> {
>> writeln("hello");
>> }
>>
>>
>> this generate error for dmd there.
>
> `writeln` is not supported in betterC for dmd. Use `printf` instead.
Or remove -betterC. I just used it because then no module constructors/destructors are generated and thus the assembly is even shorter.
|
Copyright © 1999-2021 by the D Language Foundation