Author Topic: Custom optimize settings in a code, Keil 5  (Read 790 times)

0 Members and 1 Guest are viewing this topic.

Offline Vindhyachal.taknikiTopic starter

  • Frequent Contributor
  • **
  • Posts: 487
Custom optimize settings in a code, Keil 5
« on: July 03, 2018, 02:43:08 pm »
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.





 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9890
  • Country: us
Re: Custom optimize settings in a code, Keil 5
« Reply #1 on: July 03, 2018, 03:00:08 pm »
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
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf