I have been developing a compiler and I want it to generate the output file as exe . How can we do that?
Is there any way to do that without using any assembly language ?
I have been developing a compiler and I want it to generate the output file as exe . How can we do that?
Pretty complicated topic. Realistically, if you're trying to generate a true executable file, you'll need to read up on several different areas (the assembly language of the target architecture, the target OS, linking / loading, etc.)
Is there any way to do that without using any assembly language ?
You can do all of your code gen in a high level language. But you should still understand the assembly that you're trying to generate :)