December 17, 2012 Re: variable x cannot be read at compile time (ctfe) | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | On 12/17/2012 02:47 PM, bearophile wrote:
> maarten van damme:
>
>> How do I make dmd output asm?
>
> You can't, unfortunately. They closed this enhancement request of mine
> because they say DMD is not designed for this.
>
> On Linux there are several disassemblers, I use objdump. On Windows
> there are other ones.
>
> Bye,
> bearophile
obj2asm is another one and I think it comes with dmd.
Ali
|
December 18, 2012 Re: variable x cannot be read at compile time (ctfe) | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | On Monday, 17 December 2012 at 22:47:33 UTC, bearophile wrote:
> maarten van damme:
>
>> How do I make dmd output asm?
>
> You can't, unfortunately. They closed this enhancement request of mine because they say DMD is not designed for this.
>
> On Linux there are several disassemblers, I use objdump. On Windows there are other ones.
>
> Bye,
> bearophile
With Visual D you can view the current disassembly. It is pretty nice in seeing what dmd is doing behind the scenes along with the original D code inline.
|
December 18, 2012 Re: variable x cannot be read at compile time (ctfe) | ||||
---|---|---|---|---|
| ||||
Posted in reply to js.mdnq | I tried using objdump and a visual diff tool and I honestly can't find any differences (apart from the array creation at runtime). How can this be? http://dpaste.dzfl.pl/b96846ec |
December 18, 2012 Re: variable x cannot be read at compile time (ctfe) | ||||
---|---|---|---|---|
| ||||
Posted in reply to maarten van damme | maarten van damme:
> How can this be?
Maybe there are some mistakes in your assumptions.
Bye,
bearophilwe
|
December 18, 2012 Re: variable x cannot be read at compile time (ctfe) | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | My only assumption is that -version=runtime doesn't utilize ctfe and the other does. The rest is simple timing on both linux and windows and ctfe is way slower...
2012/12/18 bearophile <bearophileHUGS@lycos.com>:
> maarten van damme:
>
>> How can this be?
>
>
> Maybe there are some mistakes in your assumptions.
>
> Bye,
> bearophilwe
|
Copyright © 1999-2021 by the D Language Foundation