Skip to content

More information about linking and segment sizes? #1617

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

Closed
Lorandil opened this issue Jan 9, 2022 · 3 comments
Closed

More information about linking and segment sizes? #1617

Lorandil opened this issue Jan 9, 2022 · 3 comments
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@Lorandil
Copy link

Lorandil commented Jan 9, 2022

Hi there,

I'm having trouble with my code size exploding.
After days of trying and testing, I realized that the linker seems to add a data block twice (I can provide an example, if required).
My point is, that I searched in a totally wrong place - I thought that the compiler tried some code inlining because my code size
grew by > 400 bytes after inserting a single 'pgm_read_byte()'.

This would have been much easier to detect, if the segment sizes would be listed in the output window after compilation.

Is there a possiblity to share this information? Or is there only a text segment?

@per1234 per1234 transferred this issue from arduino/arduino-ide Jan 9, 2022
@per1234 per1234 added topic: code Related to content of the project itself type: enhancement Proposed improvement labels Jan 9, 2022
@per1234
Copy link
Contributor

per1234 commented Jan 9, 2022

Thanks for taking the time to request this @Lorandil.

I see we have another report about this at #480 (and even a related proposal at #1211).

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 closed this as completed Jan 9, 2022
@per1234 per1234 added the conclusion: duplicate Has already been submitted label Jan 9, 2022
@per1234 per1234 self-assigned this Jan 9, 2022
@Lorandil
Copy link
Author

Lorandil commented Jan 9, 2022 via email

@per1234
Copy link
Contributor

per1234 commented Jan 9, 2022

I was using it, but obviously not with the correct terms - sorry for that!

No worries.

Do you have any idea where I could ask for help regarding my problem with binary structures which appear to be linked in double?

I think you are on the right track asking on the Arduino Forum. There are a lot of very knowledgeable helpers over there:
https://forum.arduino.cc/t/problem-with-linker-including-same-binary-structure-twice/945196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

2 participants