Skip to content

Work around Arm Compiler 6 stdvector perfomance cliff #5993

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

Merged
merged 1 commit into from
Mar 1, 2018

Conversation

theotherjimmy
Copy link
Contributor

@theotherjimmy
Copy link
Contributor Author

theotherjimmy commented Feb 1, 2018

Size diff

fat-fs example --profile release

Before

Text 59.2KB Data 224B BSS 9.35KB ROM 59.4KB RAM 9.56KB

After

Text 59.2KB Data 224B BSS 9.35KB ROM 59.4KB RAM 9.56KB

fat-fs example --profile develop

Before

Text 62KB Data 216B BSS 9.35KB ROM 62.2KB RAM 9.56KB

After

Text 62KB Data 216B BSS 9.35KB ROM 62.2KB RAM 9.56KB

@theotherjimmy
Copy link
Contributor Author

Note: The commits are backwards in github.

More Size diff

tests-mbed_drivers-stl_features, --profile release

9145898

| Subtotals                   | 134952 |   280 | 13146 |

2fd7cfc

| Subtotals                   | 55182 |   280 | 9679 |

@0xc0170 0xc0170 requested a review from sg- February 6, 2018 16:25
@0xc0170
Copy link
Contributor

0xc0170 commented Feb 8, 2018

@theotherjimmy Can you clarify (provide more details in the commit message what is this fixing and how) ?

The sizediff in #5993 (comment) are the same.

Copy link
Contributor

@sg- sg- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Can we also get numbers for the same test using ARMC5?

@theotherjimmy
Copy link
Contributor Author

Can we also get numbers for the same test using ARMC5?

The target branch does not support ARMC5. I'd have to retarget, or open a different PR.

@pan-
Copy link
Member

pan- commented Feb 8, 2018

@theotherjimmy That's better 👍 .

Hopefully once the version of libc++ shipped with ARMCC will be released, we will be able to use the configuration macro _LIBCPP_DISABLE_EXTERN_TEMPLATE.

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 9, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Feb 9, 2018

Build : FAILURE

Build number : 1107
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5993/

@pan-
Copy link
Member

pan- commented Feb 9, 2018

The error is comming from ble; I've proposed a fix in #6058 .

@cmonr
Copy link
Contributor

cmonr commented Feb 12, 2018

Aaand it's rebase time!

sg-
sg- previously approved these changes Feb 19, 2018
@0xc0170
Copy link
Contributor

0xc0170 commented Feb 19, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Feb 19, 2018

Build : FAILURE

Build number : 1173
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5993/

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 19, 2018

@theotherjimmy If you can rebase the destination branch to include the fix ?

@theotherjimmy
Copy link
Contributor Author

@0xc0170 I'll rebase now

@theotherjimmy
Copy link
Contributor Author

/morph build

@theotherjimmy
Copy link
Contributor Author

Rebase done for both feature-armc6 and this PR.

@mbed-ci
Copy link

mbed-ci commented Feb 20, 2018

Build : FAILURE

Build number : 1183
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5993/

@cmonr
Copy link
Contributor

cmonr commented Feb 20, 2018

Logs look like they were suddenly cut off. Rebuilding.

/morph build

@mbed-ci
Copy link

mbed-ci commented Feb 20, 2018

Build : FAILURE

Build number : 1187
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5993/

@theotherjimmy
Copy link
Contributor Author

This should go to master

@cmonr cmonr changed the base branch from feature-armc6 to master February 27, 2018 06:18
@cmonr
Copy link
Contributor

cmonr commented Feb 27, 2018

@theotherjimmy Like so?

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 27, 2018

Destination branch updated, seems like some changes should not be here, please review and rebase

@theotherjimmy
Copy link
Contributor Author

@0xc0170 @cmonr Rebased.

@cmonr
Copy link
Contributor

cmonr commented Feb 28, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Feb 28, 2018

Build : SUCCESS

Build number : 1306
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5993/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Mar 1, 2018

@mbed-ci
Copy link

mbed-ci commented Mar 1, 2018

@michalpasztamobica
Copy link
Contributor

Hi @pan- and @theotherjimmy , I'm wondering if the -D_LIBCPP_EXTERN_TEMPLATE(...)= flag can be removed now?
@pan- mentioned this would be the case if ARMCC was shipped with libc++. I haven't found a particular changelog but it seems to me that it is shipped with llvm's libc++.
The flag increases the binary size and generates warnings, when std:: is being put to use.
I can set up a PR, but before I do, I thought I'd better just ask in here, in case I am missing something important.

@theotherjimmy
Copy link
Contributor Author

@michalpasztamobica You may want to open a new issue to discuss the removal of this workaround. Further, Note that I no longer work on Mbed OS, and I would appreciate being left out of these discussions. @ARMmbed/mbed-os-tools Has taken over my role.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants