@article{oai:ipsj.ixsq.nii.ac.jp:00209339, author = {Motohiro, Kawahito and Reid, Copeland and Toshihiko, Koju and David, Siegwart and Moriyoshi, Ohara and Motohiro, Kawahito and Reid, Copeland and Toshihiko, Koju and David, Siegwart and Moriyoshi, Ohara}, issue = {1}, journal = {情報処理学会論文誌プログラミング(PRO)}, month = {Jan}, note = {In this presentation, we propose a method for validating binary optimizers. Our approach does not execute the whole program for validation but selects a small part of code (1 to 100 instructions) for the target test code. It executes the target code and its optimized code with several input data during binary optimization. One benefit is that we can test a small part of an actual customer's code during binary optimization. Our approach can be used to test multiple input data not included in the target code, which is the most beneficial aspect of the approach. If the results are the same after execution, we will use the optimized code for the final output code. If the results differ, we can use the input code for the final output code to maintain compatibility. We implemented our approach in our binary optimizer and successfully detected one bug. We used a very small binary program to observe the worst case of increased in compilation time and output binary file size. Our experiment showed that our approach increases optimization time by only 0.02% and output binary file size by 8%., In this presentation, we propose a method for validating binary optimizers. Our approach does not execute the whole program for validation but selects a small part of code (1 to 100 instructions) for the target test code. It executes the target code and its optimized code with several input data during binary optimization. One benefit is that we can test a small part of an actual customer's code during binary optimization. Our approach can be used to test multiple input data not included in the target code, which is the most beneficial aspect of the approach. If the results are the same after execution, we will use the optimized code for the final output code. If the results differ, we can use the input code for the final output code to maintain compatibility. We implemented our approach in our binary optimizer and successfully detected one bug. We used a very small binary program to observe the worst case of increased in compilation time and output binary file size. Our experiment showed that our approach increases optimization time by only 0.02% and output binary file size by 8%.}, pages = {15--15}, title = {A Method for Validating Binary Optimizers}, volume = {14}, year = {2021} }