Very strange problem with comparing floating point numbers
Ali Çehreli
acehreli at yahoo.com
Sun Sep 30 08:30:52 PDT 2012
On 09/30/2012 04:06 AM, Tommi wrote:
> On Sunday, 30 September 2012 at 01:48:04 UTC, Andrej Mitrovic wrote:
>>
>> Dissasembly:
>> __Dmain:; Function begin, communal
>> enter 12, 0 ; 0000 _ C8, 000C, 00
>> call _D4test8getFloatFNdZf ; 0004 _ E8,
>> 00000000(rel)
>> ...
>
> Can I tell DMD to produce the assembly, or what did you do to get that?
For a foo.d, after compiling the program and generating foo.o, the two
options on Linux that I know of:
1) obj2asm that comes with dmd:
$ obj2asm foo.o > foo.asm
2) objdump that comes with at least my Linux distribution:
$ objdump -d foo.o > foo.asm
Ali
More information about the Digitalmars-d-learn
mailing list