Compiler theory book.

This is a discussion on Compiler theory book. within the Tech Board forums, part of the Community Boards category; I am not very sure whether I should post this post here so feel free to move it. I am ...

  1. #1
    Tweaking master Aslaville's Avatar
    Join Date
    Sep 2012
    Location
    Rogueport
    Posts
    111

    Post Compiler theory book.

    I am not very sure whether I should post this post here so feel free to move it.

    I am desperately looking for a book that explains compiler theory in C or C++.I have come across the book 'Compilers:Principles,Techniques and Tools' which from what I hear is a matserpiece but the problem is that it is based on Java and I have not learnt't Java myself and have no intentions whatsoever of learning Java.

    Could anyone have any suggestions.
    In C++14 you just write "auto auto(auto auto) { auto; }".
    The compiler infers the rest from context.

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,243
    Well, back when I was assigned that book in compilers class, it was based on a Pascal-like pseudocode, not Java. So it wasn't even a real language, let alone a language I had experience with. But that didn't inhibit me from learning from the book.

    The Dragon Book is still one of the best books out there on the topic. Don't give up on it so easily. Also, learning Java is not going to kill you.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    Tweaking master Aslaville's Avatar
    Join Date
    Sep 2012
    Location
    Rogueport
    Posts
    111
    I guess laerning Java may prove a waste of time since I am very unlikely to use it in my programming career,..but I might as well consider it if there is not other book out there that you can compare with the dragon book in the topic.
    I intended to hammer every single point into my head and would thus most preferably want to use a book that is based on the languages that I am well versed with
    In C++14 you just write "auto auto(auto auto) { auto; }".
    The compiler infers the rest from context.

  4. #4
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,243
    Java and C++ are not so different from each other. If you just hold your nose and pretend it's a "weird type of C++" you'll probably do okay.

    I'm not a Java programmer either, but I know enough to be able to read it, and implement simple things if people request (which is not often). The biggest arena for Java these days seems to be Android development, which is nothing to sneeze at.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  5. #5
    Tweaking master Aslaville's Avatar
    Join Date
    Sep 2012
    Location
    Rogueport
    Posts
    111
    Quote Originally Posted by brewbuck View Post
    Java and C++ are not so different from each other. If you just hold your nose and pretend it's a "weird type of C++" you'll probably do okay.

    I'm not a Java programmer either, but I know enough to be able to read it, and implement simple things if people request (which is not often). The biggest arena for Java these days seems to be Android development, which is nothing to sneeze at.
    Yea,..I agree but I would also wish that the process be expeditious so that I improve my programming skills pretty fast thus I wouldn't think this is the ample time to learn Java.
    In C++14 you just write "auto auto(auto auto) { auto; }".
    The compiler infers the rest from context.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. works in the book but not in my compiler
    By psppb in forum C Programming
    Replies: 4
    Last Post: 01-24-2013, 11:40 PM
  2. Error with book or compiler?
    By biosninja in forum Windows Programming
    Replies: 1
    Last Post: 08-01-2002, 01:57 AM
  3. compiler book?
    By sanchezero in forum C++ Programming
    Replies: 2
    Last Post: 07-21-2002, 09:22 PM
  4. FYI: Graph theory book for download
    By Shiro in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 07-20-2002, 10:03 AM
  5. Replies: 3
    Last Post: 10-11-2001, 07:43 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21