Potential of a compiler that creates the executable at once
Walter Bright
newshound2 at digitalmars.com
Sat Feb 12 07:08:17 UTC 2022
On 2/11/2022 8:40 AM, Dennis wrote:
> In fact, only recently was the ability to output asm added for
> debugging purposes:
> https://dlang.org/blog/2022/01/24/the-binary-language-of-moisture-vaporators/
I use that dumb feature most every day. It's the most productivity enhancing
feature I've added in a long time.
For example, I formerly wrote:
import core.stdio;
int main() {
printf("%d\n", expression);
return 0;
}
dmd test
./test
every time I wanted to see what `expression` evaluated to. Now I just do:
int test() { return expression; }
dmd -c test -vasm
Shazzam! Mucho less typitty-tippity-tip-typing!
More information about the Digitalmars-d
mailing list