uwsampa / accept

an approximate compiler
http://accept.rocks
MIT License
37 stars 14 forks source link

Make logging optional #21

Closed sampsyo closed 10 years ago

sampsyo commented 10 years ago

A quick bout of profiling revealed that much of the time spent in optimization is in stringifying instructions so they can be logged. Much of the time (i.e., when we actually want to execute the program), we don't even need the log. The compiler should have a flag that enables the production of accept_log.txt and disable stringification when it is not provided.