Stack compiler