1597 views|4 replies

3189

Posts

0

Resources
The OP
 

What do these two options mean? [Copy link]







Can someone please tell me what these two C99 Mode and One ELF Section per Function mean? What is their function? Thank you!

This post is from stm32/stm8

Latest reply

First option: One ELF Section per Function Generate one ELF section for each function in source file. Output sections are named with the same name as the function that generates the section. Allows you to optimize code or to locate each function on individual memory addresses. Sets the compiler command-line option --split_sections. From the literal meaning, the compiler will generate a separate code block for each function. If it is not checked, the source file is used as the code block. If it is checked, the function is used as the code block. This can remove some unused functions when generating the burning program to achieve the optimization effect, but there is also a disadvantage that the constants of each code block are also independent, which will also take up more space. The specific host can try to check and uncheck the difference between the generated intermediate files. Generally, it is unchecked.   Details Published on 2019-8-2 09:04
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 

1w

Posts

25

Resources
2
 

C99 is a standard of C language, you can search it on Baidu

This post is from stm32/stm8
 
 

2w

Posts

341

Resources
3
 

The first checkbox is function optimization. Sometimes MDK will run slower.

This post is from stm32/stm8
 
 

1972

Posts

0

Resources
4
 

First option:

One ELF Section per Function

Generate one ELF section for each function in source file. Output sections are named with the same name as the function that generates the section. Allows you to optimize code or to locate each function on individual memory addresses. Sets the compiler command-line option --split_sections.

From the literal meaning, the compiler will generate a separate code block for each function. If it is not checked, the source file is used as the code block. If it is checked, the function is used as the code block. This can remove some unused functions when generating the burning program to achieve the optimization effect, but there is also a disadvantage that the constants of each code block are also independent, which will also take up more space. The specific host can try to check and uncheck the difference between the generated intermediate files. Generally, it is unchecked.

This post is from stm32/stm8

Comments

Thanks  Details Published on 2019-8-2 09:33
 
 
 

3189

Posts

0

Resources
5
 
bobde163 发表于 2019-8-2 09:04 第一个选项: One ELF Section per Function Generate one ELF section for each function in source ...

Thanks

This post is from stm32/stm8
 
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list