First working primitive compilation