Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different binary size: make vs cmake (GIT8266O-367) #801

Open
THKDev opened this issue Jan 3, 2020 · 0 comments
Open

Different binary size: make vs cmake (GIT8266O-367) #801

THKDev opened this issue Jan 3, 2020 · 0 comments

Comments

@THKDev
Copy link

THKDev commented Jan 3, 2020

Environment

  • Development Kit: ESP8266
  • IDF version : d1cfba3 (branch v3.3)
  • Development Env: Make
  • Operating System: Linux
  • Power Supply: external 3.3V

Problem Description

Resulting size of binary differs between cmake and make environment.

Steps to repropduce

Step one:

get-started/hello_world git:(release/v3.3) ▶ make size
Total sizes:
 DRAM .data size:    1372 bytes
 DRAM .bss  size:    8912 bytes
Used static DRAM:   10284 bytes (  88020 available, 10.5% used)
Used static IRAM:   25220 bytes (  23932 available, 51.3% used)
      Flash code:  144452 bytes
    Flash rodata:   18624 bytes
Total image size:~ 189668 bytes (.bin may be padded larger)
Step two
get-started/hello_world git:(release/v3.3) ▶ mkdir build
get-started/hello_world git:(release/v3.3) ▶ cd build
hello_world/build git:(release/v3.3) ▶ cmake ..
hello_world/build git:(release/v3.3) ▶ make size
Scanning dependencies of target size
Total sizes:
 DRAM .data size:    1372 bytes
 DRAM .bss  size:    8904 bytes
Used static DRAM:   10276 bytes (  88028 available, 10.5% used)
Used static IRAM:   25220 bytes (  23932 available, 51.3% used)
      Flash code:  144464 bytes
    Flash rodata:   18828 bytes
Total image size:~ 189884 bytes (.bin may be padded larger)
@github-actions github-actions bot changed the title Different binary size: make vs cmake Different binary size: make vs cmake (GIT8266O-367) Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant