Por favor, use este identificador para citar o enlazar este ítem:https://uvadoc.uva.es/handle/10324/71313
Título
Extending a source-to-source compiler with XML capabilities
Congreso
XXI Jornadas de Paralelismo
Año del Documento
2010
Editorial
Universidad Politécnica de Valencia
Descripción Física
8 p.
Descripción
Producción Científica
Documento Fuente
XXI Jornadas de Paralelismo, Valencia, Spain, 7-9 septiembre 2010
Resumen
This paper presents an extension that adds XML capabilities to Cetus, a source-to-source compiler developed by Purdue University. In this work, the Cetus Intermediate Represen-tation is converted into an XML DOM tree that, in turn, enables XML capabilities, such as searching specic code features through XPath expressions. As an example, we write an XPath code to nd private and shared vari-ables for parallel execution in C source code. Loopest is a Java program with embedded XPath expressions. While Cetus needs 2573 lines of internal JAVA code to locate private variables in an input code, Loopest needs a total of only 425 lines of code to determine the same private variables in the equivalent XML representation. Using XPath as search method provides a second advantage over Cetus: extensibility. Changes in Cetus requires a deep knowledge of Java, Cetus internal structure, and its Inter-mediate Representation. Moreover, changes in Loopest are easier because it only depends on XPath to generate reports. Finally, we present Sirius, an XML DOM tree-to-C con-verter, that allows to generate the new output C code based on the annotations done in the XML tree.
Materias (normalizadas)
Informática
Materias Unesco
1203 Ciencia de Los Ordenadores
3304 Tecnología de Los Ordenadores
ISBN
978-84-92812-49-3
Patrocinador
This research is partly supported by the Ministerio de Educación y Ciencia, Spain (TIN2007-62302), Ministerio de Industria, Spain (FIT-350101-2007-27, FIT-350101-2006-46, TSI-020302-2008-89, CENIT MARTA, CENIT OASIS), and Junta de Castilla y León, Spain (VA094A08).
Version del Editor
Idioma
eng
Tipo de versión
info:eu-repo/semantics/publishedVersion
Derechos
openAccess
Aparece en las colecciones
Ficheros en el ítem