Showing posts with label compiler. Show all posts
Showing posts with label compiler. Show all posts

Sunday, August 03, 2008

Sunday Development Log

Sunday:
  1. Finished reading the white paper "Recursive Make Considered Harmful"
  2. Consulted the Flex manual: http://flex.sourceforge.net/manual/
  3. Compiled small Flex program in anticipation of testing new non-recursive make harness.
  4. Discovered O'Reilly's online book "Managing Projects with GNU Make Managing Projects with GNU Make, Third Edition" at http://oreilly.com/catalog/9780596006105/book/index.csp , part of their Open Book Project.
  5. It seems the nonrecursive harness uses implicit compiles for all the C files it encounters.
  6. Getting my head wrapped around the targets and dependencies of the nonrecursive make harness.
  7. Successfully modified the nonrecursive make harness so it compiles GNU Flex code into a binary.
Compiling Bison into a binary using the nonrecursive make harness represents the next step.

With all this talk about nonrecursive make, one might get the wrong impression that I'm doing this solely to learn about it. In fact, I'm finishing up a summer project for my CSC-251 compiler class, which is why GNU Flex/Bison come into play.

Tuesday, July 15, 2008

Symbol Table Compiled

Tonight I successfully compiled the bare-bones symbol table. The symbol table of a compiler maps high-level words (tokens) in the source language to internal symbols.

I thought I compiled a test harness using the STL map last night but in reality I used std::map. g++ reports cryptic compile conflicts between the downloaded STL and std::map that seem like a namespace conflict. If I have time I plan to investigate--right now std::map meets my modest needs.

One more RHCP song to close out the night: http://youtube.com/watch?v=yuFI5KSPAt4

Blog Archive