-
1.
公开(公告)号:US20070234276A1
公开(公告)日:2007-10-04
申请号:US11278329
申请日:2006-03-31
申请人: Guilherme Ottoni , Xinmin Tian , Hong Wang , Richard Hankins , Wei Li , John Shen
发明人: Guilherme Ottoni , Xinmin Tian , Hong Wang , Richard Hankins , Wei Li , John Shen
IPC分类号: G06F9/44
摘要: Provided are a method, system, and program for parallelizing source code with a compiler. Source code including source code statements is received. The source code statements are processed to determine a dependency of the statements. Multiple groups of statements are determined from the determined dependency of the statements, wherein statements in one group are dependent on one another. At least one directive is inserted in the source code, wherein each directive is associated with one group of statements. Resulting threaded code is generated including the inserted at least one directive. The group of statements to which the directive in the resulting threaded code applies are processed as a separate task. Each group of statements designated by the directive to be processed as a separate task may be processed concurrently with respect to other groups of statements.
摘要翻译: 提供了一种用于将源代码并行化为编译器的方法,系统和程序。 收到包含源代码语句的源代码。 处理源代码语句以确定语句的依赖关系。 根据确定的语句依赖关系确定多组语句,其中一组中的语句彼此依赖。 在源代码中插入至少一个指令,其中每个指令与一组语句相关联。 产生的结果线程代码包括插入的至少一个指令。 生成的线程代码中的指令所适用的语句组被处理为单独的任务。 指定为要作为单独任务处理的指令的每组语句可以与其他语句组并发处理。