Questions tagged [rvds]

11 questions
8
votes
2 answers

Why some compilers optimize if(a>0) and not if(*(&a)>0)?

Let's say I have declared in the global scope: const int a =0x93191; And in the main function I have the following condition: if(a>0) do_something An awkward thing I have noticed is that the RVDS compiler will drop the if statement and there…
0x90
  • 39,472
  • 36
  • 165
  • 245
6
votes
3 answers

How to export symbols from a shared library

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…
goldenmean
  • 18,376
  • 54
  • 154
  • 211
6
votes
1 answer

remove debug strings in release build

I use a LOG_DEBUG function to print debug information to the screen. I used a #define _DEBUG to disable LOG_DEBUG function by defining _DEBUG FLAG in compile time (release time). but linux strings commands of release build app still shows debug…
jafar
  • 345
  • 4
  • 11
3
votes
1 answer

Which compiler should be used for porting C code to ARM?

I am new to ARM. I have written C code,but I'm looking to port the code to ARM which runs on all ARM processors. I am going to develop high end applications such as those which run on smartphones/ tablets. Can you guys tell which is the best…
3
votes
1 answer

Source files missing from ELF symbol table - how to include them?

I am working with a project that was handed off to me and some of the building and linking concepts are new to me. I have a makefile, several assembly and C source files, an ELF file and binary file. When I load the ELF file onto my target, I am…
Rich
  • 1,165
  • 1
  • 15
  • 29
1
vote
1 answer

Create a Hello World Executable for BeagleBoard

I am trying to run a HelloWorld project on BeagleBoard. For this I am using RVDS to create the library and then CodeSourcery to create the executable for BeagleBoard. To create a library through RVDS I am using below command line: armcc --cpu…
user1116700
  • 47
  • 2
  • 10
0
votes
2 answers

Enable NEON on Cortex A8 with fpu set to either SoftVFP or none

I am trying to build an executable for Cortex A8 using RVDS 4.0. My code uses NEON but I want to set fpu option to either none or SoftVFP. The ARM website mentions that NEON is disabled when fpu is set to SoftVFP. Is this because VFP and NEON share…
user1116700
  • 47
  • 2
  • 10
0
votes
0 answers

Ulink2 does support Realview Debugger JTAG?

i'm using at91rm9200 mpu with metrowerks code warrior i'm curious that realview ulink2 jtag does support realview debugger but i have not found related documents for realview debugger v3.1 which jtag can be compatible.. i'm having trouble with buy…
0
votes
1 answer

usage of exit command in Makefile causes compilation error

I am using the status of "mycommand" as below in Makefile EXIT=exit 1 mycommand || $(EXIT) with the above usage in Makefile while compiling i'm getting an error in windows. Application encountered an unexpected error. Stopping. did i need to…
Kumar2080
  • 105
  • 2
  • 13
0
votes
1 answer

Function "typeof" declared implicitly on RVDS 5.01

I was compiling modem codes with ARM compiler for android phones. I got the error below: function "typeof" declared implicitly Then I though I should use __typeof__. But I got the same error: function "__typeof__" declared implicitly I even tried…
user1651758
  • 145
  • 12
0
votes
1 answer

Integer division with Cortex-M0 under RVDS

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 =…
albin
  • 773
  • 1
  • 8
  • 27