www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - Question about assembly output

reply "rsw0x" <anonymous anonymous.com> writes:
Hi,

I noticed that(on x86) using core.bitop in LDC outputs a call 
instead of directly turning them into instructions as both dmd 
and gdc do.

Is this intended behavior?(I'm not a big assembly expert, so this 
could just be a really dumb question on my part.)

example:

LDC
http://goo.gl/T1ZJaD

dmd
http://goo.gl/f1gaOb

gdc
http://goo.gl/RDlP0n
May 30 2015
parent "Kai Nacke" <kai redstar.de> writes:
On Sunday, 31 May 2015 at 01:16:14 UTC, rsw0x wrote:
 Hi,

 I noticed that(on x86) using core.bitop in LDC outputs a call 
 instead of directly turning them into instructions as both dmd 
 and gdc do.

 Is this intended behavior?(I'm not a big assembly expert, so 
 this could just be a really dumb question on my part.)

 example:

 LDC
 http://goo.gl/T1ZJaD

 dmd
 http://goo.gl/f1gaOb

 gdc
 http://goo.gl/RDlP0n
Hi rsw0x, this is not intended behaviour. Could you please create an issue for it? (https://github.com/ldc-developers/ldc/issues) Thanks! Regards, Kai
May 31 2015