signbit question

Seb seb at wilzba.ch
Fri Mar 16 08:42:28 UTC 2018


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.


More information about the Digitalmars-d-learn mailing list