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

C_STARTUP code generation: how to disable?

Dear Keil support team,

Could you please answer the question I asked recently in "How to disable C_STARTUP code generation and have "plain" hex file".

1) I am interested whether it is possible to kill compiler influence and have only the code I create myself in C-language, with no additives like C_STARTUP and jumps to it and back to main.

2) Also, could you clarify more on how to relocate main() at a given address since even using recommended solution (#pragma RENAMECLASS, etc.), Keil still allocates code NOT EXACTLY at address I want. For example (target C167CS), I defined my user class as BOOTCODE(0xFA60-0xFDFF), BUT: compiler/linker map the code to address FC20H, what is wrong?

Thank you in advance,
Nikolay.

0