run.sh 503 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. PLATFORM=$(uname -s | tr A-Z a-z)
  5. readonly IWASM_CMD="../../../product-mini/platforms/${PLATFORM}/build/iwasm"
  6. echo "============> run dhrystone native"
  7. ./dhrystone_native
  8. echo "============> run dhrystone.aot"
  9. ${IWASM_CMD} dhrystone.aot
  10. if [[ ${PLATFORM} == "linux" ]]; then
  11. echo "============> run dhrystone_segue.aot"
  12. ${IWASM_CMD} dhrystone_segue.aot
  13. fi