please help

cpp.net Syria
  • 11 years ago

    Hi everybody,Big Smile <img src=" src="/emoticons/emotion-2a.gif">

    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

    If you are going to build a compiler then you will need to do a lot of research on how they work, i would recommend that you read this thread.

    http://forums.devshed.com/other-programming-languages-139/how-does-an-interpreter-compiler-work-312483.html

    Hope this helps you.

  • 11 years ago
    thanks indeed for your help . and you're right , building a compiler demands well knowldge of how it works , i'm taking a compilers course at the university,but i also thouhgt it would be usful to share my ideas with other students ...thanks again 

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.

“Nine people can't make a baby in a month.” - Fred Brooks