Questions tagged [armclang]

Question related to ARM Compiler 6, which is based on LLVM.

armclang is LLVM based C/C++ compiler for ARM architecture, provided by ARM Ltd. This compiler is part of ARM Compiler 6 tool-chain suite.

More information can be found at http://ds.arm.com/ds-5/build/arm-compiler-6/

32 questions
3
votes
1 answer

Warning: Loadable section "my_section" outside of ELF segments

I have built a axf (elf) file using Arm Compiler v6.9 for Cortex-R4. However when I load this to the target using Arm MCU Eclipse J-link GDB plugins it fails to load the initialisation data for my segments. If I load the axf using Segger Ozone and…
Realtime Rik
  • 1,632
  • 10
  • 22
2
votes
1 answer

How to override the value of __TIME__ and __DATE__ macros using command line options?

In a project where the __FILE__ and __DATE__ macros are used in one of the modules, I am trying to redefine the values of these macros to explicit values during build time. Trying to use the -D option, like -D__TIME__=01:23:45 gave me a compilation…
ysap
  • 7,723
  • 7
  • 59
  • 122
2
votes
1 answer

Discarded side effects with argument passed to assert

I have a compiler warning I would like to get rid off. warning: the argument to '__builtin_assume' has side effects that will be discarded [-Wassume] C:\Keil_v5\ARM\ARMCLANG\Bin..\include\assert.h(72): note: expanded from macro 'assert' define…
Flip
  • 881
  • 7
  • 13
1
vote
1 answer

How to assign to a C++ volatile struct?

For a hardware driver, I need a method to write a C++ struct of 8 x uint32_t to a block of 8 successive 32-bit hardware registers. Here is my code: #include "stdint.h" typedef struct { uint32_t a[8]; } TCmd; class MyClass { public: …
DavidA
  • 2,053
  • 6
  • 30
  • 54
1
vote
0 answers

How to do fast memcpy of 8 words on ARM Cortex M4?

Our ARM Cortex M4 application, written in C++, needs to copy a 8 x 32-bit word struct to external memory, as fast as possible. I found that a 'for' loop performed better than memcpy, but it's still slow. Are there intrinsics using LDM/STM…
DavidA
  • 2,053
  • 6
  • 30
  • 54
1
vote
1 answer

Can I place a variable inside a memory region using Keil/armclang/armlink?

I have a linker scatter file generated by Keil that looks something like this: LR_IROM1 0x08020000 0x001E0000 { ER_IROM1 0x08020000 0x001E0000 { *.o (RESET, +First) *(InRoot$$Sections) .ANY (+RO) .ANY (+XO) } RW_IRAM1 0x20020000…
Graeme
  • 2,971
  • 21
  • 26
1
vote
1 answer

Why does armclang not use VCVT instruction for efficient integer to float conversion?

I need to convert an integer value into a float value on a Cortex-M4 with FPU; for example: float convert(int n) { return (float) n; } armclang compiler translates this to: push {r11, lr} mov r11, sp sub sp,…
strange-corner
  • 404
  • 4
  • 13
1
vote
1 answer

Does -g (or --debug) command option increase the loaded memory footprint?

Does the -g (or --debug) clang command option increase the memory footprint of the compiled application? Specifically, does it change the binary size loaded on an embedded ARM system? Note: I know the debug build adds symbol table and some more…
ysap
  • 7,723
  • 7
  • 59
  • 122
1
vote
2 answers

Standard C library linker issues while compiling and linking using ARM Compiler 6

I am facing some linker issues in ARM DS IDE, i am trying build code for ARMVv-8 architecture, Cortex A72 processor with ARM Compiler 6. I think those error are related to standard libraries like stdio.h ,math.h these errors should not come as…
nilesh
  • 55
  • 10
1
vote
1 answer

Breakpoint instruction inside ARM v6 compiler startup code

I am developping a new project for STM32 on Keil MDK 5.28, using ARM compiler V6 (the "new" armclang compiler). It's the first time I'm using armclang. My reset handler is calling the __main symbol. As expected, this is executing some startup code…
Guillaume Petitjean
  • 2,408
  • 1
  • 21
  • 47
1
vote
0 answers

Correcting the Linker Flags for CMake

I am trying to convert an embedded gcc arm- project to use ARMClang instead of GCC. My focus was to use CMake to automate the task of generating the make files, but I could not figure out why I can not enforce the linker flags and I always get…
Sina S.
  • 31
  • 3
1
vote
0 answers

Issue in loading bss and data to memory

I have a very simple project compiled for cortex-A53 with arm-compiler-6 (armclang). This project contains a main.c, a scatter file and a startup.s. This is its scatter file: LOAD 0x00000000 { ROM +0x0 { startup.o(BOOT, +FIRST) *…
Ofa
  • 67
  • 1
  • 10
1
vote
1 answer

Armclang with the TMS570

Is it possible to use armclang with the TMS570? The Cortex-R4F manual states that it supports little endian and byte invariant big endian (BE-8) but NOT word invariant big endian (BE-32), yet the TMS570 says that it is is BE-32. I am trying to…
Realtime Rik
  • 1,632
  • 10
  • 22
1
vote
1 answer

GNU make is adding white space after -I (shared directory) option

I'm trying to use armclang compiler through a GNU makefile, but there is a clash between both tools when using -I option. For armclang compiler, the -I means "Adds the specified directory to the list of places that are searched to find included…
Ilyes
  • 63
  • 1
  • 4
0
votes
1 answer

Tag_ABI_PCS_GOT_use attribute value of "2" that is different than one previously seen ("1"); combining incompatible files

I have compiled OpenCV library from scratch with TIARMCLANG compiler for ARM Cortex-R5 CPU and once the build is done, I tried to link to a simple CPP project in the CCS Studio IDE (IDE for TI's MCU's) and then I am getting multipe errors as shown…
kowshik
  • 1
  • 1
1
2 3