How to pass multi arguments to main() in Arm Development Studio?

我想将配置文本作为 argv[1] 传递给 main() 函数,并且已经尝试过命令行。set semihosting args "config txt" ,but it seems like the config txt is argv[0] not argv[1],so how to pass multi arguments to main()?

Parents
  • Hi again

    You wrote:
    >The same settings in a simple hello_world project works successfully, But failed when the project using sve intrinsics.

    Sorry, I can't think of any reason why SVE intrinsics themselves would cause such a failure.

    The semihosting vector/breakpoint address will depend on (and is an offset from) the Vector Base Address Register (VBAR) for the current EL.

    For a simple Hello World project, with no assembler startup code, the VBARs will contain zero (default for the FVPs), and so the "set semihosting vector ADDR" should be EL3:0x00000200.

    However, if you have a more complex project, with assembler startup code that changes the VBARs, or changes the EL, then you may have to change the address.  Does your SVE intrinsics project have assembler startup code?  If so, I suggest you check the value of VBAR_EL3.

    Stephen

Reply
  • Hi again

    You wrote:
    >The same settings in a simple hello_world project works successfully, But failed when the project using sve intrinsics.

    Sorry, I can't think of any reason why SVE intrinsics themselves would cause such a failure.

    The semihosting vector/breakpoint address will depend on (and is an offset from) the Vector Base Address Register (VBAR) for the current EL.

    For a simple Hello World project, with no assembler startup code, the VBARs will contain zero (default for the FVPs), and so the "set semihosting vector ADDR" should be EL3:0x00000200.

    However, if you have a more complex project, with assembler startup code that changes the VBARs, or changes the EL, then you may have to change the address.  Does your SVE intrinsics project have assembler startup code?  If so, I suggest you check the value of VBAR_EL3.

    Stephen

Children
No data