Electronics > Beginners
Custom optimize settings in a code, Keil 5
(1/1)
Vindhyachal.takniki:
1. I am using uVision 5, C51 V9.52 & wrote a code. It has multiple source files, one of which is task_manager.c.
In it it has three functions:
a) bit_reset()
b) bit_set()
c) rgb_write()

2. These are very time critical need to optimize for full speed, three functions only, rest code I want to be optimzie for size to save overall space.
Whats the way to do that?

3. These settings I do for speed in keil,
a)Use Extended Linker LX51 instead of Bl51
b) Level 8: Reuse Common code
c) Speed emphasis
d) Linker code pakcing(), AJMP

4. These settings I do for size in keil,
a)Use Extended Linker LX51 instaed of Bl51
b) Level 11: Reuse Common code
c) Size emphasis
d) Linker code pakcing(), AJMP

5. I think these are best settings for size & speed. If any other settings, which can increase speed or decrease size, then let me know.

6. How I can do that on global level, I use minimum size setting option, while for three functions, I use max speed setting.





rstofer:
Find out if Keil uses Makefiles and if you can edit them.  If so, just compile most of the objects with one set of command options and the special case with a different set of options.

It would seek to me this question would be better posed on a Keil forum.  There are 628 results for a search for 'makefile' at the ARM/Keil site:

http://www.keil.com/home/search?searchTerm=makefile
Navigation
Message Index
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod