1. A method of compiling source code, said method comprising: accessing a portion of device source code; determining whether said portion of said device source code comprises a piece of work to be launched on a device from said device; determining a plurality of application programming interface (API) calls based on said piece of work to be launched on said device; and generating compiled code based on said plurality of API calls, wherein a first portion of said compiled code is operable to execute on a central processing unit (CPU) and a second portion of said compiled code is operable to execute on said device.