infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 3 of 3

Thread: Gcc version 4.9.4 vs. 4.6.4

  1. #1
    New Member New Member Yue is on a distinguished road
    Join Date
    Sep 2018
    Posts
    2
    Points
    17.5

    Gcc version 4.9.4 vs. 4.6.4

    I use Gcc V4.6.4 to compile one project and get an .elf file which is 33000KB.
    While I use Gcc V4.9.4 to compile the same project, the output .elf file is only 9500KB.
    The trouble is that after loading the .elf file to a demo board, the software behavior is also different.
    I want to know the major difference between Gcc V4.6.4 and Gcc V4.9.4.
    The datasheet of V4.6.4 has 730 pages while V4.9.4 has about 900 pages.
    It's hard to compare them.

  2. #2
    New Member New Member Yue is on a distinguished road
    Join Date
    Sep 2018
    Posts
    2
    Points
    17.5
    "the same project" means not only code but also settings/optimazitionItems... are all the same.

  3. #3
    Advanced Advanced HIGHTEC.henk-piet.glas is on a distinguished road
    Join Date
    May 2017
    Posts
    52
    Points
    922.5
    Hi Yue,

    Quote Originally Posted by Yue View Post
    "the same project" means not only code but also settings/optimazitionItems... are all the same.
    I don't know what the notable differences are between these two versions but the size drop seems significant. At this point I would recommend the following:
    • Run tricore-size for both projects. Without command line options it will give you the size of sections .text, .data and .bss. You'd expect those to be about the same between both projects. You can also add command line option -A to see the size for all sections.
    • Compare mapfiles for both projects. These are divided into several blocks and I'd be taking a look at the ones called "discarded input sections" and "memory configuration". The first offers clues as to sections that are being removed in one project and perhaps not in the other. The latter can perhaps show differences in memory consumption between both projects.
    • Compare both projects in terms of command line options. From your description I get the impression you glanced over your IDE settings and found them to be the same. Did you also take a look at the resulting command line options? Those of interest are "TriCore C Compiler" and "TriCore C linker" as demonstrated below. You'd need to compare those between both projects.
    Click image for larger version

Name:	Clipboard01.jpg
Views:	0
Size:	35.6 KB
ID:	3603
    Click image for larger version

Name:	Clipboard02.jpg
Views:	0
Size:	38.6 KB
ID:	3604

    Hopefully this will bring you a little closer to the truth. You also wrote that your resulting application doesn't behave as it should. Did you spent some time debugging? What were you able to conclude from that?

    Best regards,

    Henk-Piet Glas
    Principal Technical Specialist

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.