compile struct load and store