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
1 answer

Getting Permission denied while cross compiling a C++ program

I installed gcc-linaro-aarch64-linux-gnu-4.8-2014.04_linux for cross compiling for arm-v8. but I am getting permission denied while building. I used instruction:…
Aptrij
  • 11
  • 5
0
votes
2 answers

risk of compile warning

I have mainly two kinds of compile warning: 1. implicit declaration of function in a.c, it has char *foo(char *ptr1, char *ptr2), in b.c, some functions use this foo function without any declaration, and I found seems compiler will treat the…
How Chen
  • 1,340
  • 2
  • 17
  • 37
0
votes
1 answer

arm assembly instruction to their gnu equivalent ones

below are some code of lines which are compatible with arm assembler I want to convert these to their gnu equivalents. Basically I was trying to run a code on bare metal cortex-r4 and after looking over the internet I cannot find a startup and…
theadnangondal
  • 1,546
  • 3
  • 14
  • 28
0
votes
3 answers

Continually increment a macro's value after calling another macro

I am writing a header file with a structured schema in mind. My goal is to define a base address that will increment after calling another macro. The purpose of this is to keep a running count of the new base address and to check at compile time…
soplu
  • 145
  • 1
  • 8
0
votes
1 answer

arm instruction ldr error on gcc works fine on armcc

LDR r2, =0x0 :OR: (Region_64K << 1) :OR: Region_Enable What does the above command do ? on armcc it compiles fine while with arm-none-eabi-gcc it gives an error garbage following instruction -- `ldr …
theadnangondal
  • 1,546
  • 3
  • 14
  • 28
0
votes
2 answers

in armcc,how to get the label's address of C language? Thks

I want to get the label's address of C language in armcc[rvct 3.1] build enviroment. such as: void func() { int * aptr; LABEL: .... goto LABEL; } if in VC env,get it like this(use assembly ins :offset): void func() { void * aptr; …
nix
  • 1
  • 1
0
votes
1 answer

Reference document for .s file used by arm compiler

I am trying to use a .s file for armcc compilation. If anyone got any pointers to some document which will be helpful for the same. Can you please forward the same. Thanks Roshan
0
votes
1 answer

use no heap in gnu gcc

Is there any compiler option or a method to tell gnu gcc not to use heap? Like for example in armcc : IMPORT __use_no_heap OR #pragma import(__use_no_heap) can be used in the file to tell the armcc not to use heap. I am looking for something similar…
aditya3524
  • 175
  • 2
  • 4
  • 12
0
votes
0 answers

Interrupt handler declaration: armcc vs gcc

I want to declare an interrupt routine function. Originally written for armcc as : extern "C" __irq void System_FiqDispatcher() SECTION_SRAM_2; I am writing the same as: extern "C" __attribute__ (( interrupt("IRQ"))) void System_FiqDispatcher()…
aditya3524
  • 175
  • 2
  • 4
  • 12
0
votes
1 answer

enum_is_int option

I currently working on Intel x118 platform using arm env. I found I must force to open this option to ensure link has no problem, otherwise, it will occur errors like: Error: L6242E: Cannot link object iui_os_irq_msk.o as its attributes are…
How Chen
  • 1,340
  • 2
  • 17
  • 37
0
votes
1 answer

armcc (keil uVision4): how to get time() to return time from the RTC?

I'm a developer who's fairly used to working with embedded systems on Linux with free tools. Now I find myself on a project which uses the Keil compiler on Windows (armcc, uVision4... I'm finding the naming of stuff in this area a bit confusing…
Magnus
  • 4,644
  • 1
  • 33
  • 49
-2
votes
2 answers

Will R0 register always be used before anything else?

Does the compiler always use R0 in order?
JWH
  • 1
1 2 3 4 5
6