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

Use the 'tiny' GCC memory model #211

Open
athoelke opened this issue Jun 20, 2014 · 1 comment
Open

Use the 'tiny' GCC memory model #211

athoelke opened this issue Jun 20, 2014 · 1 comment

Comments

@athoelke
Copy link

The Trusted Firmware executables are currently compiled with the default 'small' GCC memory model. This model requires that all internal references from code to code and/or data are within +/-4GB.

GCC provides a more compact memory model - 'tiny' - if the code and data all lie within +/-1MB that generates more compact code (BL3-1 for FVP with TSP is about 250 bytes smaller).

This memory model is appropriate for BL2, BL3-1 and BL3-2 which are all small contiguous executables, but not for BL1 which is split with code in ROM and data in RAM (at least on FVP).

It should be possible to select an appropriate memory model for each image, rather than use the same model for all of them, and benefit from the smaller faster code that this generates.

@achingupta achingupta added this to the vFuture milestone Sep 1, 2014
@danh-arm danh-arm modified the milestones: vNext+1, vFuture Sep 9, 2014
@danh-arm danh-arm removed this from the vNext milestone Oct 7, 2015
@sandrine-bailleux-arm
Copy link

Internal ref: http://jira.arm.com/browse/GENFW-1326

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

No branches or pull requests

5 participants