Inter-compiler portability of asm between gdc and ldc2 (and dmd)

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Sat Oct 3 22:14:02 UTC 2020


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.





More information about the Digitalmars-d mailing list