[PATCH] D144083: [JITLink] Initial 32-bit ARM backend

Stefan Gränitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 15 02:06:54 PST 2023


sgraenitz added a comment.

In order to try it yourself, build and run the `llvm-jitlink-executor` tool on a compatible Pi -- for instructions see: https://github.com/echtzeit-dev/llvm-jitlink-executor

On your host machine, run the test from this review and remote JIT-link the output object to your Pi with the `llvm-jitlink` tool:

  > ninja llvm-jitlink llvm-mc llvm-config FileCheck count not
  > bin/llvm-lit --filter=ELF_thumb -a test
  ...
  > bin/llvm-jitlink --oop-executor-connect=192.168.1.105:20000 test/ExecutionEngine/JITLink/arm/Output/ELF_thumbv7_printf.s.tmp.o

With the extra output from the above fork, you should get something like this on the executor side:

  > ./bin/llvm-jitlink-executor listen=0.0.0.0:20000
  Listening at 0.0.0.0:20000
  Connected! Starting SimpleRemoteEPCServer.
  Bootstrap symbols:
    __llvm_orc_bootstrap_deregister_ehframe_section_wrapper: 0x00101ff0
    __llvm_orc_bootstrap_run_as_main_wrapper: 0x0011cb04
    __llvm_orc_bootstrap_run_as_void_function_wrapper: 0x0011cb4c
    __llvm_orc_bootstrap_mem_write_uint32s_wrapper: 0x0011ca2c
    __llvm_orc_bootstrap_register_ehframe_section_wrapper: 0x00101f34
    __llvm_orc_bootstrap_mem_write_uint16s_wrapper: 0x0011c9e4
    __llvm_orc_bootstrap_mem_write_uint8s_wrapper: 0x0011c99c
    __llvm_orc_bootstrap_mem_write_uint64s_wrapper: 0x0011ca74
    __llvm_orc_bootstrap_mem_write_buffers_wrapper: 0x0011cabc
    __llvm_orc_bootstrap_run_as_int_function_wrapper: 0x0011cb94
  Calling int main(0, 0x758005f8) @0x76fc0001
  Hello arm!
  main @0x76fc0001 returned: 0
  ^C


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144083/new/

https://reviews.llvm.org/D144083



More information about the llvm-commits mailing list