Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: August 2, 2025, 11:29 am

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Complicated AST manipulation looks ugly in C++. How to refactor it?
#19
RE: Complicated AST manipulation looks ugly in C++. How to refactor it?
(January 29, 2022 at 8:52 am)Jehanne Wrote:
(January 29, 2022 at 1:26 am)FlatAssembler Wrote: No, that is what the assembler is doing. An assembler is translating computer code (assembly code) into machine code. A compiler is translating computer code into assembly code. A compiler does not have to deal with machine code at all, that is the assembler's job.

My understanding is that some compilers, after the syntax analysis and parsing trees, proceed directly to the binary code while others generate assembly code that the assembler then uses to generate the machine code.

Then, conceptually, they still have an assembler, it's an integral part of the compliler.
Reply



Messages In This Thread
RE: Complicated AST manipulation looks ugly in C++. How to refactor it? - by Jackalope - January 29, 2022 at 9:15 am



Users browsing this thread: 2 Guest(s)