Refactor gcc parsing code into separate file for better modularity