Resource compilation