Inter-compiler portability of asm between gdc and ldc2 (and dmd)
Iain Buclaw
ibuclaw at gdcproject.org
Sat Oct 3 22:38:45 UTC 2020
On Saturday, 3 October 2020 at 22:14:02 UTC, Ola Fosheim Grøstad
wrote:
> On Saturday, 3 October 2020 at 21:52:10 UTC, Iain Buclaw wrote:
>> This question of why dmd-style iasm isn't done has already
>> been answered a little earlier today. If you think you can
>> implement all supported targets (that is about 50 distinct
>> CPUs) in a weekend, be my guest. You'll soon learn every
>> reason why it is unfeasible, impractical, and in many cases
>> not possible within the llvm and gcc compiler frameworks.
>
> The parsing is a drop in the ocean when supporting a new CPU.
> It is a matter of infrastucure for it in the code base and
> culture. Syntax is not a big challenge.
And the infrastructure present is zero. The compiler is a
producer of assembly, not a consumer. It doesn't understand
assembly constructs, and all the better if it remains that way.
More information about the Digitalmars-d
mailing list