trying to build a compiler with visual c++ !! and i need help!!

cpp Syria
  • 11 years ago

    Hi everybody,Big Smile [:D]

    i'm trying to build a compiler using MFC application..

    i just wonna to ask wether the copmilers of known languages such c++ or java etc ..read the whole code one time  and store it in a buffer or somthing (i.e in memory ) and then handle it line by line (which reduces I/O operations time and the speed is an aspect when designing  a complier ),or read each line from the hard (which reduces memory usage for such a very big file size especially that dealing with arrays in c++ is static!!), so plz let me know what do u think!? thanks

  • 11 years ago

    Google for "Lexical Anaylsis"
    That is how compilers interpret code.







Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Computer Science is no more about computers than astronomy is about telescopes.” - E. W. Dijkstra