First module

Cecil Ward cecil at cecilward.com
Fri Jul 7 15:27:38 UTC 2023


On Friday, 7 July 2023 at 14:18:35 UTC, Richard (Rikki) Andrew 
Cattermole wrote:
> 1. Compiler reads in source code provided on cli
> 2. It gets parsed
> 3. imports get looked up, if not already read in, looks in the 
> directories provided by -I based upon the full module + package 
> import statement
> 4. Finish compilation
> 5. Linker gets passed object files to produce some artifact 
> like an executable
>
> Very rough idea of how it works, but will do for what you are 
> asking about.
>
> As long as you compile all at once, assume inlining will work 
> if it thinks it should. Modules will not affect it.

Brilliant, thanks Rikki.


More information about the Digitalmars-d-learn mailing list