List<GimpleCompilationUnit> units = Lists.newArrayList();
for (String sourceName : sources) {
File source = new File(getClass().getResource(sourceName).getFile());
GimpleCompilationUnit unit = gcc.compileToGimple(source);
CallingConvention callingConvention = CallingConventions.fromFile(source);
for (GimpleFunction function : unit.getFunctions()) {
function.setCallingConvention(callingConvention);
}
units.add(unit);
}