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
1
vote
0 answers

Why use double casting in this example from ARM CMSIS?

So I have (((uint32_t)(int32_t)IRQn) >> 5UL), where IRQn is an enum with range from -14 to 81. From what I can see, it's first cast to int32_t, and then to uint32_t. Afterwards, it's shifted to left. Finally, it's used (outside of given code…
AndrejaKo
  • 1,721
  • 5
  • 25
  • 41
1
vote
1 answer

ARM Linker Error: Heap was used, but no heap region was defined

I'm porting a code base to a new build environment and am running into this issue at link-time. Error: L6915E: Library reports error: Heap was used, but no heap region was defined The target is a 32-bit Arm Cortex R5. Not using malloc or free…
sdmello
  • 431
  • 2
  • 6
  • 14
1
vote
2 answers

API names missing from '*.map' files and '*.asm' files

I am compiling a project with armcc : It has following flags: ASFLAGS := -g --cpu Cortex-R5 --fpu None $(addprefix -i,$(INCL)) --apcs /interwork ASFLAGS += --diag_error=warning,193 CFLAGS := -g --cpu Cortex-R5 --split_sections --c99 --gnu…
Dexobox
  • 125
  • 1
  • 9
1
vote
1 answer

Detect large files being included while compiling

I'm using armcc/gcc for a code base that contains large header files (>20MB hardware CSR files). I want to be able to detect any file that includes this large header file, since I'm trying to root-cause my super-slow build. Is there an option I…
sdmello
  • 431
  • 2
  • 6
  • 14
1
vote
1 answer

"Error #119: cast to type <..> is not allowed" when using armcc

I'm trying to compile an existed project (which was designed for gcc) with armcc. For some reason I get the #119 error for the following casting: (keyCert)(pCertHeader->flags) I find it very odd because the flags variable is from type uint32_t, and…
Ofa
  • 67
  • 1
  • 10
1
vote
1 answer

Eigen on ARM Cortex M3 with armcc

I'm trying to use Eigen library with armcc compiler using Keil for Cortex M3 target and I get compilation error: Eigen/src/Core/Transpositions.h(387): error: #135: class template "Eigen::Transpose>" has no member…
Amomum
  • 6,217
  • 8
  • 34
  • 62
1
vote
1 answer

Lint Warning: #647: Suspicious truncation

I have read the related questions to this Lint warning about the suspicious truncation, but here it is a purely C case. The following line is where the Warning #647 pops up: pCont->sig -= (signed int64_t)((sub2 << 8)/pCont->freq + 1); where…
titus.andronicus
  • 517
  • 1
  • 7
  • 19
1
vote
1 answer

What is the ARMCC compiler option for automatic insertion of prefetching instructions during compilation process?

I'm trying to evaluate the gain if I insert prefetching instructions manually into a source code and when I order the compiler ARMCC to insert that prefetching instructions automatically. But I don't know the compilation option (command-line) that…
Perrin NT
  • 11
  • 3
1
vote
2 answers

Unexpected characters at end of line in Keil - but there are none

I am using Keil uVision v5.14 to compile some code for an nrf51xx cpu. I have always used a header file called nrf_delay.h which has some delay routines encoded in assembler. All of a sudden, receive the above error during compilation, on all the…
Vitomakes
  • 315
  • 4
  • 12
1
vote
1 answer

Conditionally using packed struct with armcc (PACKSTRUCT in BGLib)

I try to make work the BLE121LR module with an external MCU (EFM32). As I can understand, this piece of code declares converting of the struct to binary data, am I right? Can somebody explain me how to add the ARM (EFM32) support for it? Thanks a…
Michael Vaysman
  • 277
  • 3
  • 16
1
vote
0 answers

how to use --multifile ARM compilation option with eclipse

I want to compile ARM c project using ARMCC compiler. --multifile is used to perform additional optimizations by compiling across several source files (having one object file output). example armcc -c --multifile test1.c ... testn.c -o test.o . my…
bouqbouq
  • 973
  • 2
  • 14
  • 34
1
vote
4 answers

C++11 on MicroVision 5.13 and ARMCC 5.05

I have a working uVision 5.13 project for the STM32F407 processor, I'm also using the RTX operating system and I'm trying to use some C++11 features like scoped enums but when I put the --cpp11 compiler option I receive this error from one of the…
jcgalveza
  • 371
  • 5
  • 13
1
vote
1 answer

how to link the openssl library with the arm-cross compiler

I have application test.c which by using gcc on host(on ubuntu) machine i have succeed in compilation and successfully ran the application program on host. now I would like to cross compile the same application with arm-cross compiler for LPC1788.…
amar
  • 509
  • 3
  • 8
  • 17
1
vote
2 answers

If ARM compiler has similar option for -Werror

I know gcc has an option -Werror, which can stop compile if there is an warning, if armcc has similar option, because I want to have a good code quality control in compile level additional info: I use armcc 2.2 build 616, I consult ARM, it said…
How Chen
  • 1,340
  • 2
  • 17
  • 37
1
vote
1 answer

opposite byte order to the preceding objects using armcc

I'm using armcc and armlink to compile and link my program. After compiling source codes I tried to link them with armlink command, but I got this error: Fatal error: ./Release/Source/BookCity/bookcity_Protocol.o has the opposite byte order to the…
Shahryar
  • 1,454
  • 2
  • 15
  • 32