Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8512937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:25:03+00:00 2026-06-11T04:25:03+00:00

There is a difference of size in the executable file when i compile the

  • 0

There is a difference of size in the executable file when i compile the code with gcc (using the terminal) and eclipse cdt.gcc 8kb and eclispse 27 kb.why does it happen? Isn’t the eclipse using the same gcc compiler that was preinstalled?. The program is very simple ,but would it make significant size increment for larger code and compromize program performance ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:25:04+00:00Added an answer on June 11, 2026 at 4:25 am

    Yes, Eclipse is using the same gcc. However, it’s likely that Eclipse add to the binary file some information for its debugging. For example, it’s likely that Eclipse runs gcc with -g options which will include inside the binary the whole source code. This can result in very big difference about executable size.

    For example, try to compile this simple program:

    #include <stdio.h>
    
    int main() {
        int i;
        for (i=0; i<10; i++)
            printf("Hello, world!");
    
        return 0;
    }
    

    Try with:

    $ gcc -o program program.c
    $ gcc -o program_g program.c
    $ ls -lh | grep program
    -rwxr-xr-x  1 zagorax users     7,8K set 11 19:37 program
    -rwxr-xr-x  1 zagorax users     8,4K set 11 19:37 program_g
    -rw-r--r--  1 zagorax users      105 set 11 19:35 program.c
    

    Of course, different gcc option may result in different size.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any difference in efficiency (e.g. execution time, code size, etc.) between these
For Zend_Form_Element_File, is there any difference between adding a Size validator and using setMaxFileSize?
Is there a difference in double size when I run my app on 32
is there a difference between: mvt_act_idx = openCloseList.size()-1; openCloseList[mvt_act_idx].A += a; and openCloseList.back().A +=
Is there any difference between $(.selector).size() and $(.selector).length ?
Is there any difference between array.count and array.size ? I am getting errors sometimes
I'm using GCC 4.7 to compile a large app that consists of only one
Is there any performance difference between: size.width += this->font->chars[*ch].advance + this->font->chars[*ch].offset.x; and char_data *chars
Using gcc 4.4.3 c89: I am just working on the following code below: I
I have a difference between files size and used disk space (total file size

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.