rvds

How to export symbols from a shared library

自作多情 提交于 2019-12-29 06:24:10
问题 I created a shared library ( *.so ) using the *.o object code files (C source code) using RVDS compiler on Windows Host. I link this shared object with a application (using gcc for ARM target on Linux host) and obtain a executable, which on running generates segmentation fault. (I know I have to debug it!) Instead of creating shared library, if I create a static library with same source files, and then link with the application, and then execute the application it works fine as expected. So

Integer division with Cortex-M0 under RVDS

穿精又带淫゛_ 提交于 2019-12-12 00:29:33
问题 I am trying to divide a 64 bits integral type to a 32 bits one, and I am using RVDS 4.1 as a tool-chain. Cortex-M0 does not have hardware divisor, so can I do the operation below? If so How? unsigned long int b = 2590202; unsigned long long int a = 953502716552001ULL; unsigned long long int result; result = a/b; 回答1: The compiler will compile the division operation as a call to a library subroutine that performs a software 64-bit division algorithm. You might have to also tell the compiler to

How to export symbols from a shared library

折月煮酒 提交于 2019-11-29 04:46:50
I created a shared library ( *.so ) using the *.o object code files (C source code) using RVDS compiler on Windows Host. I link this shared object with a application (using gcc for ARM target on Linux host) and obtain a executable, which on running generates segmentation fault. (I know I have to debug it!) Instead of creating shared library, if I create a static library with same source files, and then link with the application, and then execute the application it works fine as expected. So my questions are: Do I need to export symbols(functions exported to application) or any other symbols,