I created a compiler for a general-purpose programming language. As part of the tool chain, I would like to include a profiler with the ability to evaluate the time complexity of this expression. Apparently, it is simple enough to calculate the algorithmic complexity, i.e. Provided that all constant time operations take the same amount of time, but I would also like to approximate the real complexity. To do this, I need information on the relative performance of individual processor operations, such as inc , add , mul , etc., as well as some higher-level operations, such as I / O.
I understand that this depends both on the architecture and on the implementation, it can give at best only fuzzy results and something like a double question. But can anyone find out about any high quality resources available to me first? If views on an open source implementation of higher-level operations would give me enough information to provide a fair assessment of their complexity?
source share