Cod generation for different targets ( x386, x486 etc )

Walter Bright newshound2 at digitalmars.com
Tue Apr 10 12:23:00 PDT 2012


On 4/10/2012 9:05 AM, Timofei Bolshakoc wrote:
> I am using D ver. 2 for more then a year - since version 2.051. My target
> architecture is Linux on Vortex DX SoC - http://www.vortex86sx.com/?page_id=197
> It is compatible with x586 architecture. Till version 2.057 everything was OK,
> but when I recompiled my working code with 2.057 VERY strange behaviour was
> observed - I can't even describe it correctly. I think that something was broken
> in floating point support. I returned to version 2.056.
>
> So, the question is - can I generate code for different x86 targets - x486,
> x586, x686 etc using dmd. I like dmd and do not want to switch to gdc if it will
> be possible to stay on dmd. I did not tried 2.058 yet - please tell me if I should.

With the 64 bit support there was support added for the SIMD instructions. But 
these shouldn't be generated for 32 bit targets. So I don't know what is 
happening for you. Please track it down so we can have a look!

Also, you can use obj2asm to look at the assembler output of a suspicious file.


More information about the Digitalmars-d mailing list