Oracle-Based Partial Evaluation

被引:1
|
作者
Ochoa, Claudio [1 ]
Puebla, German [2 ]
机构
[1] Intel, Software Solut Grp, Buenos Aires, DF, Argentina
[2] Tech Univ Madrid, Sch Comp Sci, Boadilla Del Monte, Spain
关键词
Program Transformation; Partial Evaluation; Resource-Aware Specialization; Logic Programming;
D O I
10.1016/j.entcs.2008.11.024
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We present Oracle-Based Partial Evaluation (OBPE), a novel approach to on-line Partial Evaluation (PE) which decides the control strategy to use for each call pattern by using an oracle function which compares the results of specializing such call pattern w.r.t. a set of strategies. Our proposal is motivated by Poly-Controlled Partial Evaluation (PCPE), which allows using different control strategies for different call patterns. Given a set CS of control strategies, the best PCPE specialized programs outperform the specialized programs obtained by traditional PE for any of the control strategies in CS, especially when resource-aware specialization is performed. Unfortunately, computing all PCPE specialized programs and then choosing a posteriori the best one is too costly in practice. In contrast, in OBPE a single specialized program is computed. We have developed an empirical oracle whose parameters are approximated from a set of training data, by using constraint logic programming. Our experimental results show that the additional cost of OBPE when compared with traditional PE is a constant factor and that, at least in our experiments, OBPE obtains significantly better specializations. We argue that our proposal is relevant in practice and introduces clear improvements over standard PE. Our work is developed in the context of logic programs, though the ideas are in principle of interest to the PE of any programming language.
引用
收藏
页码:145 / 161
页数:17
相关论文
共 50 条
  • [1] Performance evaluation of an oracle-based interoperability for permissioned blockchain
    Alhussayen, Asma
    Jambi, Kamal
    Eassa, Fathy
    Khemakhem, Maher
    [J]. COMPUTING, 2024,
  • [2] Oracle-Based Regression Test Selection
    Yu, Tingting
    Qu, Xiao
    Acharya, Mithun
    Rothermel, Gregg
    [J]. 2013 IEEE SIXTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION (ICST 2013), 2013, : 292 - 301
  • [3] Performance Optimization of Oracle-based Database
    Wu, Chunfei
    Wu, Weiming
    Gu, Yonghao
    [J]. 2011 INTERNATIONAL CONFERENCE ON FUTURE COMPUTER SCIENCE AND APPLICATION (FCSA 2011), VOL 3, 2011, : 553 - 556
  • [4] Oracle-based economic predictive control
    Maria Manzano, Jose
    Munoz de la Pena, David
    Limon, Daniel
    [J]. COMPUTERS & CHEMICAL ENGINEERING, 2021, 153
  • [5] Oracle-Based Economic Predictive Control
    Manzano, J. M.
    Nadales, J. M.
    Munoz de la Pena, D.
    Limon, D.
    [J]. 2019 IEEE 58TH CONFERENCE ON DECISION AND CONTROL (CDC), 2019, : 4246 - 4251
  • [6] Oracle-based checking of untrusted software
    Necula, GC
    Rahul, SP
    [J]. ACM SIGPLAN NOTICES, 2001, 36 (03) : 142 - 154
  • [7] An Oracle-Based On-Chain Privacy
    Chen, Yu-Jen
    Wu, Ja-Ling
    Hsieh, Yung-Chen
    Hsueh, Chih-Wen
    [J]. COMPUTERS, 2020, 9 (03) : 1 - 15
  • [8] An oracle-based framework for robust combinatorial optimization
    Enrico Bettiol
    Christoph Buchheim
    Marianna De Santis
    Francesco Rinaldi
    [J]. Journal of Global Optimization, 2024, 88 : 27 - 51
  • [9] An oracle-based framework for robust combinatorial optimization
    Bettiol, Enrico
    Buchheim, Christoph
    De Santis, Marianna
    Rinaldi, Francesco
    [J]. JOURNAL OF GLOBAL OPTIMIZATION, 2024, 88 (01) : 27 - 51
  • [10] Oracle-based Logic Locking Attacks: Protect the Oracle Not Only the Netlist
    Kalligeros, Emmanouil
    Karousos, Nikolaos
    Karybali, Irene G.
    [J]. PROCEEDINGS OF THE 2020 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE 2020), 2020, : 939 - 944