Thread overview | ||||||
---|---|---|---|---|---|---|
|
August 26, 2018 A site like cppinsights.io, but for D? | ||||
---|---|---|---|---|
| ||||
I just ran across this website <https://cppinsights.io/> that does some pretty interesting deconstructions of C++ code, and I was wondering if anything like this exists for D. Apparently the main purpose is source-to-source transformation to better show what the compiler sees in your code before it gets turned into IR or assembler or whatever. |
August 26, 2018 Re: A site like cppinsights.io, but for D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexander Nicholi | On 26.08.2018 20:39, Alexander Nicholi wrote: > I just ran across this website <https://cppinsights.io/> that does some pretty interesting deconstructions of C++ code, and I was wondering if anything like this exists for D. Apparently the main purpose is source-to-source transformation to better show what the compiler sees in your code before it gets turned into IR or assembler or whatever. visit https://run.dlang.io/ and use AST button to get AST |
August 26, 2018 Re: A site like cppinsights.io, but for D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to drug | On Sunday, 26 August 2018 at 17:47:56 UTC, drug wrote:
> visit https://run.dlang.io/ and use AST button to get AST
And to do the same offline, pass the -vcg-ast flag to dmd.
|
August 27, 2018 Re: A site like cppinsights.io, but for D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexander Nicholi | On Sunday, 26 August 2018 at 17:39:22 UTC, Alexander Nicholi wrote:
> I just ran across this website <https://cppinsights.io/> that does some pretty interesting deconstructions of C++ code, and I was wondering if anything like this exists for D. Apparently the main purpose is source-to-source transformation to better show what the compiler sees in your code before it gets turned into IR or assembler or whatever.
Hi AS others habe said before,
You can usw -vcg-ast which'll give you a d-ish Repräsentation of what the Compiler will put in the object-file. AS I am the author oft that feature feel free to tell me if information you need is missing.
|
Copyright © 1999-2021 by the D Language Foundation