Serial code to streaming code compiler assisted by directives.