This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARM - missing some functionality from C166 compiler ;-(

Hello people!

First time writing here.. hope will find some help ;)

Before using ARM architecture I used XC167 processor. Now I had some problems with implementing on ARM architerure (mdk arm) some functionality supported in C166 keil. Maybe somebody can help me with this:

1. In C166 was #pragma ORDER which allow you to keep all variables and functions in the same order like in C source. Is it possible to do it in keil arm compiler?

2. In C166 was very very usefull for me function like "srom.h".

Excatly what I need is something like this:
http://www.keil.com/appnotes/files/apnt_138.pdf

Regarding to this PDF I need functionality like this
"
LINKER EXTENSIONS
Extensions in the L166 Linker/Locator allow you to:
" Execute code and access constants at different RAM addresses than what is actually stored in
ROM.
" Access the section starting address and section length directly from the C language.
These extensions let you relocate your FLASH Erase and FLASH Write routines to RAM
before execution. You no longer have to write a separate program for the In-System FLASH
programming software. Additionally, no code overhead is introduced since function pointers are
not required to call routines that modify the FLASH.

COMPILER EXTENSIONS
A new header file (SROM.H) is included in the INC directory. This file contains macros that
provide you with the ROM address,"
(end)

Do somebody know something how to make something like this using Keil for ARM???

All suggestions very apprecieated

0