Questions tagged [armcc]

Questions regarding armcc, C/C++ compiler that is part of proprietary ARM compiler tool-chain, version 5 and below. For questions regarding ARM Compiler 6, use armclang tag instead.

The ARM C compiler is a mature, industrial-strength compiler, based on Codemist Ltd's multi-target, multi-language compiler suite (also known as the Norcroft C compiler).

By default the ARM C compiler compiles ANSI C as defined by American National Standard for Information Systems - Programming Language C, X3J11/90-013, Feb 14, 1990.

The ARM C compiler also has a pcc mode, which accepts the dialect of C used by Berkeley Unix. In this mode the compiler has been used to build a complete ARM-based Unix system (the RISCiX system).

More information about ARMCC at ARM tools website

87 questions
0
votes
0 answers

CMake:How to add a suffix for link libraries only in Link Executable command?

I'm using ARMCC toolchain in a cmake job. as my experience,when using armlink to link the object files and libraries, if the libraries is packed up by armar -rc or other options.Anyway, in the last link command, we need to add a suffix "(*)" for the…
0
votes
1 answer

What does PFYvv stands for? (not PFvv!)

I'm trying to link a symbol's file with mangled generated ones from the header. (matching ROM located functions to the RAM ones.) In the .sym I have a function with "PFvv" parameter, normally demangled to -> VOID (fn*)(VOID). The compiler is…
Kons
  • 94
  • 7
0
votes
1 answer

How to perform DCD in C using __asm?

I am trying to do the ASM instruction DCD 0xf7f0a000 in ARM C code. The below methods I tried and errors I got: __asm("DCD 0xf7f0a000"); Error : #3061: unrecognized instruction opcode __asm { MOV r0,=0xf7f0a000 MOV r1,{r0} } Error: Implicit…
Abhinandan
  • 159
  • 1
  • 14
0
votes
1 answer

ARMCC linker: creating a non-initialised region

I'm trying, and failing, to get the ARMCC linker to put variables into an area of RAM which is NOT initialised (because I need them to survive across a reset). The region I have created in the scatter-link file specifies UNINIT and, in my…
Rob
  • 865
  • 1
  • 8
  • 21
0
votes
1 answer

Keil armcc generates typeinfo names even with --no_rtti_data

I'm using ARM Compiler 5 (ARMCC) in Keil 5.25. I'm using c++11. I'm using c++11 with self-made analogue of std::function (since there is no std::function in STL provided with armcc). Recently I noticed that my binary contains several strange-looking…
Amomum
  • 6,217
  • 8
  • 34
  • 62
0
votes
1 answer

cmake CheckCSourceCompiles passes preprocessor-definitions to armlink

I am trying to check thread_local(which is provided as __thread or __declspec(thread) ) feature in armcc. CHECK_C_SOURCE_COMPILES("int main(){ static __thread int num; return 0;}" GCC_THREAD_LOCAL_AVAILABLE) With my version of armcc, I am able to…
g-217
  • 2,069
  • 18
  • 33
0
votes
2 answers

Debugging memory issues ARM7

I am having some issues trying to debug what appear to be some very strange behaviors. For example, we have: static const char* LOG_FORMAT = "0x%02x,%.5f,"; and the pointer changes for no obvious reason. Sometimes to garbage, sometimes to other…
stephen
  • 1
  • 4
0
votes
0 answers

eclipse CDT : Indexer doesn't work with preprocessor setting

I'm struggling with immigrate project from eclipse indigo to neon. I successfully build project in eclipse neon, but indexer doesn't really work perfectly. The problem is I registered #define in properties > C/C++ build > settings, but indexer…
0
votes
0 answers

Nostdlib in armcc causing defined references

I have a C-code which is optimized for ARM and is compiled with the armcc. I would like to reduce the size of the binary as much as possible. From the standard libraries I'm using printf(); fopen(); fread(); fwrite(); memset(); I found the option…
tobkunz11
  • 15
  • 2
0
votes
1 answer

What ARM compiler version is needed for attribute(noinline) support?

I'm not sure how to find out what version of ARM compiler(armcc) is required for any given attribute to be supported. For example __atribute__((noinline))? See http://www.keil.com/support/man/docs/armcc/armcc_chr1359124975804.htm
0
votes
0 answers

TDD with armcc (Keil) - unconventional

I have a rather unconventional question related to TDD and armcc (Keil). I understand TDD as compile -> link -> execute -> Test output. In my case I have to compile and link with armcc, but I can not execute the file without Keil (Simulation). I…
eimer
  • 81
  • 7
0
votes
1 answer

µVISION: BUILD TARGET ALWAYS RECOMPILES ALL FILES

µVision v.5.01 retranslates all files in my project when I'm using Project - Build target. However, I have made no changes to my files and the the µVision built-in MAKE should check the timestamp to see that there are no changes. I have made sure TZ…
Victor Che
  • 75
  • 7
0
votes
1 answer

armcc link error Error: L6769E in armcc while building a C project, what is the issue?

I have a C project with some functions also written in arm neon assembly, however i an not able to compile it, there are several error from the file where the main() is, and it seems so obscure, I am using DS-5 for compiling and it builds and runs…
Jay10
  • 1
  • 2
0
votes
0 answers

How to resolve Error: L6769E in armcc link error for an constant array?

I have few arrays defined in a c file and declared as extern in its header. the header is being included in several other files. It complies in MSVC however the armcc is throwing error. How do i resolve this issue? /* example.c file */ const tUint32…
Jay10
  • 1
  • 2
0
votes
1 answer

Is there Predefined-Macros define about byte order in armcc

Is there Predefined-Macros define about byte order in armcc. I am a novice on the armcc.and sorry for my English. In gcc these are macros: __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__ __ORDER_BIG_ENDIAN__ __ORDER_PDP_ENDIAN__ ... Now I have to use…
zodiac1111
  • 179
  • 1
  • 2
  • 9