I want to design and develop my own programming language and a compiler for it. I am still an undergraduate in Mathematics who knows C/C++. I did little web research and read some e-books, but most of them using specific tools to convert object/intermediate code to machine code, most of them explaining how to use assembler to convert new programming language into machine code. There are lot of tutorial/references out there that "How to convert assembly to machine operation codes" but they skip some levels for newcomers. I want to dive little deep in this subject. - Assume that I designed my own programming language(assume it's called = "MW") with proper syntaxes and operators.
Question
How to convert MW language code into machine code directly in order to generate executable for O/S ?
If you can give very definitive and explanatory answer it's really appreciated. Since I am not a Computer Science student I need some guidance and step by step descriptions how and why? If someone know great book or website for this stuff please reply.
- Here my purpose it to build a system like "Wolfram Mathematica".Please do not get in to argument around programming languages types such as - Symbolic,Procedural,Numerical or etc.
Thank you.