compiling a simple program to assembly; next step is gradient calc